package a3;

import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: renamed from: a3.h, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0969h extends C4.j implements J4.e {

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ J4.c f10667b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ C0965d f10668c;

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C0969h(J4.c cVar, C0965d c0965d, C0972k c0972k, A4.d dVar) {
        super(2, dVar);
        this.f10667b = cVar;
        this.f10668c = c0965d;
        this.f10669d = c0972k;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new C0969h(this.f10667b, this.f10668c, this.f10669d, dVar);
    }

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

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        B4.a aVar = B4.a.f492a;
        int i6 = this.f10666a;
        C3137A c3137a = C3137A.f25453a;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            J4.c cVar = this.f10667b;
            if (cVar != null) {
                this.f10666a = 1;
                if (cVar.invoke(this) != aVar) {
                }
            }
            return aVar;
        }
        if (i6 != 1) {
            if (i6 != 2) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
            return c3137a;
        }
        AbstractC2467b.l(obj);
        if (!((Boolean) this.f10668c.invoke()).booleanValue()) {
            this.f10666a = 2;
            if (this.f10669d.invoke(this) == aVar) {
                return aVar;
            }
        }
        return c3137a;
    }
}
