package a3;

import V2.AbstractC0661f3;
import java.util.concurrent.atomic.AtomicInteger;
import m3.AbstractC2467b;
import w4.C3137A;

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

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public /* synthetic */ Object f10658b;

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ X2.g f10660d;

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

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

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public final /* synthetic */ boolean f10663j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public final /* synthetic */ String f10664k;
    public final /* synthetic */ J4.c l;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C0968g(int i6, int i7, A4.d dVar, J4.c cVar, X2.g gVar, String str, String str2, boolean z6) {
        super(2, dVar);
        this.f10659c = str;
        this.f10660d = gVar;
        this.f10661e = i6;
        this.f10662f = i7;
        this.f10663j = z6;
        this.f10664k = str2;
        this.l = cVar;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        String str = this.f10664k;
        J4.c cVar = this.l;
        String str2 = this.f10659c;
        C0968g c0968g = new C0968g(this.f10661e, this.f10662f, dVar, cVar, this.f10660d, str2, str, this.f10663j);
        c0968g.f10658b = obj;
        return c0968g;
    }

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

    /* JADX WARN: Removed duplicated region for block: B:18:0x0043 A[PHI: r1
      0x0043: PHI (r1v11 java.lang.String) = (r1v6 java.lang.String), (r1v14 java.lang.String) binds: [B:26:0x005b, B:16:0x0040] A[DONT_GENERATE, DONT_INLINE]] */
    /* JADX WARN: Removed duplicated region for block: B:19:0x0045  */
    @Override // C4.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invokeSuspend(Object obj) {
        String str;
        String string;
        B4.a aVar = B4.a.f492a;
        int i6 = this.f10657a;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            V4.I iE = V4.E.e((V4.C) this.f10658b, null, new C0967f(this.l, null), 3);
            String str2 = this.f10659c;
            if (str2 == null || (string = S4.p.o1(str2).toString()) == null) {
                X2.g gVar = this.f10660d;
                String str3 = (gVar == null || (str = gVar.f8587n) == null || (string = S4.p.o1(str).toString()) == null || S4.p.Q0(string)) ? null : string;
                if (str3 != null && !S4.p.Q0(str3)) {
                    AtomicInteger atomicInteger = AbstractC0661f3.f7764a;
                    AbstractC0661f3.b(new Integer(this.f10661e), new Integer(this.f10662f), str3, "tv", this.f10664k, this.f10663j);
                }
                this.f10657a = 1;
                if (iE.m(this) == aVar) {
                    return aVar;
                }
            } else {
                if (S4.p.Q0(string)) {
                    string = null;
                }
                if (string == null) {
                }
            }
        } else {
            if (i6 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
        }
        return C3137A.f25453a;
    }
}
