package h3;

import java.util.Iterator;
import java.util.Map;
import m3.AbstractC2467b;
import w4.C3137A;

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

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

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

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

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

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public E.D f18548e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public Map f18549f;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public String f18550j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public int f18551k;
    public final /* synthetic */ E.D l;

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

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public final /* synthetic */ Map f18553n;

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C2194t2(E.D d6, int i6, Map map, String str, A4.d dVar) {
        super(2, dVar);
        this.l = d6;
        this.f18552m = i6;
        this.f18553n = map;
        this.f18554o = str;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new C2194t2(this.l, this.f18552m, this.f18553n, this.f18554o, dVar);
    }

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

    /* JADX WARN: Code restructure failed: missing block: B:20:0x007b, code lost:
    
        r6 = r2;
     */
    /* JADX WARN: Code restructure failed: missing block: B:22:0x0094, code lost:
    
        if (E.D.i(r11, r7, r18) == r1) goto L29;
     */
    /* JADX WARN: Code restructure failed: missing block: B:39:0x00df, code lost:
    
        r6 = (n0.x) r10.get(r9);
     */
    /* JADX WARN: Code restructure failed: missing block: B:40:0x00e5, code lost:
    
        if (r6 == null) goto L44;
     */
    /* JADX WARN: Code restructure failed: missing block: B:42:0x00eb, code lost:
    
        if (n0.x.a(r6) != true) goto L44;
     */
    /* JADX WARN: Path cross not found for [B:21:0x007d, B:15:0x0067], limit reached: 48 */
    /* JADX WARN: Removed duplicated region for block: B:12:0x005a  */
    /* JADX WARN: Removed duplicated region for block: B:34:0x00cb  */
    /* JADX WARN: Type inference failed for: r6v10, types: [java.lang.Iterable, java.lang.Object, java.util.Collection] */
    /* JADX WARN: Type inference failed for: r6v3, types: [java.lang.Iterable, java.lang.Object, java.util.Collection] */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:30:0x00bd -> B:31:0x00be). Please report as a decompilation issue!!! */
    @Override // C4.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invokeSuspend(Object obj) {
        int i6;
        Map map;
        String str;
        E.D d6;
        int i7;
        int i8;
        int i9;
        ?? r6;
        B4.a aVar = B4.a.f492a;
        int i10 = this.f18551k;
        C3137A c3137a = C3137A.f25453a;
        if (i10 == 0) {
            AbstractC2467b.l(obj);
            i6 = 0;
            E.D d7 = this.l;
            int i11 = this.f18552m;
            map = this.f18553n;
            str = this.f18554o;
            d6 = d7;
            i7 = i11;
            i8 = 28;
            if (i6 < i8) {
            }
            return c3137a;
        }
        if (i10 == 1) {
            i6 = this.f18547d;
            int i12 = this.f18546c;
            i7 = this.f18545b;
            i8 = this.f18544a;
            str = this.f18550j;
            map = this.f18549f;
            d6 = this.f18548e;
            AbstractC2467b.l(obj);
            long j4 = 20;
            if (i6 > 8) {
                i6 = 8;
            }
            long j6 = (((long) i6) * 12) + j4;
            this.f18548e = d6;
            this.f18549f = map;
            this.f18550j = str;
            this.f18544a = i8;
            this.f18545b = i7;
            this.f18546c = i12;
            this.f18551k = 2;
            if (V4.E.l(j6, this) != aVar) {
                i9 = i12;
                r6 = d6.g().f1065m;
                if (!r6.isEmpty()) {
                }
                i6 = i9 + 1;
                if (i6 < i8) {
                }
                return c3137a;
            }
            return aVar;
        }
        if (i10 != 2) {
            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
        }
        i9 = this.f18546c;
        int i13 = this.f18545b;
        int i14 = this.f18544a;
        String str2 = this.f18550j;
        Map map2 = this.f18549f;
        E.D d8 = this.f18548e;
        AbstractC2467b.l(obj);
        d6 = d8;
        map = map2;
        str = str2;
        i8 = i14;
        i7 = i13;
        r6 = d6.g().f1065m;
        if (!r6.isEmpty()) {
            Iterator it = r6.iterator();
            while (true) {
                if (!it.hasNext()) {
                    break;
                }
                if (((E.s) it.next()).f1072a == i7) {
                    break;
                }
            }
        }
        i6 = i9 + 1;
        if (i6 < i8) {
            ?? r62 = d6.g().f1065m;
            if (!r62.isEmpty()) {
                Iterator it2 = r62.iterator();
                while (it2.hasNext()) {
                    if (((E.s) it2.next()).f1072a == i7) {
                        break;
                    }
                }
            }
            this.f18548e = d6;
            this.f18549f = map;
            this.f18550j = str;
            this.f18544a = i8;
            this.f18545b = i7;
            this.f18546c = i6;
            this.f18547d = i6;
            this.f18551k = 1;
        }
        return c3137a;
    }
}
