package K;

import C0.AbstractC0123y;
import C0.C0116q;
import C0.C0124z;
import C0.InterfaceC0101b;
import m3.AbstractC2467b;
import w4.C3137A;
import x.H1;

/* JADX INFO: renamed from: K.u0, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0481u0 extends C4.i implements J4.e {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public C0124z f3993a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public int f3994b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public /* synthetic */ Object f3995c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ InterfaceC0489y0 f3996d;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C0481u0(InterfaceC0489y0 interfaceC0489y0, A4.d dVar) {
        super(2, dVar);
        this.f3996d = interfaceC0489y0;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        C0481u0 c0481u0 = new C0481u0(this.f3996d, dVar);
        c0481u0.f3995c = obj;
        return c0481u0;
    }

    @Override // J4.e
    public final Object invoke(Object obj, Object obj2) {
        return ((C0481u0) create((InterfaceC0101b) obj, (A4.d) obj2)).invokeSuspend(C3137A.f25453a);
    }

    /* JADX WARN: Code restructure failed: missing block: B:11:0x0038, code lost:
    
        if (r13 == r0) goto L16;
     */
    /* JADX WARN: Code restructure failed: missing block: B:15:0x004e, code lost:
    
        if (r13 != r0) goto L17;
     */
    /* JADX WARN: Code restructure failed: missing block: B:16:0x0050, code lost:
    
        return r0;
     */
    /* JADX WARN: Type inference failed for: r13v8, types: [java.lang.Object, java.util.Collection, java.util.List] */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:15:0x004e -> B:17:0x0051). Please report as a decompilation issue!!! */
    @Override // C4.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invokeSuspend(Object obj) {
        InterfaceC0101b interfaceC0101b;
        InterfaceC0101b interfaceC0101b2;
        C0124z c0124z;
        B4.a aVar = B4.a.f492a;
        int i6 = this.f3994b;
        InterfaceC0489y0 interfaceC0489y0 = this.f3996d;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            interfaceC0101b = (InterfaceC0101b) this.f3995c;
            this.f3995c = interfaceC0101b;
            this.f3994b = 1;
            obj = H1.b(interfaceC0101b, (2 & 1) != 0, C0.r.f634b, this);
        } else {
            if (i6 != 1) {
                if (i6 != 2) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                c0124z = this.f3993a;
                interfaceC0101b2 = (InterfaceC0101b) this.f3995c;
                AbstractC2467b.l(obj);
                ?? r13 = ((C0116q) obj).f627a;
                int size = r13.size();
                for (int i7 = 0; i7 < size; i7++) {
                    C0124z c0124z2 = (C0124z) r13.get(i7);
                    if (AbstractC0123y.e(c0124z2.f644a, c0124z.f644a) && c0124z2.f647d) {
                        this.f3995c = interfaceC0101b2;
                        this.f3993a = c0124z;
                        this.f3994b = 2;
                        obj = ((C0.Y) interfaceC0101b2).d(C0.r.f634b, this);
                    }
                }
                interfaceC0489y0.a();
                return C3137A.f25453a;
            }
            interfaceC0101b = (InterfaceC0101b) this.f3995c;
            AbstractC2467b.l(obj);
        }
        C0124z c0124z3 = (C0124z) obj;
        long j4 = c0124z3.f646c;
        interfaceC0489y0.b();
        interfaceC0101b2 = interfaceC0101b;
        c0124z = c0124z3;
        this.f3995c = interfaceC0101b2;
        this.f3993a = c0124z;
        this.f3994b = 2;
        obj = ((C0.Y) interfaceC0101b2).d(C0.r.f634b, this);
    }
}
