package N2;

import V4.C;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.concurrent.CancellationException;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;
import m3.AbstractC2467b;
import w4.C3137A;

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

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

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

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

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

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

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

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

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public final /* synthetic */ J4.g f5226k;
    public final /* synthetic */ T2.g l;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public final /* synthetic */ T2.c f5227m;

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public final /* synthetic */ ConcurrentHashMap.KeySetView f5228n;

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

    /* JADX INFO: renamed from: p, reason: collision with root package name */
    public final /* synthetic */ AtomicInteger f5230p;

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public final /* synthetic */ AtomicInteger f5231q;

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public final /* synthetic */ LinkedHashMap f5232r;

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

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    public final /* synthetic */ LinkedHashMap f5234t;

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

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

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

    /* JADX INFO: renamed from: x, reason: collision with root package name */
    public final /* synthetic */ AtomicBoolean f5238x;

    /* JADX INFO: renamed from: y, reason: collision with root package name */
    public final /* synthetic */ AtomicBoolean f5239y;

    /* JADX INFO: renamed from: z, reason: collision with root package name */
    public final /* synthetic */ J4.a f5240z;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public o(List list, String str, String str2, u uVar, Map map, r rVar, J4.g gVar, T2.g gVar2, T2.c cVar, ConcurrentHashMap.KeySetView keySetView, String str3, AtomicInteger atomicInteger, AtomicInteger atomicInteger2, LinkedHashMap linkedHashMap, boolean z6, LinkedHashMap linkedHashMap2, String str4, String str5, String str6, AtomicBoolean atomicBoolean, AtomicBoolean atomicBoolean2, J4.a aVar, A4.d dVar) {
        super(2, dVar);
        this.f5220b = list;
        this.f5221c = str;
        this.f5222d = str2;
        this.f5223e = uVar;
        this.f5224f = map;
        this.f5225j = rVar;
        this.f5226k = gVar;
        this.l = gVar2;
        this.f5227m = cVar;
        this.f5228n = keySetView;
        this.f5229o = str3;
        this.f5230p = atomicInteger;
        this.f5231q = atomicInteger2;
        this.f5232r = linkedHashMap;
        this.f5233s = z6;
        this.f5234t = linkedHashMap2;
        this.f5235u = str4;
        this.f5236v = str5;
        this.f5237w = str6;
        this.f5238x = atomicBoolean;
        this.f5239y = atomicBoolean2;
        this.f5240z = aVar;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        AtomicBoolean atomicBoolean = this.f5239y;
        J4.a aVar = this.f5240z;
        return new o(this.f5220b, this.f5221c, this.f5222d, this.f5223e, this.f5224f, this.f5225j, this.f5226k, this.l, this.f5227m, this.f5228n, this.f5229o, this.f5230p, this.f5231q, this.f5232r, this.f5233s, this.f5234t, this.f5235u, this.f5236v, this.f5237w, this.f5238x, atomicBoolean, aVar, dVar);
    }

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

    /* JADX WARN: Can't wrap try/catch for region: R(25:180|22|23|182|24|25|(6:188|26|27|172|28|29)|(7:31|178|32|(0)(19:36|(1:38)(1:39)|(1:41)|55|56|186|57|(3:59|184|60)(1:64)|65|(1:67)(1:68)|69|(1:71)(1:72)|73|(1:75)(1:76)|(2:(1:89)(1:88)|(2:91|78))(1:78)|92|(3:94|95|(2:97|(1:99)(7:113|(1:115)(1:116)|(1:118)(1:119)|(1:121)(1:123)|122|124|(2:126|99)))(7:100|(1:102)(1:103)|(1:105)(1:106)|(1:108)(1:109)|110|(1:112)(0)|99))(0)|(2:128|191)(1:192)|129)|168|(1:170)|171)(1:47)|(1:54)|55|56|186|57|(0)(0)|65|(0)(0)|69|(0)(0)|73|(0)(0)|(0)(0)|92|(0)(0)|(0)(0)|129) */
    /* JADX WARN: Code restructure failed: missing block: B:130:0x0243, code lost:
    
        r0 = th;
     */
    /* JADX WARN: Code restructure failed: missing block: B:132:0x0245, code lost:
    
        r5 = r13;
        r2 = r17;
        r1 = r43;
        r3 = r44;
        r4 = r47;
     */
    /* JADX WARN: Code restructure failed: missing block: B:133:0x0250, code lost:
    
        r0 = e;
     */
    /* JADX WARN: Removed duplicated region for block: B:113:0x01f9 A[Catch: Exception -> 0x0113, all -> 0x0166, CancellationException -> 0x0168, TryCatch #14 {CancellationException -> 0x0168, Exception -> 0x0113, all -> 0x0166, blocks: (B:60:0x0104, B:65:0x012f, B:67:0x0139, B:69:0x0140, B:71:0x0144, B:73:0x014b, B:78:0x0161, B:92:0x017e, B:94:0x01af, B:97:0x01c5, B:128:0x0230, B:100:0x01d6, B:102:0x01db, B:105:0x01e2, B:108:0x01e9, B:110:0x01ee, B:113:0x01f9, B:115:0x0203, B:118:0x020c, B:121:0x0215, B:124:0x0223, B:84:0x016c, B:86:0x0170, B:156:0x0289), top: B:184:0x0104 }] */
    /* JADX WARN: Removed duplicated region for block: B:128:0x0230 A[Catch: Exception -> 0x0113, all -> 0x0166, CancellationException -> 0x0168, TryCatch #14 {CancellationException -> 0x0168, Exception -> 0x0113, all -> 0x0166, blocks: (B:60:0x0104, B:65:0x012f, B:67:0x0139, B:69:0x0140, B:71:0x0144, B:73:0x014b, B:78:0x0161, B:92:0x017e, B:94:0x01af, B:97:0x01c5, B:128:0x0230, B:100:0x01d6, B:102:0x01db, B:105:0x01e2, B:108:0x01e9, B:110:0x01ee, B:113:0x01f9, B:115:0x0203, B:118:0x020c, B:121:0x0215, B:124:0x0223, B:84:0x016c, B:86:0x0170, B:156:0x0289), top: B:184:0x0104 }] */
    /* JADX WARN: Removed duplicated region for block: B:160:0x02b3 A[PHI: r1 r2 r3 r4 r5
      0x02b3: PHI (r1v4 J4.a) = (r1v5 J4.a), (r1v13 J4.a) binds: [B:162:0x02c2, B:159:0x02a9] A[DONT_GENERATE, DONT_INLINE]
      0x02b3: PHI (r2v3 java.util.concurrent.atomic.AtomicBoolean) = (r2v4 java.util.concurrent.atomic.AtomicBoolean), (r2v12 java.util.concurrent.atomic.AtomicBoolean) binds: [B:162:0x02c2, B:159:0x02a9] A[DONT_GENERATE, DONT_INLINE]
      0x02b3: PHI (r3v3 java.util.concurrent.atomic.AtomicBoolean) = (r3v4 java.util.concurrent.atomic.AtomicBoolean), (r3v11 java.util.concurrent.atomic.AtomicBoolean) binds: [B:162:0x02c2, B:159:0x02a9] A[DONT_GENERATE, DONT_INLINE]
      0x02b3: PHI (r4v3 java.util.concurrent.atomic.AtomicInteger) = (r4v4 java.util.concurrent.atomic.AtomicInteger), (r4v11 java.util.concurrent.atomic.AtomicInteger) binds: [B:162:0x02c2, B:159:0x02a9] A[DONT_GENERATE, DONT_INLINE]
      0x02b3: PHI (r5v3 java.util.concurrent.atomic.AtomicInteger) = (r5v4 java.util.concurrent.atomic.AtomicInteger), (r5v10 java.util.concurrent.atomic.AtomicInteger) binds: [B:162:0x02c2, B:159:0x02a9] A[DONT_GENERATE, DONT_INLINE]] */
    /* JADX WARN: Removed duplicated region for block: B:170:0x02d7  */
    /* JADX WARN: Removed duplicated region for block: B:192:0x0233 A[SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:59:0x0102  */
    /* JADX WARN: Removed duplicated region for block: B:64:0x012b  */
    /* JADX WARN: Removed duplicated region for block: B:67:0x0139 A[Catch: Exception -> 0x0113, all -> 0x0166, CancellationException -> 0x0168, TryCatch #14 {CancellationException -> 0x0168, Exception -> 0x0113, all -> 0x0166, blocks: (B:60:0x0104, B:65:0x012f, B:67:0x0139, B:69:0x0140, B:71:0x0144, B:73:0x014b, B:78:0x0161, B:92:0x017e, B:94:0x01af, B:97:0x01c5, B:128:0x0230, B:100:0x01d6, B:102:0x01db, B:105:0x01e2, B:108:0x01e9, B:110:0x01ee, B:113:0x01f9, B:115:0x0203, B:118:0x020c, B:121:0x0215, B:124:0x0223, B:84:0x016c, B:86:0x0170, B:156:0x0289), top: B:184:0x0104 }] */
    /* JADX WARN: Removed duplicated region for block: B:68:0x013e  */
    /* JADX WARN: Removed duplicated region for block: B:71:0x0144 A[Catch: Exception -> 0x0113, all -> 0x0166, CancellationException -> 0x0168, TryCatch #14 {CancellationException -> 0x0168, Exception -> 0x0113, all -> 0x0166, blocks: (B:60:0x0104, B:65:0x012f, B:67:0x0139, B:69:0x0140, B:71:0x0144, B:73:0x014b, B:78:0x0161, B:92:0x017e, B:94:0x01af, B:97:0x01c5, B:128:0x0230, B:100:0x01d6, B:102:0x01db, B:105:0x01e2, B:108:0x01e9, B:110:0x01ee, B:113:0x01f9, B:115:0x0203, B:118:0x020c, B:121:0x0215, B:124:0x0223, B:84:0x016c, B:86:0x0170, B:156:0x0289), top: B:184:0x0104 }] */
    /* JADX WARN: Removed duplicated region for block: B:72:0x0149  */
    /* JADX WARN: Removed duplicated region for block: B:75:0x015c  */
    /* JADX WARN: Removed duplicated region for block: B:76:0x015d  */
    /* JADX WARN: Removed duplicated region for block: B:78:0x0161 A[Catch: Exception -> 0x0113, all -> 0x0166, CancellationException -> 0x0168, PHI: r2
      0x0161: PHI (r2v43 java.lang.Long) = (r2v23 java.lang.Long), (r2v25 java.lang.Long) binds: [B:77:0x015f, B:91:0x017d] A[DONT_GENERATE, DONT_INLINE], TryCatch #14 {CancellationException -> 0x0168, Exception -> 0x0113, all -> 0x0166, blocks: (B:60:0x0104, B:65:0x012f, B:67:0x0139, B:69:0x0140, B:71:0x0144, B:73:0x014b, B:78:0x0161, B:92:0x017e, B:94:0x01af, B:97:0x01c5, B:128:0x0230, B:100:0x01d6, B:102:0x01db, B:105:0x01e2, B:108:0x01e9, B:110:0x01ee, B:113:0x01f9, B:115:0x0203, B:118:0x020c, B:121:0x0215, B:124:0x0223, B:84:0x016c, B:86:0x0170, B:156:0x0289), top: B:184:0x0104 }] */
    /* JADX WARN: Removed duplicated region for block: B:83:0x016a  */
    /* JADX WARN: Removed duplicated region for block: B:94:0x01af A[Catch: Exception -> 0x0113, all -> 0x0166, CancellationException -> 0x0168, TRY_LEAVE, TryCatch #14 {CancellationException -> 0x0168, Exception -> 0x0113, all -> 0x0166, blocks: (B:60:0x0104, B:65:0x012f, B:67:0x0139, B:69:0x0140, B:71:0x0144, B:73:0x014b, B:78:0x0161, B:92:0x017e, B:94:0x01af, B:97:0x01c5, B:128:0x0230, B:100:0x01d6, B:102:0x01db, B:105:0x01e2, B:108:0x01e9, B:110:0x01ee, B:113:0x01f9, B:115:0x0203, B:118:0x020c, B:121:0x0215, B:124:0x0223, B:84:0x016c, B:86:0x0170, B:156:0x0289), top: B:184:0x0104 }] */
    @Override // C4.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invokeSuspend(Object obj) throws Throwable {
        J4.a aVar;
        AtomicBoolean atomicBoolean;
        AtomicBoolean atomicBoolean2;
        AtomicInteger atomicInteger;
        AtomicInteger atomicInteger2;
        J4.a aVar2;
        AtomicBoolean atomicBoolean3;
        AtomicBoolean atomicBoolean4;
        AtomicInteger atomicInteger3;
        AtomicInteger atomicInteger4;
        Object objA;
        LinkedHashMap linkedHashMap;
        boolean z6;
        LinkedHashMap linkedHashMap2;
        String str;
        String str2;
        String str3;
        ArrayList arrayList;
        Iterator it;
        T2.g gVar;
        J4.a aVar3;
        AtomicBoolean atomicBoolean5;
        AtomicBoolean atomicBoolean6;
        AtomicInteger atomicInteger5;
        AtomicInteger atomicInteger6;
        f fVar;
        Locale locale;
        T2.d dVar;
        LinkedHashMap linkedHashMap3;
        String string;
        String str4;
        Long l;
        long jLongValue;
        f fVarA;
        B4.a aVar4 = B4.a.f492a;
        int i6 = this.f5219a;
        J4.a aVar5 = this.f5240z;
        AtomicBoolean atomicBoolean7 = this.f5239y;
        AtomicBoolean atomicBoolean8 = this.f5238x;
        AtomicInteger atomicInteger7 = this.f5231q;
        AtomicInteger atomicInteger8 = this.f5230p;
        String str5 = this.f5229o;
        ConcurrentHashMap.KeySetView keySetView = this.f5228n;
        try {
            try {
                if (i6 == 0) {
                    AbstractC2467b.l(obj);
                    List list = this.f5220b;
                    String str6 = this.f5221c;
                    String str7 = this.f5222d;
                    u uVar = this.f5223e;
                    Map map = this.f5224f;
                    r rVar = this.f5225j;
                    this.f5219a = 1;
                    objA = q.a(list, str6, str7, uVar, map, rVar, this);
                    if (objA == aVar4) {
                        return aVar4;
                    }
                } else {
                    if (i6 != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    AbstractC2467b.l(obj);
                    objA = obj;
                }
                List list2 = (List) objA;
                linkedHashMap = this.f5232r;
                z6 = this.f5233s;
                linkedHashMap2 = this.f5234t;
                str = this.f5235u;
                str2 = this.f5236v;
                str3 = this.f5237w;
                arrayList = new ArrayList();
                it = list2.iterator();
            } catch (Exception unused) {
                aVar2 = aVar5;
                atomicBoolean3 = atomicBoolean7;
                atomicBoolean4 = atomicBoolean8;
                atomicInteger3 = atomicInteger7;
                atomicInteger4 = atomicInteger8;
            }
        } catch (CancellationException e6) {
            e = e6;
            aVar = aVar5;
            atomicBoolean = atomicBoolean7;
            atomicBoolean2 = atomicBoolean8;
            atomicInteger = atomicInteger7;
            atomicInteger2 = atomicInteger8;
        } catch (Throwable th) {
            th = th;
            aVar = aVar5;
            atomicBoolean = atomicBoolean7;
            atomicBoolean2 = atomicBoolean8;
            atomicInteger = atomicInteger7;
            atomicInteger2 = atomicInteger8;
        }
        while (true) {
            boolean zHasNext = it.hasNext();
            boolean z7 = z6;
            gVar = this.l;
            if (!zHasNext) {
                break;
            }
            try {
                aVar3 = aVar5;
            } catch (CancellationException e7) {
                e = e7;
                aVar3 = aVar5;
            } catch (Throwable th2) {
                th = th2;
                aVar3 = aVar5;
            }
            try {
                fVar = (f) it.next();
                atomicBoolean5 = atomicBoolean7;
            } catch (CancellationException e8) {
                e = e8;
                atomicBoolean5 = atomicBoolean7;
                atomicBoolean6 = atomicBoolean8;
                atomicInteger5 = atomicInteger7;
                atomicInteger6 = atomicInteger8;
                atomicBoolean = atomicBoolean5;
                aVar = aVar3;
                atomicBoolean2 = atomicBoolean6;
                atomicInteger = atomicInteger5;
                atomicInteger2 = atomicInteger6;
                try {
                    throw e;
                } catch (Throwable th3) {
                    th = th3;
                }
            } catch (Exception unused2) {
                atomicBoolean3 = atomicBoolean7;
                atomicBoolean4 = atomicBoolean8;
                atomicInteger3 = atomicInteger7;
                atomicInteger4 = atomicInteger8;
            } catch (Throwable th4) {
                th = th4;
                atomicBoolean5 = atomicBoolean7;
                atomicBoolean6 = atomicBoolean8;
                atomicInteger5 = atomicInteger7;
                atomicInteger6 = atomicInteger8;
                atomicBoolean = atomicBoolean5;
                aVar = aVar3;
                atomicBoolean2 = atomicBoolean6;
                atomicInteger = atomicInteger5;
                atomicInteger2 = atomicInteger6;
                keySetView.remove(str5);
                if (atomicInteger2.incrementAndGet() == atomicInteger.get()) {
                }
                throw th;
            }
            try {
                String str8 = fVar.f5143a;
                atomicBoolean6 = atomicBoolean8;
                try {
                    try {
                        locale = Locale.ROOT;
                        String lowerCase = str8.toLowerCase(locale);
                        kotlin.jvm.internal.o.g(lowerCase, "toLowerCase(...)");
                        dVar = (T2.d) linkedHashMap.get(lowerCase);
                    } catch (Exception unused3) {
                        atomicInteger3 = atomicInteger7;
                        atomicInteger4 = atomicInteger8;
                        atomicBoolean3 = atomicBoolean5;
                        aVar2 = aVar3;
                        atomicBoolean4 = atomicBoolean6;
                    }
                } catch (CancellationException e9) {
                    e = e9;
                    atomicInteger5 = atomicInteger7;
                    atomicInteger6 = atomicInteger8;
                    atomicBoolean = atomicBoolean5;
                    aVar = aVar3;
                    atomicBoolean2 = atomicBoolean6;
                    atomicInteger = atomicInteger5;
                    atomicInteger2 = atomicInteger6;
                    throw e;
                } catch (Throwable th5) {
                    th = th5;
                    atomicInteger5 = atomicInteger7;
                    atomicInteger6 = atomicInteger8;
                    atomicBoolean = atomicBoolean5;
                    aVar = aVar3;
                    atomicBoolean2 = atomicBoolean6;
                    atomicInteger = atomicInteger5;
                    atomicInteger2 = atomicInteger6;
                    keySetView.remove(str5);
                    if (atomicInteger2.incrementAndGet() == atomicInteger.get()) {
                    }
                    throw th;
                }
            } catch (CancellationException e10) {
                e = e10;
                atomicBoolean6 = atomicBoolean8;
            } catch (Exception unused4) {
                atomicBoolean4 = atomicBoolean8;
                atomicInteger3 = atomicInteger7;
                atomicInteger4 = atomicInteger8;
                atomicBoolean3 = atomicBoolean5;
                aVar2 = aVar3;
                keySetView.remove(str5);
                if (atomicInteger4.incrementAndGet() == atomicInteger3.get()) {
                }
                return C3137A.f25453a;
            } catch (Throwable th6) {
                th = th6;
                atomicBoolean6 = atomicBoolean8;
            }
            if (dVar != null) {
                linkedHashMap3 = linkedHashMap;
                try {
                    String str9 = dVar.f6644e;
                    if (str9 != null && (string = S4.p.o1(str9).toString()) != null) {
                        if (string.length() <= 0) {
                            string = null;
                        }
                        if (string == null) {
                        }
                        S4.m mVar = P2.c.f5650a;
                        atomicInteger5 = atomicInteger7;
                        String str10 = fVar.f5146d;
                        if (dVar == null) {
                            atomicInteger6 = atomicInteger8;
                            try {
                                str4 = dVar.f6642c;
                            } catch (CancellationException e11) {
                                e = e11;
                                atomicBoolean = atomicBoolean5;
                                aVar = aVar3;
                                atomicBoolean2 = atomicBoolean6;
                                atomicInteger = atomicInteger5;
                                atomicInteger2 = atomicInteger6;
                                throw e;
                            } catch (Exception unused5) {
                                atomicBoolean3 = atomicBoolean5;
                                aVar2 = aVar3;
                                atomicBoolean4 = atomicBoolean6;
                                atomicInteger3 = atomicInteger5;
                                atomicInteger4 = atomicInteger6;
                                keySetView.remove(str5);
                                if (atomicInteger4.incrementAndGet() == atomicInteger3.get()) {
                                    q.k(atomicBoolean4, atomicBoolean3, atomicInteger4, atomicInteger3, aVar2);
                                }
                                return C3137A.f25453a;
                            } catch (Throwable th7) {
                                th = th7;
                                atomicBoolean = atomicBoolean5;
                                aVar = aVar3;
                                atomicBoolean2 = atomicBoolean6;
                                atomicInteger = atomicInteger5;
                                atomicInteger2 = atomicInteger6;
                                keySetView.remove(str5);
                                if (atomicInteger2.incrementAndGet() == atomicInteger.get()) {
                                }
                                throw th;
                            }
                        } else {
                            atomicInteger6 = atomicInteger8;
                            str4 = null;
                        }
                        String strC = P2.c.c(str10, str4, string);
                        String str11 = dVar == null ? dVar.f6644e : null;
                        String str12 = gVar.f6659b;
                        String str13 = dVar == null ? dVar.f6642c : null;
                        l = new Long(fVar.f5148f);
                        if (l.longValue() > 0) {
                            l = null;
                        }
                        if (l == null) {
                            if (dVar == null || (l = dVar.f6641b) == null || l.longValue() <= 0) {
                                l = null;
                            }
                            jLongValue = l != null ? l.longValue() : 0L;
                        }
                        fVarA = f.a(fVar, strC, str13, jLongValue, str11, str12, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, 67108615);
                        if (!z7) {
                            kotlin.jvm.internal.o.e(linkedHashMap2);
                            String lowerCase2 = fVar.f5143a.toLowerCase(locale);
                            kotlin.jvm.internal.o.g(lowerCase2, "toLowerCase(...)");
                            T2.b bVar = (T2.b) linkedHashMap2.get(lowerCase2);
                            String str14 = fVarA.f5146d;
                            if (bVar != null) {
                                kotlin.jvm.internal.o.e(str);
                                if (T2.f.d(bVar, str, str2, str14)) {
                                    List list3 = d.f5140a;
                                    if (d.a(str3, fVarA.f5146d, fVarA.f5149g, fVarA.f5147e, dVar != null ? dVar.f6640a : null, dVar != null ? dVar.f6644e : null, dVar != null ? dVar.f6642c : null)) {
                                        fVarA = null;
                                    }
                                } else {
                                    fVarA = null;
                                }
                            } else {
                                kotlin.jvm.internal.o.e(str);
                                if (!T2.f.c(str, str2, str14, dVar != null ? dVar.f6640a : null, dVar != null ? dVar.f6644e : null, dVar != null ? dVar.f6642c : null)) {
                                }
                                fVarA = null;
                            }
                        }
                        if (fVarA == null) {
                            arrayList.add(fVarA);
                        }
                        z6 = z7;
                        atomicBoolean7 = atomicBoolean5;
                        aVar5 = aVar3;
                        atomicBoolean8 = atomicBoolean6;
                        linkedHashMap = linkedHashMap3;
                        atomicInteger7 = atomicInteger5;
                        atomicInteger8 = atomicInteger6;
                    }
                } catch (CancellationException e12) {
                    e = e12;
                    atomicInteger = atomicInteger7;
                    atomicInteger2 = atomicInteger8;
                    atomicBoolean = atomicBoolean5;
                    aVar = aVar3;
                    atomicBoolean2 = atomicBoolean6;
                    throw e;
                } catch (Throwable th8) {
                    th = th8;
                    atomicInteger = atomicInteger7;
                    atomicInteger2 = atomicInteger8;
                    atomicBoolean = atomicBoolean5;
                    aVar = aVar3;
                    atomicBoolean2 = atomicBoolean6;
                }
                keySetView.remove(str5);
                if (atomicInteger2.incrementAndGet() == atomicInteger.get()) {
                    q.k(atomicBoolean2, atomicBoolean, atomicInteger2, atomicInteger, aVar);
                }
                throw th;
            }
            linkedHashMap3 = linkedHashMap;
            if (dVar == null || (string = S4.p.o1(dVar.f6640a).toString()) == null || string.length() <= 0) {
                string = null;
            }
            S4.m mVar2 = P2.c.f5650a;
            atomicInteger5 = atomicInteger7;
            String str102 = fVar.f5146d;
            if (dVar == null) {
            }
            String strC2 = P2.c.c(str102, str4, string);
            if (dVar == null) {
            }
            String str122 = gVar.f6659b;
            if (dVar == null) {
            }
            l = new Long(fVar.f5148f);
            if (l.longValue() > 0) {
            }
            if (l == null) {
            }
            fVarA = f.a(fVar, strC2, str13, jLongValue, str11, str122, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, 67108615);
            if (!z7) {
            }
            if (fVarA == null) {
            }
            z6 = z7;
            atomicBoolean7 = atomicBoolean5;
            aVar5 = aVar3;
            atomicBoolean8 = atomicBoolean6;
            linkedHashMap = linkedHashMap3;
            atomicInteger7 = atomicInteger5;
            atomicInteger8 = atomicInteger6;
        }
        aVar3 = aVar5;
        atomicBoolean5 = atomicBoolean7;
        atomicBoolean6 = atomicBoolean8;
        atomicInteger5 = atomicInteger7;
        atomicInteger6 = atomicInteger8;
        this.f5226k.invoke(gVar, this.f5227m, this.f5221c, arrayList);
        keySetView.remove(str5);
        if (atomicInteger6.incrementAndGet() == atomicInteger5.get()) {
            atomicBoolean3 = atomicBoolean5;
            aVar2 = aVar3;
            atomicBoolean4 = atomicBoolean6;
            atomicInteger3 = atomicInteger5;
            atomicInteger4 = atomicInteger6;
            q.k(atomicBoolean4, atomicBoolean3, atomicInteger4, atomicInteger3, aVar2);
        }
        return C3137A.f25453a;
    }
}
