package O1;

import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: loaded from: classes.dex */
public final class E extends C4.j implements J4.e {

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

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public E(O o6, int i6, A4.d dVar) {
        super(2, dVar);
        this.f5317d = o6;
        this.f5318e = i6;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        E e6 = new E(this.f5317d, this.f5318e, dVar);
        e6.f5316c = ((Boolean) obj).booleanValue();
        return e6;
    }

    @Override // J4.e
    public final Object invoke(Object obj, Object obj2) {
        Boolean bool = (Boolean) obj;
        bool.booleanValue();
        return ((E) create(bool, (A4.d) obj2)).invokeSuspend(C3137A.f25453a);
    }

    /* JADX WARN: Removed duplicated region for block: B:22:0x0055  */
    /* JADX WARN: Removed duplicated region for block: B:23:0x005a  */
    @Override // C4.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invokeSuspend(Object obj) {
        boolean z6;
        Object obj2;
        int iIntValue;
        B4.a aVar = B4.a.f492a;
        int i6 = this.f5315b;
        O o6 = this.f5317d;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            z6 = this.f5316c;
            this.f5316c = z6;
            this.f5315b = 1;
            obj = o6.g(this);
            if (obj != aVar) {
            }
            return aVar;
        }
        if (i6 != 1) {
            if (i6 != 2) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            obj2 = this.f5314a;
            AbstractC2467b.l(obj);
            iIntValue = ((Number) obj).intValue();
            return new C0564d(obj2 != null ? obj2.hashCode() : 0, iIntValue, obj2);
        }
        z6 = this.f5316c;
        AbstractC2467b.l(obj);
        if (!z6) {
            obj2 = obj;
            iIntValue = this.f5318e;
            return new C0564d(obj2 != null ? obj2.hashCode() : 0, iIntValue, obj2);
        }
        Y yE = o6.e();
        this.f5314a = obj;
        this.f5315b = 2;
        Integer numA = yE.a();
        if (numA != aVar) {
            obj2 = obj;
            obj = numA;
            iIntValue = ((Number) obj).intValue();
            return new C0564d(obj2 != null ? obj2.hashCode() : 0, iIntValue, obj2);
        }
        return aVar;
    }
}
