package c7;

import com.google.android.gms.internal.measurement.C1;

/* JADX INFO: loaded from: classes.dex */
public final class w extends G6.i implements O6.q {

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

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    public /* synthetic */ InterfaceC0597e f9489v;

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

    /* JADX INFO: renamed from: x, reason: collision with root package name */
    public final /* synthetic */ G6.i f9491x;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    /* JADX WARN: Multi-variable type inference failed */
    public w(O6.p pVar, E6.d dVar) {
        super(3, dVar);
        this.f9491x = (G6.i) pVar;
    }

    /* JADX WARN: Type inference failed for: r1v0, types: [G6.i, O6.p] */
    @Override // O6.q
    public final Object j(Object obj, Object obj2, Object obj3) {
        w wVar = new w(this.f9491x, (E6.d) obj3);
        wVar.f9489v = (InterfaceC0597e) obj;
        wVar.f9490w = obj2;
        return wVar.p(A6.n.f457a);
    }

    /* JADX WARN: Code restructure failed: missing block: B:14:0x003b, code lost:
    
        if (r1.l(r5, r4) == r0) goto L15;
     */
    /* JADX WARN: Type inference failed for: r3v1, types: [G6.i, O6.p] */
    @Override // G6.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object p(Object obj) throws Throwable {
        InterfaceC0597e interfaceC0597e;
        F6.a aVar = F6.a.f2580q;
        int i = this.f9488u;
        if (i == 0) {
            C1.N(obj);
            interfaceC0597e = this.f9489v;
            Object obj2 = this.f9490w;
            this.f9489v = interfaceC0597e;
            this.f9488u = 1;
            obj = this.f9491x.k(obj2, this);
            if (obj != aVar) {
            }
            return aVar;
        }
        if (i != 1) {
            if (i != 2) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            C1.N(obj);
            return A6.n.f457a;
        }
        interfaceC0597e = this.f9489v;
        C1.N(obj);
        this.f9489v = null;
        this.f9488u = 2;
    }
}
