package V;

import m3.AbstractC2467b;
import w4.C3137A;

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

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

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

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

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

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ T0.N f7053e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final /* synthetic */ i0 f7054f;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public final /* synthetic */ Z0.r f7055j;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public e0(C0626u c0626u, String str, long j4, T0.N n6, i0 i0Var, Z0.r rVar, A4.d dVar) {
        super(2, dVar);
        this.f7050b = c0626u;
        this.f7051c = str;
        this.f7052d = j4;
        this.f7053e = n6;
        this.f7054f = i0Var;
        this.f7055j = rVar;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new e0(this.f7050b, this.f7051c, this.f7052d, this.f7053e, this.f7054f, this.f7055j, dVar);
    }

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

    /* JADX WARN: Removed duplicated region for block: B:13:0x0031  */
    /* JADX WARN: Removed duplicated region for block: B:16:0x0046 A[RETURN] */
    @Override // C4.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invokeSuspend(Object obj) {
        B4.a aVar = B4.a.f492a;
        int i6 = this.f7049a;
        String str = this.f7051c;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            this.f7049a = 1;
            C0626u c0626u = this.f7050b;
            c0626u.getClass();
            if (str.length() == 0) {
                obj = null;
                if (obj == aVar) {
                    return aVar;
                }
            } else {
                long j4 = this.f7052d;
                if (!T0.N.c(j4)) {
                    obj = V4.E.H(c0626u.f7165a, new r(c0626u, new C0625t(str, j4, c0626u, null), null), this);
                }
                if (obj == aVar) {
                }
            }
        } else {
            if (i6 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
        }
        T0.N n6 = (T0.N) obj;
        C3137A c3137a = C3137A.f25453a;
        if (n6 != null) {
            long j6 = n6.f6483a;
            Z0.r rVar = this.f7055j;
            long jG = android.support.v4.media.session.b.g(rVar.a((int) (j6 >> 32)), rVar.a((int) (j6 & 4294967295L)));
            if (!T0.N.a(jG, this.f7053e)) {
                i0 i0Var = this.f7054f;
                if (kotlin.jvm.internal.o.c(i0Var.p().f9136a.f6510b, str) && rVar == i0Var.f7082b) {
                    i0Var.f7083c.invoke(i0.g(i0Var.p().f9136a, jG));
                    i0Var.f7102w = new T0.N(jG);
                }
            }
        }
        return c3137a;
    }
}
