package o;

import org.json.JSONObject;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.t60, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2498t60 extends Sb0 implements SC {
    public int p;
    public final /* synthetic */ long q;
    public final /* synthetic */ InterfaceC1191fR r;
    public final /* synthetic */ InterfaceC1191fR s;
    public final /* synthetic */ InterfaceC1191fR t;
    public final /* synthetic */ InterfaceC1191fR u;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C2498t60(long j, InterfaceC1191fR interfaceC1191fR, InterfaceC1191fR interfaceC1191fR2, InterfaceC1191fR interfaceC1191fR3, InterfaceC1191fR interfaceC1191fR4, InterfaceC0220Im interfaceC0220Im) {
        super(2, interfaceC0220Im);
        this.q = j;
        this.r = interfaceC1191fR;
        this.s = interfaceC1191fR2;
        this.t = interfaceC1191fR3;
        this.u = interfaceC1191fR4;
    }

    @Override // o.SC
    public final Object f(Object obj, Object obj2) {
        return ((C2498t60) l((InterfaceC0065Cn) obj, (InterfaceC0220Im) obj2)).n(Oh0.a);
    }

    @Override // o.AbstractC0728ad
    public final InterfaceC0220Im l(Object obj, InterfaceC0220Im interfaceC0220Im) {
        return new C2498t60(this.q, this.r, this.s, this.t, this.u, interfaceC0220Im);
    }

    @Override // o.AbstractC0728ad
    public final Object n(Object obj) {
        InterfaceC1191fR interfaceC1191fR = this.r;
        int i = this.p;
        try {
            if (i == 0) {
                IJ.H(obj);
                long j = this.q;
                this.p = 1;
                int i2 = C60.l;
                C2468sq c2468sq = AbstractC1903ms.a;
                obj = AbstractC1692kh0.T(ExecutorC1232fq.m, new B60(j, null), this);
                EnumC0091Dn enumC0091Dn = EnumC0091Dn.l;
                if (obj == enumC0091Dn) {
                    return enumC0091Dn;
                }
            } else {
                if (i != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                IJ.H(obj);
            }
            String strOptString = ((JSONObject) obj).optString("refid", "");
            int i3 = C60.l;
            interfaceC1191fR.setValue(strOptString);
            this.s.setValue("https://bpm.shaparak.ir/pgwchannel/captchaimg.jpg?RefId=" + ((String) interfaceC1191fR.getValue()) + "&rnd=" + System.currentTimeMillis());
        } catch (Exception unused) {
            int i4 = C60.l;
            this.t.setValue("خطا در برقراری ارتباط با سرور");
            this.u.setValue(new J20("خطای ارتباط", "اتصال به سرور برقرار نشد. لطفاً دوباره تلاش کنید.", false, false));
        }
        return Oh0.a;
    }
}
