package W;

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

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

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

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

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

    /* JADX INFO: renamed from: x, reason: collision with root package name */
    public final /* synthetic */ K f6904x;

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C(K k8, int i, E6.d dVar) {
        super(2, dVar);
        this.f6904x = k8;
        this.f6905y = i;
    }

    @Override // O6.p
    public final Object k(Object obj, Object obj2) {
        Boolean bool = (Boolean) obj;
        bool.booleanValue();
        return ((C) m((E6.d) obj2, bool)).p(A6.n.f457a);
    }

    @Override // G6.a
    public final E6.d m(E6.d dVar, Object obj) {
        C c3 = new C(this.f6904x, this.f6905y, dVar);
        c3.f6903w = ((Boolean) obj).booleanValue();
        return c3;
    }

    /* JADX WARN: Removed duplicated region for block: B:22:0x0055  */
    /* JADX WARN: Removed duplicated region for block: B:23:0x005a  */
    @Override // G6.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object p(Object obj) throws Throwable {
        boolean z8;
        Object obj2;
        int iIntValue;
        F6.a aVar = F6.a.f2580q;
        int i = this.f6902v;
        K k8 = this.f6904x;
        if (i == 0) {
            C1.N(obj);
            z8 = this.f6903w;
            this.f6903w = z8;
            this.f6902v = 1;
            obj = k8.j(this);
            if (obj != aVar) {
            }
            return aVar;
        }
        if (i != 1) {
            if (i != 2) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            obj2 = this.f6901u;
            C1.N(obj);
            iIntValue = ((Number) obj).intValue();
            return new C0336c(obj2 != null ? obj2.hashCode() : 0, iIntValue, obj2);
        }
        z8 = this.f6903w;
        C1.N(obj);
        if (!z8) {
            obj2 = obj;
            iIntValue = this.f6905y;
            return new C0336c(obj2 != null ? obj2.hashCode() : 0, iIntValue, obj2);
        }
        U uH = k8.h();
        this.f6901u = obj;
        this.f6902v = 2;
        Integer numA = uH.a();
        if (numA != aVar) {
            obj2 = obj;
            obj = numA;
            iIntValue = ((Number) obj).intValue();
            return new C0336c(obj2 != null ? obj2.hashCode() : 0, iIntValue, obj2);
        }
        return aVar;
    }
}
