package h3;

import android.content.Context;
import androidx.compose.runtime.MutableState;
import com.revenuecat.purchases.common.networking.RCHTTPStatusCodes;
import m3.AbstractC2467b;
import p0.C2714u;
import q.AbstractC2771e;
import q.C2769d;
import w4.C3137A;

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

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ String f18003b;

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C2125h4(String str, Context context, C2769d c2769d, MutableState mutableState, A4.d dVar) {
        super(2, dVar);
        this.f18003b = str;
        this.f18004c = context;
        this.f18005d = c2769d;
        this.f18006e = mutableState;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new C2125h4(this.f18003b, this.f18004c, this.f18005d, this.f18006e, dVar);
    }

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

    /* JADX WARN: Code restructure failed: missing block: B:13:0x002d, code lost:
    
        if (r12 == r0) goto L19;
     */
    /* JADX WARN: Code restructure failed: missing block: B:18:0x005d, code lost:
    
        if (q.C2769d.c(r11.f18005d, r6, r7, null, r11, 12) != r0) goto L20;
     */
    /* JADX WARN: Code restructure failed: missing block: B:19:0x005f, code lost:
    
        return r0;
     */
    @Override // C4.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invokeSuspend(Object obj) {
        long j4;
        B4.a aVar = B4.a.f492a;
        int i6 = this.f18002a;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            String str = this.f18003b;
            if (str != null) {
                this.f18002a = 1;
                obj = b3.f.a(this.f18004c, str, this, 124);
            } else {
                j4 = b3.f.f13293a;
                float f6 = AbstractC2190s4.f18484a;
                this.f18006e.setValue(new C2714u(j4));
                C2714u c2714u = new C2714u(j4);
                q.F0 f0P = AbstractC2771e.p(RCHTTPStatusCodes.BAD_REQUEST, 0, null, 6);
                this.f18002a = 2;
            }
        } else {
            if (i6 != 1) {
                if (i6 != 2) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                AbstractC2467b.l(obj);
                return C3137A.f25453a;
            }
            AbstractC2467b.l(obj);
        }
        j4 = ((C2714u) obj).f22947a;
        float f62 = AbstractC2190s4.f18484a;
        this.f18006e.setValue(new C2714u(j4));
        C2714u c2714u2 = new C2714u(j4);
        q.F0 f0P2 = AbstractC2771e.p(RCHTTPStatusCodes.BAD_REQUEST, 0, null, 6);
        this.f18002a = 2;
    }
}
