package okio.internal;

/* JADX INFO: renamed from: okio.internal.-FileSystem$commonListRecursively$1, reason: invalid class name */
/* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
/* JADX INFO: loaded from: E:\ios\vf_dex\classes3.dex */
@kotlin.Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\u0010\u0000\u001a\u00020\u0001*\b\u0012\u0004\u0012\u00020\u00030\u0002H\u008a@"}, d2 = {"<anonymous>", okhttp3.HttpUrl.FRAGMENT_ENCODE_SET, "Lkotlin/sequences/SequenceScope;", "Lokio/Path;"}, k = 3, mv = {1, 9, 0}, xi = 48)
@kotlin.coroutines.jvm.internal.DebugMetadata(c = "okio.internal.-FileSystem$commonListRecursively$1", f = "FileSystem.kt", l = {96}, m = "invokeSuspend")
final class FileSystem$commonListRecursively$1 extends kotlin.coroutines.jvm.internal.RestrictedSuspendLambda implements kotlin.jvm.functions.Function2<kotlin.sequences.SequenceScope<? super okio.Path>, kotlin.coroutines.Continuation<? super kotlin.Unit>, java.lang.Object> {
    java.lang.Object o;
    java.lang.Object p;
    int q;
    private /* synthetic */ java.lang.Object r;
    final /* synthetic */ okio.Path s;
    final /* synthetic */ okio.FileSystem t;
    final /* synthetic */ boolean u;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    FileSystem$commonListRecursively$1(okio.Path path, okio.FileSystem fileSystem, boolean z, kotlin.coroutines.Continuation continuation) {
        super(2, continuation);
        this.s = path;
        this.t = fileSystem;
        this.u = z;
    }

    /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
    public final java.lang.Object invoke(kotlin.sequences.SequenceScope sequenceScope, kotlin.coroutines.Continuation continuation) {
        return create(sequenceScope, continuation).invokeSuspend(kotlin.Unit.a);
    }

    public final kotlin.coroutines.Continuation create(java.lang.Object obj, kotlin.coroutines.Continuation continuation) {
        okio.internal.FileSystem$commonListRecursively$1 fileSystem$commonListRecursively$1 = new okio.internal.FileSystem$commonListRecursively$1(this.s, this.t, this.u, continuation);
        fileSystem$commonListRecursively$1.r = obj;
        return fileSystem$commonListRecursively$1;
    }

    /* JADX WARN: Code duplicated, block: B:11:0x004b  */
    /* JADX WARN: Code duplicated, block: B:13:0x0066 A[RETURN] */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:12:0x0064 -> B:14:0x0067). Please report as a decompilation issue!!! */
    /*  JADX ERROR: JadxOverflowException in pass: RegionMakerVisitor
        jadx.core.utils.exceptions.JadxOverflowException: Regions stack size limit reached
        	at jadx.core.utils.ErrorsCounter.addError(ErrorsCounter.java:59)
        	at jadx.core.utils.ErrorsCounter.error(ErrorsCounter.java:31)
        	at jadx.core.dex.attributes.nodes.NotificationAttrNode.addError(NotificationAttrNode.java:19)
        */
    public final java.lang.Object invokeSuspend(java.lang.Object r12) {
        /*
            r11 = this;
            java.lang.Object r0 = kotlin.coroutines.intrinsics.IntrinsicsKt.g()
            int r1 = r11.q
            r2 = 1
            if (r1 == 0) goto L25
            if (r1 != r2) goto L1d
            java.lang.Object r1 = r11.p
            java.util.Iterator r1 = (java.util.Iterator) r1
            java.lang.Object r3 = r11.o
            kotlin.collections.ArrayDeque r3 = (kotlin.collections.ArrayDeque) r3
            java.lang.Object r4 = r11.r
            kotlin.sequences.SequenceScope r4 = (kotlin.sequences.SequenceScope) r4
            kotlin.ResultKt.b(r12)
            r10 = r11
            r6 = r3
            goto L67
        L1d:
            java.lang.IllegalStateException r11 = new java.lang.IllegalStateException
            java.lang.String r12 = "call to 'resume' before 'invoke' with coroutine"
            r11.<init>(r12)
            throw r11
        L25:
            kotlin.ResultKt.b(r12)
            java.lang.Object r12 = r11.r
            kotlin.sequences.SequenceScope r12 = (kotlin.sequences.SequenceScope) r12
            kotlin.collections.ArrayDeque r1 = new kotlin.collections.ArrayDeque
            r1.<init>()
            okio.Path r3 = r11.s
            r1.addLast(r3)
            okio.FileSystem r3 = r11.t
            okio.Path r4 = r11.s
            java.util.List r3 = r3.k(r4)
            java.util.Iterator r3 = r3.iterator()
            r4 = r12
            r6 = r1
            r1 = r3
        L45:
            boolean r12 = r1.hasNext()
            if (r12 == 0) goto L69
            java.lang.Object r12 = r1.next()
            r7 = r12
            okio.Path r7 = (okio.Path) r7
            okio.FileSystem r5 = r11.t
            boolean r8 = r11.u
            r11.r = r4
            r11.o = r6
            r11.p = r1
            r11.q = r2
            r9 = 0
            r10 = r11
            java.lang.Object r11 = okio.internal.FileSystem.a(r4, r5, r6, r7, r8, r9, r10)
            if (r11 != r0) goto L67
            return r0
        L67:
            r11 = r10
            goto L45
        L69:
            kotlin.Unit r11 = kotlin.Unit.a
            return r11
        */
        throw new UnsupportedOperationException("Method not decompiled: okio.internal.FileSystem$commonListRecursively$1.invokeSuspend(java.lang.Object):java.lang.Object");
    }
}
