package e5;

import A6.n;
import O6.p;
import Z6.AbstractC0385z;
import Z6.InterfaceC0382w;
import com.google.android.gms.internal.measurement.C1;
import g6.o;
import k7.C;
import k7.y;

/* JADX INFO: renamed from: e5.e, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0885e extends G6.i implements p {

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public y f12477u;

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    public y f12478v;

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

    /* JADX INFO: renamed from: x, reason: collision with root package name */
    public final /* synthetic */ p7.d f12480x;

    /* JADX INFO: renamed from: y, reason: collision with root package name */
    public final /* synthetic */ C0886f f12481y;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C0885e(p7.d dVar, C0886f c0886f, E6.d dVar2) {
        super(2, dVar2);
        this.f12480x = dVar;
        this.f12481y = c0886f;
    }

    @Override // O6.p
    public final Object k(Object obj, Object obj2) {
        return ((C0885e) m((E6.d) obj2, (InterfaceC0382w) obj)).p(n.f457a);
    }

    @Override // G6.a
    public final E6.d m(E6.d dVar, Object obj) {
        return new C0885e(this.f12480x, this.f12481y, dVar);
    }

    /* JADX WARN: Removed duplicated region for block: B:11:0x0043  */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:14:0x005c -> B:16:0x005f). Please report as a decompilation issue!!! */
    @Override // G6.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object p(Object obj) throws Throwable {
        y yVar;
        y yVarQ;
        C cB;
        F6.a aVar = F6.a.f2580q;
        int i = this.f12479w;
        p7.d dVar = this.f12480x;
        C0886f c0886f = this.f12481y;
        if (i == 0) {
            C1.N(obj);
            yVar = dVar.f16161e;
            K2.e eVarB = yVar.b();
            eVarB.p(o.f12958a.C(), C0886f.b(c0886f, yVar.f14202a));
            yVarQ = eVarB.q();
            cB = dVar.b(yVarQ);
            if (c0886f.f12483b < 5) {
            }
            c0886f.f12483b = 0;
            return cB;
        }
        if (i != 1) {
            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
        }
        yVarQ = this.f12478v;
        y yVar2 = this.f12477u;
        C1.N(obj);
        yVar = yVar2;
        c0886f.f12483b++;
        K2.e eVarB2 = yVarQ.b();
        o oVar = o.f12958a;
        eVarB2.K(oVar.C());
        eVarB2.p(oVar.C(), C0886f.b(c0886f, yVar.f14202a));
        cB = dVar.b(eVarB2.q());
        if (c0886f.f12483b < 5 || cB.f14013t != 408) {
            c0886f.f12483b = 0;
            return cB;
        }
        cB.close();
        long j8 = ((long) c0886f.f12483b) * 100;
        this.f12477u = yVar;
        this.f12478v = yVarQ;
        this.f12479w = 1;
        if (AbstractC0385z.h(j8, this) == aVar) {
            return aVar;
        }
        c0886f.f12483b++;
        K2.e eVarB22 = yVarQ.b();
        o oVar2 = o.f12958a;
        eVarB22.K(oVar2.C());
        eVarB22.p(oVar2.C(), C0886f.b(c0886f, yVar.f14202a));
        cB = dVar.b(eVarB22.q());
        if (c0886f.f12483b < 5) {
        }
        c0886f.f12483b = 0;
        return cB;
    }
}
