package o;

import android.app.ActionBar;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.res.TypedArray;
import android.database.Cursor;
import android.net.Uri;
import android.os.Build;
import android.os.LocaleList;
import android.text.Spannable;
import android.text.style.AbsoluteSizeSpan;
import android.text.style.ForegroundColorSpan;
import android.text.style.LocaleSpan;
import android.text.style.RelativeSizeSpan;
import android.util.AttributeSet;
import android.util.SparseArray;
import android.util.TypedValue;
import android.view.KeyEvent;
import android.view.View;
import android.view.Window;
import androidx.compose.foundation.BorderModifierNodeElement;
import androidx.work.impl.WorkDatabase;
import androidx.work.impl.WorkDatabase_Impl;
import com.google.android.gms.common.R;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.lang.ref.WeakReference;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Locale;
import java.util.WeakHashMap;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public abstract class YT implements OR {
    public static final C0688a6 a;
    public static final J7 b;
    public static final float[] c = {1.0f, 10.0f, 100.0f, 1000.0f, 10000.0f, 100000.0f, 1000000.0f, 1.0E7f, 1.0E8f, 1.0E9f, 1.0E10f};
    public static final long[] d = {-6499023860262858360L, -3512093806901185046L, -9112587656954322510L, -6779048552765515233L, -3862124672529506138L, -215969822234494768L, -7052510166537641086L, -4203951689744663454L, -643253593753441413L, -7319562523736982739L, -4537767136243840520L, -1060522901877412746L, -7580355841314464822L, -4863758783215693124L, -1468012460592228501L, -7835036815511224669L, -5182110000961642932L, -1865951482774665761L, -8083748704375247957L, -5492999862041672042L, -2254563809124702148L, -8326631408344020699L, -5796603242002637969L, -2634068034075909558L, -8563821548938525330L, -6093090917745768758L, -3004677628754823043L, -8795452545612846258L, -6382629663588669919L, -3366601061058449494L, -9021654690802612790L, -6665382345075878084L, -3720041912917459700L, -38366372719436721L, -6941508010590729807L, -4065198994811024355L, -469812725086392539L, -7211161980820077193L, -4402266457597708587L, -891147053569747830L, -7474495936122174250L, -4731433901725329908L, -1302606358729274481L, -7731658001846878407L, -5052886483881210105L, -1704422086424124727L, -7982792831656159810L, -5366805021142811859L, -2096820258001126919L, -8228041688891786181L, -5673366092687344822L, -2480021597431793123L, -8467542526035952558L, -5972742139117552794L, -2854241655469553088L, -8701430062309552536L, -6265101559459552766L, -3219690930897053053L, -8929835859451740015L, -6550608805887287114L, -3576574988931720989L, -9152888395723407474L, -6829424476226871438L, -3925094576856201394L, -294682202642863838L, -7101705404292871755L, -4265445736938701790L, -720121152745989333L, -7367604748107325189L, -4597819916706768583L, -1135588877456072824L, -7627272076051127371L, -4922404076636521310L, -1541319077368263733L, -7880853450996246689L, -5239380795317920458L, -1937539975720012668L, -8128491512466089774L, -5548928372155224313L, -2324474446766642487L, -8370325556870233411L, -5851220927660403859L, -2702340141148116920L, -8606491615858654931L, -6146428501395930760L, -3071349608317525546L, -8837122532839535322L, -6434717147622031249L, -3431710416100151157L, -9062348037703676329L, -6716249028702207507L, -3783625267450371480L, -117845565885576446L, -6991182506319567135L, -4127292114472071014L, -547429124662700864L, -7259672230555269896L, -4462904269766699466L, -966944318780986428L, -7521869226879198374L, -4790650515171610063L, -1376627125537124675L, -7777920981101784778L, -5110715207949843068L, -1776707991509915931L, -8027971522334779313L, -5423278384491086237L, -2167411962186469893L, -8272161504007625539L, -5728515861582144020L, -2548958808550292121L, -8510628282985014432L, -6026599335303880135L, -2921563150702462265L, -8743505996830120772L, -6317696477610263061L, -3285434578585440922L, -8970925639256982432L, -6601971030643840136L, -3640777769877412266L, -9193015133814464522L, -6879582898840692749L, -3987792605123478032L, -373054737976959636L, -7150688238876681629L, -4326674280168464132L, -796656831783192261L, -7415439547505577019L, -4657613415954583370L, -1210330751515841308L, -7673985747338482674L, -4980796165745715438L, -1614309188754756393L, -7926472270612804602L, -5296404319838617848L, -2008819381370884406L, -8173041140997884610L, -5604615407819967859L, -2394083241347571919L, -8413831053483314306L, -5905602798426754978L, -2770317479606055818L, -8648977452394866743L, -6199535797066195524L, -3137733727905356501L, -8878612607581929669L, -6486579741050024183L, -3496538657885142324L, -9102865688819295809L, -6766896092596731857L, -3846934097318526917L, -196981603220770742L, -7040642529654063570L, -4189117143640191558L, -624710411122851544L, -7307973034592864071L, -4523280274813692185L, -1042414325089727327L, -7569037980822161435L, -4849611457600313890L, -1450328303573004458L, -7823984217374209643L, -5168294253290374149L, -1848681798185579782L, -8072955151507069220L, -5479507920956448621L, -2237698882768172872L, -8316090829371189901L, -5783427518286599473L, -2617598379430861437L, -8553528014785370254L, -6080224000054324913L, -2988593981640518238L, -8785400266166405755L, -6370064314280619289L, -3350894374423386208L, -9011838011655698236L, -6653111496142234891L, -3704703351750405709L, -19193171260619233L, -6929524759678968877L, -4050219931171323192L, -451088895536766085L, -7199459587351560659L, -4387638465762062920L, -872862063775190746L, -7463067817500576073L, -4717148753448332187L, -1284749923383027329L, -7720497729755473937L, -5038936143766954517L, -1686984161281305242L, -7971894128441897632L, -5353181642124984136L, -2079791034228842266L, -8217398424034108273L, -5660062011615247437L, -2463391496091671392L, -8457148712698376476L, -5959749872445582691L, -2838001322129590460L, -8691279853972075893L, -6252413799037706963L, -3203831230369745799L, -8919923546622172981L, -6538218414850328322L, -3561087000135522498L, -9143208402725783417L, -6817324484979841368L, -3909969587797413806L, -275775966319379353L, -7089889006590693952L, -4250675239810979535L, -701658031336336515L, -7356065297226292178L, -4583395603105477319L, -1117558485454458744L, -7616003081050118571L, -4908317832885260310L, -1523711272679187483L, -7869848573065574033L, -5225624697904579637L, -1920344853953336643L, -8117744561361917258L, -5535494683275008668L, -2307682335666372931L, -8359830487432564938L, -5838102090863318269L, -2685941595151759932L, -8596242524610931813L, -6133617137336276863L, -3055335403242958174L, -8827113654667930715L, -6422206049907525490L, -3416071543957018958L, -9052573742614218705L, -6704031159840385477L, -3768352931373093942L, -98755145788979524L, -6979250993759194058L, -4112377723771604669L, -528786136287117932L, -7248020362820530564L, -4448339435098275301L, -948738275445456222L, -7510490449794491995L, -4776427043815727089L, -1358847786342270957L, -7766808894105001205L, -5096825099203863602L, -1759345355577441598L, -8017119874876982855L, -5409713825168840664L, -2150456263033662926L, -8261564192037121185L, -5715269221619013577L, -2532400508596379068L, -8500279345513818773L, -6013663163464885563L, -2905392935903719049L, -8733399612580906262L, -6305063497298744923L, -3269643353196043250L, -8961056123388608887L, -6589634135808373205L, -3625356651333078602L, -9183376934724255983L, -6867535149977932074L, -3972732919045027189L, -354230130378896082L, -7138922859127891907L, -4311967555482476980L, -778273425925708321L, -7403949918844649557L, -4643251380128424042L, -1192378206733142148L, -7662765406849295699L, -4966770740134231719L, -1596777406740401745L, -7915514906853832947L, -5282707615139903279L, -1991698500497491195L, -8162340590452013853L, -5591239719637629412L, -2377363631119648861L, -8403381297090862394L, -5892540602936190089L, -2753989735242849707L, -8638772612167862923L, -6186779746782440750L, -3121788665050663033L, -8868646943297746252L, -6474122660694794911L, -3480967307441105734L, -9093133594791772940L, -6754730975062328271L, -3831727700400522434L, -177973607073265139L, -7028762532061872568L, -4174267146649952806L, -606147914885053103L, -7296371474444240046L, -4508778324627912153L, -1024286887357502287L, -7557708332239520786L, -4835449396872013078L, -1432625727662628443L, -7812920107430224633L, -5154464115860392887L, -1831394126398103205L, -8062150356639896359L, -5466001927372482545L, -2220816390788215277L, -8305539271883716405L, -5770238071427257602L, -2601111570856684098L, -8543223759426509417L, -6067343680855748868L, -2972493582642298180L, -8775337516792518219L, -6357485877563259869L, -3335171328526686933L, -9002011107970261189L, -6640827866535438582L, -3689348814741910324L, Long.MIN_VALUE, -6917529027641081856L, -4035225266123964416L, -432345564227567616L, -7187745005283311616L, -4372995238176751616L, -854558029293551616L, -7451627795949551616L, -4702848726509551616L, -1266874889709551616L, -7709325833709551616L, -5024971273709551616L, -1669528073709551616L, -7960984073709551616L, -5339544073709551616L, -2062744073709551616L, -8206744073709551616L, -5646744073709551616L, -2446744073709551616L, -8446744073709551616L, -5946744073709551616L, -2821744073709551616L, -8681119073709551616L, -6239712823709551616L, -3187955011209551616L, -8910000909647051616L, -6525815118631426616L, -3545582879861895366L, -9133518327554766460L, -6805211891016070171L, -3894828845342699810L, -256850038250986858L, -7078060301547948643L, -4235889358507547899L, -683175679707046970L, -7344513827457986212L, -4568956265895094861L, -1099509313941480672L, -7604722348854507276L, -4894216917640746191L, -1506085128623544835L, -7858832233030797378L, -5211854272861108819L, -1903131822648998119L, -8106986416796705681L, -5522047002568494197L, -2290872734783229842L, -8349324486880600507L, -5824969590173362730L, -2669525969289315508L, -8585982758446904049L, -6120792429631242157L, -3039304518611664792L, -8817094351773372351L, -6409681921289327535L, -3400416383184271515L, -9042789267131251553L, -6691800565486676537L, -3753064688430957767L, -79644842111309304L, -6967307053960650171L, -4097447799023424810L, -510123730351893109L, -7236356359111015049L, -4433759430461380907L, -930513269649338230L, -7499099821171918250L, -4762188758037509908L, -1341049929119499481L, -7755685233340769032L, -5082920523248573386L, -1741964635633328828L, -8006256924911912374L, -5396135137712502563L, -2133482903713240300L, -8250955842461857044L, -5702008784649933400L, -2515824962385028846L, -8489919629131724885L, -6000713517987268202L, -2889205879056697349L, -8723282702051517699L, -6292417359137009220L, -3253835680493873621L, -8951176327949752869L, -6577284391509803182L, -3609919470959866074L, -9173728696990998152L, -6855474852811359786L, -3957657547586811828L, -335385916056126881L, -7127145225176161157L, -4297245513042813542L, -759870872876129024L, -7392448323188662496L, -4628874385558440216L, -1174406963520662366L, -7651533379841495835L, -4952730706374481889L, -1579227364540714458L, -7904546130479028392L, -5268996644671397586L, -1974559787411859078L, -8151628894773493780L, -5577850100039479321L, -2360626606621961247L, -8392920656779807636L, -5879464802547371641L, -2737644984756826647L, -8628557143114098510L, -6174010410465235234L, -3105826994654156138L, -8858670899299929442L, -6461652605697523899L, -3465379738694516970L, -9083391364325154962L, -6742553186979055799L, -3816505465296431844L, -158945813193151901L, -7016870160886801794L, -4159401682681114339L, -587566084924005019L, -7284757830718584993L, -4494261269970843337L, -1006140569036166268L, -7546366883288685774L, -4821272585683469313L, -1414904713676948737L, -7801844473689174817L, -5140619573684080617L, -1814088448677712867L, -8051334308064652398L, -5452481866653427593L, -2203916314889396588L, -8294976724446954723L, -5757034887131305500L, -2584607590486743971L, -8532908771695296838L, -6054449946191733143L, -2956376414312278525L, -8765264286586255934L, -6344894339805432014L, -3319431906329402113L, -8992173969096958177L, -6628531442943809817L, -3673978285252374367L, -9213765455923815836L, -6905520801477381891L, -4020214983419339459L, -413582710846786420L, -7176018221920323369L, -4358336758973016307L, -836234930288882479L, -7440175859071633406L, -4688533805412153853L, -1248981238337804412L, -7698142301602209614L, -5010991858575374113L, -1652053804791829737L, -7950062655635975442L, -5325892301117581398L, -2045679357969588844L, -8196078626372074883L, -5633412264537705700L, -2430079312244744221L, -8436328597794046994L, -5933724728815170839L, -2805469892591575644L, -8670947710510816634L, -6226998619711132888L, -3172062256211528206L, -8900067937773286985L, -6513398903789220827L, -3530062611309138130L, -9123818159709293187L, -6793086681209228580L, -3879672333084147821L, -237904397927796872L, -7066219276345954901L, -4221088077005055722L, -664674077828931749L, -7332950326284164199L, -4554501889427817345L, -1081441343357383777L, -7593429867239446717L, -4880101315621920492L, -1488440626100012711L, -7847804418953589800L, -5198069505264599346L, -1885900863153361279L, -8096217067111932656L, -5508585315462527915L, -2274045625900771990L, -8338807543829064350L, -5811823411358942533L, -2653093245771290262L, -8575712306248138270L, -6107954364382784934L, -3023256937051093263L, -8807064613298015146L, -6397144748195131028L, -3384744916816525881L, -9032994600651410532L, -6679557232386875260L, -3737760522056206171L, -60514634142869810L, -6955350673980375487L, -4082502324048081455L, -491441886632713915L, -7224680206786528053L, -4419164240055772162L, -912269281642327298L, -7487697328667536418L, -4747935642407032618L, -1323233534581402868L, -7744549986754458649L, -5069001465015685407L, -1724565812842218855L, -7995382660667468640L, -5382542307406947896L, -2116491865831296966L, -8240336443785642460L, -5688734536304665171L, -2499232151953443560L, -8479549122611984081L, -5987750384837592197L, -2873001962619602342L, -8713155254278333320L, -6279758049420528746L, -3238011543348273028L, -8941286242233752499L, -6564921784364802720L, -3594466212028615495L, -9164070410158966541L, -6843401994271320272L, -3942566474411762436L, -316522074587315140L, -7115355324258153819L, -4282508136895304370L, -741449152691742558L, -7380934748073420955L, -4614482416664388289L, -1156417002403097458L, -7640289654143017767L, -4938676049251384305L, -1561659043136842477L, -7893565929601608404L, -5255271393574622601L, -1957403223540890347L, -8140906042354138323L, -5564446534515285000L, -2343872149716718346L, -8382449121214030822L, -5866375383090150624L, -2721283210435300376L, -8618331034163144591L, -6161227774276542835L, -3089848699418290639L, -8848684464777513506L, -6449169562544503978L, -3449775934753242068L, -9073638986861858149L, -6730362715149934782L, -3801267375510030573L, -139898200960150313L, -7004965403241175802L, -4144520735624081848L, -568964901102714406L, -7273132090830278360L, -4479729095110460046L, -987975350460687153L, -7535013621679011327L, -4807081008671376254L, -1397165242411832414L, -7790757304148477115L, -5126760611758208489L, -1796764746270372707L, -8040506994060064798L, -5438947724147693094L, -2186998636757228463L, -8284403175614349646L, -5743817951090549153L, -2568086420435798537L, -8522583040413455942L, -6041542782089432023L, -2940242459184402125L, -8755180564631333184L, -6332289687361778576L, -3303676090774835316L, -8982326584375353929L, -6616222212041804507L, -3658591746624867729L, -9204148869281624187L, -6893500068174642330L, -4005189066790915008L, -394800315061255856L, -7164279224554366766L, -4343663012265570553L, -817892746904575288L, -7428711994456441411L, -4674203974643163860L, -1231068949876566920L, -7686947121313936181L, -4996997883215032323L, -1634561335591402499L, -7939129862385708418L, -5312226309554747619L, -2028596868516046619L, -8185402070463610993L};
    public static final C1072e7 e = new C1072e7(27);
    public static final TY f = new TY();
    public static final int[] g = {R.attr.colorPrimary};
    public static final int[] h = {R.attr.colorPrimaryVariant};
    public static boolean i = false;
    public static Method j = null;
    public static boolean k = false;
    public static Field l;

    static {
        int i2 = 1;
        a = new C0688a6(i2);
        b = new J7(i2);
    }

    public static final void A(Throwable th, InterfaceC2747vn interfaceC2747vn) {
        Throwable runtimeException;
        Iterator it = AbstractC3032yn.a.iterator();
        while (it.hasNext()) {
            try {
                ((InterfaceC2937xn) it.next()).g(th, interfaceC2747vn);
            } catch (Throwable th2) {
                if (th == th2) {
                    runtimeException = th;
                } else {
                    runtimeException = new RuntimeException("Exception while trying to handle coroutine exception", th2);
                    C80.i(runtimeException, th);
                }
                Thread threadCurrentThread = Thread.currentThread();
                threadCurrentThread.getUncaughtExceptionHandler().uncaughtException(threadCurrentThread, runtimeException);
            }
        }
        try {
            C80.i(th, new C0251Jr(interfaceC2747vn));
        } catch (Throwable unused) {
        }
        Thread threadCurrentThread2 = Thread.currentThread();
        threadCurrentThread2.getUncaughtExceptionHandler().uncaughtException(threadCurrentThread2, th);
    }

    public static final int B(int i2) {
        if (i2 == 0) {
            return 1;
        }
        if (i2 == 1) {
            return 2;
        }
        throw new IllegalArgumentException(AbstractC0126Ew.k(i2, "Could not convert ", " to BackoffPolicy"));
    }

    public static final int C(int i2) {
        if (i2 == 0) {
            return 1;
        }
        if (i2 == 1) {
            return 2;
        }
        if (i2 == 2) {
            return 3;
        }
        if (i2 == 3) {
            return 4;
        }
        if (i2 == 4) {
            return 5;
        }
        if (Build.VERSION.SDK_INT < 30 || i2 != 5) {
            throw new IllegalArgumentException(AbstractC0126Ew.k(i2, "Could not convert ", " to NetworkType"));
        }
        return 6;
    }

    public static final int D(int i2) {
        if (i2 == 0) {
            return 1;
        }
        if (i2 == 1) {
            return 2;
        }
        throw new IllegalArgumentException(AbstractC0126Ew.k(i2, "Could not convert ", " to OutOfQuotaPolicy"));
    }

    public static final int E(int i2) {
        if (i2 == 0) {
            return 1;
        }
        if (i2 == 1) {
            return 2;
        }
        if (i2 == 2) {
            return 3;
        }
        if (i2 == 3) {
            return 4;
        }
        if (i2 == 4) {
            return 5;
        }
        if (i2 == 5) {
            return 6;
        }
        throw new IllegalArgumentException(AbstractC0126Ew.k(i2, "Could not convert ", " to State"));
    }

    public static final boolean F(long j2) {
        return (j2 & 2) != 0;
    }

    public static final boolean G(long j2) {
        return (j2 & 1) != 0;
    }

    public static final long H(float f2, long j2) {
        return (Float.isNaN(f2) || f2 >= 1.0f) ? j2 : C0190Hi.b(C0190Hi.d(j2) * f2, j2);
    }

    public static TypedArray I(Context context, AttributeSet attributeSet, int[] iArr, int i2, int i3, int... iArr2) {
        l(context, attributeSet, i2, i3);
        n(context, attributeSet, iArr, i2, i3, iArr2);
        return context.obtainStyledAttributes(attributeSet, iArr, i2, i3);
    }

    public static final C0244Jk N(C0321Mk c0321Mk) {
        C0321Mk c0321Mk2;
        c0321Mk.T(206, AbstractC0373Ok.e);
        if (c0321Mk.Q) {
            C1365h90.x(c0321Mk.H);
        }
        Object objC = c0321Mk.C();
        C0218Ik c0218Ik = objC instanceof C0218Ik ? (C0218Ik) objC : null;
        if (c0218Ik == null) {
            c0321Mk2 = c0321Mk;
            c0218Ik = new C0218Ik(new C0244Jk(c0321Mk2, c0321Mk.R, c0321Mk.p, c0321Mk.B, c0321Mk.g.C));
            c0321Mk2.g0(c0218Ik);
        } else {
            c0321Mk2 = c0321Mk;
        }
        C0244Jk c0244Jk = c0218Ik.l;
        c0244Jk.f.setValue(c0321Mk2.l());
        c0321Mk2.q(false);
        return c0244Jk;
    }

    public static final float O(long j2, float f2, InterfaceC2281qr interfaceC2281qr) {
        float fC;
        long jB = C1020df0.b(j2);
        if (C1115ef0.a(jB, 4294967296L)) {
            if (interfaceC2281qr.q() <= 1.05d) {
                return interfaceC2281qr.X(j2);
            }
            fC = C1020df0.c(j2) / C1020df0.c(interfaceC2281qr.e0(f2));
        } else {
            if (!C1115ef0.a(jB, 8589934592L)) {
                return Float.NaN;
            }
            fC = C1020df0.c(j2);
        }
        return fC * f2;
    }

    public static final void P(Spannable spannable, long j2, int i2, int i3) {
        if (j2 != 16) {
            spannable.setSpan(new ForegroundColorSpan(AbstractC0752ap.g0(j2)), i2, i3, 33);
        }
    }

    public static final void Q(Spannable spannable, long j2, InterfaceC2281qr interfaceC2281qr, int i2, int i3) {
        long jB = C1020df0.b(j2);
        if (C1115ef0.a(jB, 4294967296L)) {
            spannable.setSpan(new AbsoluteSizeSpan(C2887xC.D(interfaceC2281qr.X(j2)), false), i2, i3, 33);
        } else if (C1115ef0.a(jB, 8589934592L)) {
            spannable.setSpan(new RelativeSizeSpan(C1020df0.c(j2)), i2, i3, 33);
        }
    }

    public static final void R(Spannable spannable, C2138pM c2138pM, int i2, int i3) {
        if (c2138pM != null) {
            ArrayList arrayList = new ArrayList(AbstractC0034Bi.W(c2138pM, 10));
            Iterator it = c2138pM.l.iterator();
            while (it.hasNext()) {
                arrayList.add(((C2043oM) it.next()).a);
            }
            Locale[] localeArr = (Locale[]) arrayList.toArray(new Locale[0]);
            spannable.setSpan(new LocaleSpan(new LocaleList((Locale[]) Arrays.copyOf(localeArr, localeArr.length))), i2, i3, 33);
        }
    }

    public static final long S(float f2, long j2) {
        float fMax = Math.max(0.0f, Float.intBitsToFloat((int) (j2 >> 32)) - f2);
        float fMax2 = Math.max(0.0f, Float.intBitsToFloat((int) (j2 & 4294967295L)) - f2);
        return (Float.floatToRawIntBits(fMax) << 32) | (Float.floatToRawIntBits(fMax2) & 4294967295L);
    }

    public static final int T(int i2) {
        int iW = AbstractC2462sn.w(i2);
        if (iW == 0) {
            return 0;
        }
        int i3 = 1;
        if (iW != 1) {
            i3 = 2;
            if (iW != 2) {
                i3 = 3;
                if (iW != 3) {
                    i3 = 4;
                    if (iW != 4) {
                        if (iW == 5) {
                            return 5;
                        }
                        throw new C2170pj();
                    }
                }
            }
        }
        return i3;
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Type inference failed for: r12v0, types: [o.OC] */
    /* JADX WARN: Type inference failed for: r1v10, types: [o.LP] */
    /* JADX WARN: Type inference failed for: r1v14 */
    /* JADX WARN: Type inference failed for: r1v15, types: [o.LP] */
    /* JADX WARN: Type inference failed for: r1v16, types: [java.lang.Object] */
    /* JADX WARN: Type inference failed for: r1v17 */
    /* JADX WARN: Type inference failed for: r1v18 */
    /* JADX WARN: Type inference failed for: r1v19 */
    /* JADX WARN: Type inference failed for: r1v20 */
    /* JADX WARN: Type inference failed for: r1v21 */
    /* JADX WARN: Type inference failed for: r1v22 */
    /* JADX WARN: Type inference failed for: r1v9 */
    /* JADX WARN: Type inference failed for: r4v0 */
    /* JADX WARN: Type inference failed for: r4v1 */
    /* JADX WARN: Type inference failed for: r4v10 */
    /* JADX WARN: Type inference failed for: r4v11 */
    /* JADX WARN: Type inference failed for: r4v2 */
    /* JADX WARN: Type inference failed for: r4v3, types: [o.iR] */
    /* JADX WARN: Type inference failed for: r4v4 */
    /* JADX WARN: Type inference failed for: r4v5 */
    /* JADX WARN: Type inference failed for: r4v6, types: [o.iR] */
    /* JADX WARN: Type inference failed for: r4v8 */
    /* JADX WARN: Type inference failed for: r4v9 */
    public static final void U(InterfaceC0535Uq interfaceC0535Uq, Object obj, OC oc) {
        C0312Mb c0312Mb;
        LP lp = (LP) interfaceC0535Uq;
        if (!lp.l.y) {
            AbstractC2133pH.b("visitAncestors called on an unattached node");
        }
        LP lp2 = lp.l.p;
        C2420sK c2420sKS = AbstractC2539te.S(interfaceC0535Uq);
        while (c2420sKS != null) {
            if ((((LP) c2420sKS.N.g).f209o & 262144) != 0) {
                while (lp2 != null) {
                    if ((lp2.n & 262144) != 0) {
                        AbstractC0561Vq abstractC0561VqI = lp2;
                        ?? c1479iR = 0;
                        while (abstractC0561VqI != 0) {
                            if (abstractC0561VqI instanceof Xg0) {
                                Xg0 xg0 = (Xg0) abstractC0561VqI;
                                if (!(obj.equals(xg0.s()) ? ((Boolean) oc.g(xg0)).booleanValue() : true)) {
                                    return;
                                }
                            } else {
                                if (((abstractC0561VqI.n & 262144) != 0) && (abstractC0561VqI instanceof AbstractC0561Vq)) {
                                    LP lp3 = abstractC0561VqI.A;
                                    int i2 = 0;
                                    abstractC0561VqI = abstractC0561VqI;
                                    c1479iR = c1479iR;
                                    while (lp3 != null) {
                                        if ((lp3.n & 262144) != 0) {
                                            i2++;
                                            c1479iR = c1479iR;
                                            if (i2 == 1) {
                                                abstractC0561VqI = lp3;
                                            } else {
                                                if (c1479iR == 0) {
                                                    c1479iR = new C1479iR(new LP[16]);
                                                }
                                                if (abstractC0561VqI != 0) {
                                                    c1479iR.b(abstractC0561VqI);
                                                    abstractC0561VqI = 0;
                                                }
                                                c1479iR.b(lp3);
                                            }
                                        }
                                        lp3 = lp3.q;
                                        abstractC0561VqI = abstractC0561VqI;
                                        c1479iR = c1479iR;
                                    }
                                    if (i2 == 1) {
                                    }
                                }
                            }
                            abstractC0561VqI = AbstractC2539te.i(c1479iR);
                        }
                    }
                    lp2 = lp2.p;
                }
            }
            c2420sKS = c2420sKS.s();
            lp2 = (c2420sKS == null || (c0312Mb = c2420sKS.N) == null) ? null : (Bc0) c0312Mb.f;
        }
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Type inference failed for: r11v0, types: [java.lang.Object, o.Uq, o.Xg0] */
    /* JADX WARN: Type inference failed for: r12v0, types: [o.OC] */
    /* JADX WARN: Type inference failed for: r2v12 */
    /* JADX WARN: Type inference failed for: r2v13, types: [o.LP] */
    /* JADX WARN: Type inference failed for: r2v14, types: [java.lang.Object] */
    /* JADX WARN: Type inference failed for: r2v15 */
    /* JADX WARN: Type inference failed for: r2v16 */
    /* JADX WARN: Type inference failed for: r2v17 */
    /* JADX WARN: Type inference failed for: r2v18 */
    /* JADX WARN: Type inference failed for: r2v19 */
    /* JADX WARN: Type inference failed for: r2v20 */
    /* JADX WARN: Type inference failed for: r2v7 */
    /* JADX WARN: Type inference failed for: r2v8, types: [o.LP] */
    /* JADX WARN: Type inference failed for: r5v0 */
    /* JADX WARN: Type inference failed for: r5v1 */
    /* JADX WARN: Type inference failed for: r5v10 */
    /* JADX WARN: Type inference failed for: r5v11 */
    /* JADX WARN: Type inference failed for: r5v2 */
    /* JADX WARN: Type inference failed for: r5v3, types: [o.iR] */
    /* JADX WARN: Type inference failed for: r5v4 */
    /* JADX WARN: Type inference failed for: r5v5 */
    /* JADX WARN: Type inference failed for: r5v6, types: [o.iR] */
    /* JADX WARN: Type inference failed for: r5v8 */
    /* JADX WARN: Type inference failed for: r5v9 */
    public static final void V(Xg0 xg0, OC oc) {
        C0312Mb c0312Mb;
        LP lp = (LP) xg0;
        if (!lp.l.y) {
            AbstractC2133pH.b("visitAncestors called on an unattached node");
        }
        LP lp2 = lp.l.p;
        C2420sK c2420sKS = AbstractC2539te.S(xg0);
        while (c2420sKS != null) {
            if ((((LP) c2420sKS.N.g).f209o & 262144) != 0) {
                while (lp2 != null) {
                    if ((lp2.n & 262144) != 0) {
                        AbstractC0561Vq abstractC0561VqI = lp2;
                        ?? c1479iR = 0;
                        while (abstractC0561VqI != 0) {
                            boolean zBooleanValue = true;
                            if (abstractC0561VqI instanceof Xg0) {
                                Xg0 xg02 = (Xg0) abstractC0561VqI;
                                if (F3.c(xg0.s(), xg02.s()) && xg0.getClass() == xg02.getClass()) {
                                    zBooleanValue = ((Boolean) oc.g(xg02)).booleanValue();
                                }
                                if (!zBooleanValue) {
                                    return;
                                }
                            } else {
                                if (((abstractC0561VqI.n & 262144) != 0) && (abstractC0561VqI instanceof AbstractC0561Vq)) {
                                    LP lp3 = abstractC0561VqI.A;
                                    int i2 = 0;
                                    abstractC0561VqI = abstractC0561VqI;
                                    c1479iR = c1479iR;
                                    while (lp3 != null) {
                                        if ((lp3.n & 262144) != 0) {
                                            i2++;
                                            c1479iR = c1479iR;
                                            if (i2 == 1) {
                                                abstractC0561VqI = lp3;
                                            } else {
                                                if (c1479iR == 0) {
                                                    c1479iR = new C1479iR(new LP[16]);
                                                }
                                                if (abstractC0561VqI != 0) {
                                                    c1479iR.b(abstractC0561VqI);
                                                    abstractC0561VqI = 0;
                                                }
                                                c1479iR.b(lp3);
                                            }
                                        }
                                        lp3 = lp3.q;
                                        abstractC0561VqI = abstractC0561VqI;
                                        c1479iR = c1479iR;
                                    }
                                    if (i2 == 1) {
                                    }
                                }
                            }
                            abstractC0561VqI = AbstractC2539te.i(c1479iR);
                        }
                    }
                    lp2 = lp2.p;
                }
            }
            c2420sKS = c2420sKS.s();
            lp2 = (c2420sKS == null || (c0312Mb = c2420sKS.N) == null) ? null : (Bc0) c0312Mb.f;
        }
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Type inference failed for: r12v0, types: [java.lang.Object, o.Xg0] */
    /* JADX WARN: Type inference failed for: r13v0, types: [o.OC] */
    /* JADX WARN: Type inference failed for: r6v0 */
    /* JADX WARN: Type inference failed for: r6v1, types: [o.LP] */
    /* JADX WARN: Type inference failed for: r6v10 */
    /* JADX WARN: Type inference failed for: r6v11 */
    /* JADX WARN: Type inference failed for: r6v12 */
    /* JADX WARN: Type inference failed for: r6v13 */
    /* JADX WARN: Type inference failed for: r6v14 */
    /* JADX WARN: Type inference failed for: r6v15 */
    /* JADX WARN: Type inference failed for: r6v7 */
    /* JADX WARN: Type inference failed for: r6v8, types: [o.LP] */
    /* JADX WARN: Type inference failed for: r6v9, types: [java.lang.Object] */
    /* JADX WARN: Type inference failed for: r7v0 */
    /* JADX WARN: Type inference failed for: r7v1 */
    /* JADX WARN: Type inference failed for: r7v10 */
    /* JADX WARN: Type inference failed for: r7v11 */
    /* JADX WARN: Type inference failed for: r7v2 */
    /* JADX WARN: Type inference failed for: r7v3, types: [o.iR] */
    /* JADX WARN: Type inference failed for: r7v4 */
    /* JADX WARN: Type inference failed for: r7v5 */
    /* JADX WARN: Type inference failed for: r7v6, types: [o.iR] */
    /* JADX WARN: Type inference failed for: r7v8 */
    /* JADX WARN: Type inference failed for: r7v9 */
    public static final void W(Xg0 xg0, OC oc) {
        LP lp = (LP) xg0;
        if (!lp.l.y) {
            AbstractC2133pH.b("visitSubtreeIf called on an unattached node");
        }
        C1479iR c1479iR = new C1479iR(new LP[16]);
        LP lp2 = lp.l;
        LP lp3 = lp2.q;
        if (lp3 == null) {
            AbstractC2539te.g(c1479iR, lp2);
        } else {
            c1479iR.b(lp3);
        }
        while (true) {
            int i2 = c1479iR.n;
            if (i2 == 0) {
                return;
            }
            LP lp4 = (LP) c1479iR.k(i2 - 1);
            if ((lp4.f209o & 262144) != 0) {
                for (LP lp5 = lp4; lp5 != null; lp5 = lp5.q) {
                    if ((lp5.n & 262144) != 0) {
                        AbstractC0561Vq abstractC0561VqI = lp5;
                        ?? c1479iR2 = 0;
                        while (abstractC0561VqI != 0) {
                            if (abstractC0561VqI instanceof Xg0) {
                                Xg0 xg02 = (Xg0) abstractC0561VqI;
                                Wg0 wg0 = (F3.c(xg0.s(), xg02.s()) && xg0.getClass() == xg02.getClass()) ? (Wg0) oc.g(xg02) : Wg0.l;
                                if (wg0 == Wg0.n) {
                                    return;
                                }
                                if (wg0 == Wg0.m) {
                                    break;
                                }
                            } else if ((abstractC0561VqI.n & 262144) != 0 && (abstractC0561VqI instanceof AbstractC0561Vq)) {
                                LP lp6 = abstractC0561VqI.A;
                                int i3 = 0;
                                abstractC0561VqI = abstractC0561VqI;
                                c1479iR2 = c1479iR2;
                                while (lp6 != null) {
                                    if ((lp6.n & 262144) != 0) {
                                        i3++;
                                        c1479iR2 = c1479iR2;
                                        if (i3 == 1) {
                                            abstractC0561VqI = lp6;
                                        } else {
                                            if (c1479iR2 == 0) {
                                                c1479iR2 = new C1479iR(new LP[16]);
                                            }
                                            if (abstractC0561VqI != 0) {
                                                c1479iR2.b(abstractC0561VqI);
                                                abstractC0561VqI = 0;
                                            }
                                            c1479iR2.b(lp6);
                                        }
                                    }
                                    lp6 = lp6.q;
                                    abstractC0561VqI = abstractC0561VqI;
                                    c1479iR2 = c1479iR2;
                                }
                                if (i3 == 1) {
                                }
                            }
                            abstractC0561VqI = AbstractC2539te.i(c1479iR2);
                        }
                    }
                }
            }
            AbstractC2539te.g(c1479iR, lp4);
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:30:0x0060  */
    /* JADX WARN: Removed duplicated region for block: B:32:0x0065  */
    /* JADX WARN: Removed duplicated region for block: B:41:0x0081  */
    /* JADX WARN: Removed duplicated region for block: B:42:0x0083  */
    /* JADX WARN: Removed duplicated region for block: B:45:0x008c  */
    /* JADX WARN: Removed duplicated region for block: B:68:0x012d  */
    /* JADX WARN: Removed duplicated region for block: B:71:0x0139  */
    /* JADX WARN: Removed duplicated region for block: B:73:? A[RETURN, SYNTHETIC] */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final void a(o.MP r17, final o.L70 r18, final o.C0058Cg r19, o.C0084Dg r20, o.C1875me r21, final o.C0554Vj r22, o.C0321Mk r23, final int r24, final int r25) {
        /*
            Method dump skipped, instructions count: 329
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.YT.a(o.MP, o.L70, o.Cg, o.Dg, o.me, o.Vj, o.Mk, int, int):void");
    }

    public static final void b(final int i2, C0321Mk c0321Mk, final int i3) {
        C0321Mk c0321Mk2;
        c0321Mk.X(-743897674);
        if ((((c0321Mk.d(i2) ? 4 : 2) | i3) & 3) == 2 && c0321Mk.z()) {
            c0321Mk.Q();
            c0321Mk2 = c0321Mk;
        } else {
            C1373hH c1373hHI = AbstractC2841wm0.i(AbstractC2841wm0.B("connecting_pulse", c0321Mk, 0), 0.9f, 1.1f, IJ.w(IJ.K(800, 2, AbstractC0590Wt.a), 4), "connecting_scale", c0321Mk, 29112, 0);
            MP mpB = androidx.compose.foundation.a.b(androidx.compose.foundation.layout.c.b, C0190Hi.b(0.75f, C0190Hi.b), AbstractC2841wm0.j);
            InterfaceC2235qO interfaceC2235qOD = AbstractC3109ze.d(C0669Zu.q, false);
            int iHashCode = Long.hashCode(c0321Mk.R);
            AW awL = c0321Mk.l();
            MP mpF = AbstractC1692kh0.F(c0321Mk, mpB);
            InterfaceC0062Ck.b.getClass();
            C0744al c0744al = C0036Bk.b;
            c0321Mk.Y();
            if (c0321Mk.Q) {
                c0321Mk.k(c0744al);
            } else {
                c0321Mk.i0();
            }
            AbstractC2378rs0.f0(interfaceC2235qOD, c0321Mk, C0036Bk.f);
            AbstractC2378rs0.f0(awL, c0321Mk, C0036Bk.e);
            C0975d6 c0975d6 = C0036Bk.i;
            if (c0321Mk.Q || !F3.c(c0321Mk.K(), Integer.valueOf(iHashCode))) {
                AbstractC2462sn.r(iHashCode, c0321Mk, iHashCode, c0975d6);
            }
            AbstractC2378rs0.f0(mpF, c0321Mk, C0036Bk.c);
            a(null, AbstractC2397s30.a(18), C2887xC.i(AbstractC0752ap.c(4279244832L), c0321Mk, 6), C2887xC.j(62, 10), null, C2887xC.y(-500507986, new C1812lu(i2, c1373hHI, 3), c0321Mk), c0321Mk, 196608, 17);
            c0321Mk2 = c0321Mk;
            c0321Mk2.q(true);
        }
        L00 l00S = c0321Mk2.s();
        if (l00S != null) {
            l00S.d = new SC(i2, i3) { // from class: o.rW
                public final /* synthetic */ int l;

                @Override // o.SC
                public final Object f(Object obj, Object obj2) {
                    ((Integer) obj2).getClass();
                    int iD = AbstractC1904ms0.D(1);
                    YT.b(this.l, (C0321Mk) obj, iD);
                    return Oh0.a;
                }
            };
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:33:0x005e  */
    /* JADX WARN: Removed duplicated region for block: B:35:0x0062  */
    /* JADX WARN: Removed duplicated region for block: B:44:0x0081  */
    /* JADX WARN: Removed duplicated region for block: B:45:0x0083  */
    /* JADX WARN: Removed duplicated region for block: B:48:0x008c  */
    /* JADX WARN: Removed duplicated region for block: B:80:0x013d  */
    /* JADX WARN: Removed duplicated region for block: B:83:0x014b  */
    /* JADX WARN: Removed duplicated region for block: B:85:? A[RETURN, SYNTHETIC] */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final void c(final o.AbstractC2811wV r16, final java.lang.String r17, final o.MP r18, o.InterfaceC2584u2 r19, o.InterfaceC2555tm r20, float r21, o.C0321Mk r22, final int r23, final int r24) {
        /*
            Method dump skipped, instructions count: 343
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.YT.c(o.wV, java.lang.String, o.MP, o.u2, o.tm, float, o.Mk, int, int):void");
    }

    public static final void d(NC nc, C0321Mk c0321Mk, int i2) {
        C0321Mk c0321Mk2;
        c0321Mk.X(715807424);
        if ((((c0321Mk.d(30000) ? 4 : 2) | i2 | (c0321Mk.h(nc) ? 32 : 16)) & 19) == 18 && c0321Mk.z()) {
            c0321Mk.Q();
            c0321Mk2 = c0321Mk;
        } else {
            c0321Mk2 = c0321Mk;
            a(androidx.compose.foundation.layout.c.b(JP.a, 1.0f), AbstractC2397s30.a(16), C2887xC.i(C0190Hi.c, c0321Mk, 6), C2887xC.j(62, 6), null, C2887xC.y(-1751208398, new C2413sD(1, nc), c0321Mk), c0321Mk2, 196614, 16);
        }
        L00 l00S = c0321Mk2.s();
        if (l00S != null) {
            l00S.d = new C2432sW(i2, 0, nc);
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:100:0x0407  */
    /* JADX WARN: Removed duplicated region for block: B:104:0x0463  */
    /* JADX WARN: Removed duplicated region for block: B:53:0x01bc  */
    /* JADX WARN: Removed duplicated region for block: B:54:0x01c0  */
    /* JADX WARN: Removed duplicated region for block: B:59:0x01db  */
    /* JADX WARN: Removed duplicated region for block: B:62:0x0211  */
    /* JADX WARN: Removed duplicated region for block: B:63:0x0215  */
    /* JADX WARN: Removed duplicated region for block: B:68:0x0230  */
    /* JADX WARN: Removed duplicated region for block: B:72:0x0248  */
    /* JADX WARN: Removed duplicated region for block: B:75:0x02cb  */
    /* JADX WARN: Removed duplicated region for block: B:76:0x02cf  */
    /* JADX WARN: Removed duplicated region for block: B:81:0x02ea  */
    /* JADX WARN: Removed duplicated region for block: B:84:0x0357  */
    /* JADX WARN: Removed duplicated region for block: B:86:0x035d  */
    /* JADX WARN: Removed duplicated region for block: B:91:0x037b  */
    /* JADX WARN: Removed duplicated region for block: B:96:0x03e2  */
    /* JADX WARN: Removed duplicated region for block: B:97:0x03f1  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final void e(int r36, int r37, o.C0321Mk r38, o.NC r39) {
        /*
            Method dump skipped, instructions count: 1151
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.YT.e(int, int, o.Mk, o.NC):void");
    }

    public static final void f(InterfaceC1191fR interfaceC1191fR, boolean z) {
        interfaceC1191fR.setValue(Boolean.valueOf(z));
    }

    /* JADX WARN: Removed duplicated region for block: B:35:0x0063 A[LOOP:0: B:4:0x000d->B:35:0x0063, LOOP_END] */
    /* JADX WARN: Removed duplicated region for block: B:43:0x0066 A[EDGE_INSN: B:43:0x0066->B:36:0x0066 BREAK  A[LOOP:0: B:4:0x000d->B:35:0x0063], SYNTHETIC] */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final o.R50 g(o.C2420sK r8, boolean r9) {
        /*
            o.Mb r0 = r8.N
            java.lang.Object r0 = r0.g
            o.LP r0 = (o.LP) r0
            int r1 = r0.f209o
            r1 = r1 & 8
            r2 = 0
            if (r1 == 0) goto L66
        Ld:
            if (r0 == 0) goto L66
            int r1 = r0.n
            r1 = r1 & 8
            if (r1 == 0) goto L5d
            r1 = r0
            r3 = r2
        L17:
            if (r1 == 0) goto L5d
            boolean r4 = r1 instanceof o.P50
            if (r4 == 0) goto L1f
            r2 = r1
            goto L66
        L1f:
            int r4 = r1.n
            r4 = r4 & 8
            if (r4 == 0) goto L58
            boolean r4 = r1 instanceof o.AbstractC0561Vq
            if (r4 == 0) goto L58
            r4 = r1
            o.Vq r4 = (o.AbstractC0561Vq) r4
            o.LP r4 = r4.A
            r5 = 0
        L2f:
            r6 = 1
            if (r4 == 0) goto L55
            int r7 = r4.n
            r7 = r7 & 8
            if (r7 == 0) goto L52
            int r5 = r5 + 1
            if (r5 != r6) goto L3e
            r1 = r4
            goto L52
        L3e:
            if (r3 != 0) goto L49
            o.iR r3 = new o.iR
            r6 = 16
            o.LP[] r6 = new o.LP[r6]
            r3.<init>(r6)
        L49:
            if (r1 == 0) goto L4f
            r3.b(r1)
            r1 = r2
        L4f:
            r3.b(r4)
        L52:
            o.LP r4 = r4.q
            goto L2f
        L55:
            if (r5 != r6) goto L58
            goto L17
        L58:
            o.LP r1 = o.AbstractC2539te.i(r3)
            goto L17
        L5d:
            int r1 = r0.f209o
            r1 = r1 & 8
            if (r1 == 0) goto L66
            o.LP r0 = r0.q
            goto Ld
        L66:
            o.P50 r2 = (o.P50) r2
            o.LP r2 = (o.LP) r2
            o.LP r0 = r2.l
            o.N50 r1 = r8.u()
            if (r1 != 0) goto L77
            o.N50 r1 = new o.N50
            r1.<init>()
        L77:
            o.R50 r2 = new o.R50
            r2.<init>(r0, r9, r8, r1)
            return r2
        */
        throw new UnsupportedOperationException("Method not decompiled: o.YT.g(o.sK, boolean):o.R50");
    }

    /*  JADX ERROR: JadxOverflowException in pass: RegionMakerVisitor
        jadx.core.utils.exceptions.JadxOverflowException: Regions count limit reached
        	at jadx.core.utils.ErrorsCounter.addError(ErrorsCounter.java:59)
        	at jadx.core.utils.ErrorsCounter.error(ErrorsCounter.java:31)
        	at jadx.core.dex.attributes.nodes.NotificationAttrNode.addError(NotificationAttrNode.java:19)
        */
    /* JADX WARN: Removed duplicated region for block: B:17:0x0040 A[RETURN] */
    /* JADX WARN: Removed duplicated region for block: B:20:0x004b  */
    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /* JADX WARN: Type inference failed for: r8v6, types: [java.lang.Object, java.util.Collection, java.util.List] */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:16:0x003e -> B:18:0x0041). Please report as a decompilation issue!!! */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final java.lang.Object h(o.Vb0 r7, o.AbstractC0728ad r8) {
        /*
            boolean r0 = r8 instanceof o.S20
            if (r0 == 0) goto L13
            r0 = r8
            o.S20 r0 = (o.S20) r0
            int r1 = r0.q
            r2 = -2147483648(0xffffffff80000000, float:-0.0)
            r3 = r1 & r2
            if (r3 == 0) goto L13
            int r1 = r1 - r2
            r0.q = r1
            goto L18
        L13:
            o.S20 r0 = new o.S20
            r0.<init>(r8)
        L18:
            java.lang.Object r8 = r0.p
            int r1 = r0.q
            r2 = 1
            if (r1 == 0) goto L2f
            if (r1 != r2) goto L27
            o.Vb0 r7 = r0.f322o
            o.IJ.H(r8)
            goto L41
        L27:
            java.lang.IllegalStateException r7 = new java.lang.IllegalStateException
            java.lang.String r8 = "call to 'resume' before 'invoke' with coroutine"
            r7.<init>(r8)
            throw r7
        L2f:
            o.IJ.H(r8)
        L32:
            r0.f322o = r7
            r0.q = r2
            o.DX r8 = o.DX.m
            java.lang.Object r8 = r7.a(r8, r0)
            o.Dn r1 = o.EnumC0091Dn.l
            if (r8 != r1) goto L41
            return r1
        L41:
            o.CX r8 = (o.CX) r8
            int r1 = r8.d
            java.lang.Object r8 = r8.a
            r1 = r1 & 66
            if (r1 == 0) goto L32
            int r1 = r8.size()
            r3 = 0
            r4 = r3
        L51:
            if (r4 >= r1) goto L6a
            java.lang.Object r5 = r8.get(r4)
            o.IX r5 = (o.IX) r5
            boolean r6 = r5.b()
            if (r6 != 0) goto L32
            boolean r6 = r5.h
            if (r6 != 0) goto L32
            boolean r5 = r5.d
            if (r5 == 0) goto L32
            int r4 = r4 + 1
            goto L51
        L6a:
            java.lang.Object r7 = r8.get(r3)
            return r7
        */
        throw new UnsupportedOperationException("Method not decompiled: o.YT.h(o.Vb0, o.ad):java.lang.Object");
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final java.lang.Object i(o.InterfaceC0817bZ r4, o.NC r5, o.AbstractC0298Lm r6) {
        /*
            boolean r0 = r6 instanceof o.YY
            if (r0 == 0) goto L13
            r0 = r6
            o.YY r0 = (o.YY) r0
            int r1 = r0.q
            r2 = -2147483648(0xffffffff80000000, float:-0.0)
            r3 = r1 & r2
            if (r3 == 0) goto L13
            int r1 = r1 - r2
            r0.q = r1
            goto L18
        L13:
            o.YY r0 = new o.YY
            r0.<init>(r6)
        L18:
            java.lang.Object r6 = r0.p
            int r1 = r0.q
            r2 = 1
            if (r1 == 0) goto L34
            if (r1 != r2) goto L2c
            o.aK r4 = r0.f424o
            r5 = r4
            o.NC r5 = (o.NC) r5
            o.IJ.H(r6)     // Catch: java.lang.Throwable -> L2a
            goto L68
        L2a:
            r4 = move-exception
            goto L6e
        L2c:
            java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
            java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
            r4.<init>(r5)
            throw r4
        L34:
            o.IJ.H(r6)
            o.vn r6 = r0.m
            o.Zu r1 = o.C0669Zu.K
            o.tn r6 = r6.m(r1)
            if (r6 != r4) goto L72
            r6 = r5
            o.aK r6 = (o.AbstractC0706aK) r6     // Catch: java.lang.Throwable -> L2a
            r0.f424o = r6     // Catch: java.lang.Throwable -> L2a
            r0.q = r2     // Catch: java.lang.Throwable -> L2a
            o.sg r6 = new o.sg     // Catch: java.lang.Throwable -> L2a
            o.Im r0 = o.AbstractC2539te.G(r0)     // Catch: java.lang.Throwable -> L2a
            r6.<init>(r2, r0)     // Catch: java.lang.Throwable -> L2a
            r6.r()     // Catch: java.lang.Throwable -> L2a
            o.in r0 = new o.in     // Catch: java.lang.Throwable -> L2a
            r1 = 1
            r0.<init>(r1, r6)     // Catch: java.lang.Throwable -> L2a
            o.aZ r4 = (o.C0721aZ) r4     // Catch: java.lang.Throwable -> L2a
            r4.n0(r0)     // Catch: java.lang.Throwable -> L2a
            java.lang.Object r4 = r6.q()     // Catch: java.lang.Throwable -> L2a
            o.Dn r6 = o.EnumC0091Dn.l
            if (r4 != r6) goto L68
            return r6
        L68:
            r5.a()
            o.Oh0 r4 = o.Oh0.a
            return r4
        L6e:
            r5.a()
            throw r4
        L72:
            java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
            java.lang.String r5 = "awaitClose() can only be invoked from the producer context"
            r4.<init>(r5)
            throw r4
        */
        throw new UnsupportedOperationException("Method not decompiled: o.YT.i(o.bZ, o.NC, o.Lm):java.lang.Object");
    }

    public static final MP j(MP mp, float f2, long j2, C2302r30 c2302r30) {
        return mp.g(new BorderModifierNodeElement(f2, new Q90(j2), c2302r30));
    }

    public static final LinkedHashSet k(byte[] bArr) throws IOException {
        ObjectInputStream objectInputStream;
        LinkedHashSet linkedHashSet = new LinkedHashSet();
        if (bArr.length == 0) {
            return linkedHashSet;
        }
        ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(bArr);
        try {
            try {
                objectInputStream = new ObjectInputStream(byteArrayInputStream);
            } catch (IOException e2) {
                e2.printStackTrace();
            }
            try {
                int i2 = objectInputStream.readInt();
                for (int i3 = 0; i3 < i2; i3++) {
                    linkedHashSet.add(new C0582Wl(objectInputStream.readBoolean(), Uri.parse(objectInputStream.readUTF())));
                }
                objectInputStream.close();
                byteArrayInputStream.close();
                return linkedHashSet;
            } finally {
            }
        } finally {
        }
    }

    public static void l(Context context, AttributeSet attributeSet, int i2, int i3) {
        TypedArray typedArrayObtainStyledAttributes = context.obtainStyledAttributes(attributeSet, XZ.B, i2, i3);
        boolean z = typedArrayObtainStyledAttributes.getBoolean(1, false);
        typedArrayObtainStyledAttributes.recycle();
        if (z) {
            TypedValue typedValue = new TypedValue();
            if (!context.getTheme().resolveAttribute(R.attr.isMaterialTheme, typedValue, true) || (typedValue.type == 18 && typedValue.data == 0)) {
                o(context, h, "Theme.MaterialComponents");
            }
        }
        o(context, g, "Theme.AppCompat");
    }

    public static final void m(WorkDatabase workDatabase, C1414hl c1414hl, C1797lm0 c1797lm0) {
        int i2;
        ArrayList arrayListT = AbstractC0008Ai.T(c1797lm0);
        int i3 = 0;
        while (!arrayListT.isEmpty()) {
            List list = ((C1797lm0) AbstractC0138Fi.Z(arrayListT)).y;
            if (list.isEmpty()) {
                i2 = 0;
            } else {
                Iterator it = list.iterator();
                i2 = 0;
                while (it.hasNext()) {
                    if (((VT) it.next()).b.j.a() && (i2 = i2 + 1) < 0) {
                        throw new ArithmeticException("Count overflow has happened.");
                    }
                }
            }
            i3 += i2;
        }
        if (i3 == 0) {
            return;
        }
        Em0 em0S = workDatabase.s();
        em0S.getClass();
        C1449i30 c1449i30D = C1449i30.d(0, "Select COUNT(*) FROM workspec WHERE LENGTH(content_uri_triggers)<>0 AND state NOT IN (2, 3, 5)");
        WorkDatabase_Impl workDatabase_Impl = em0S.a;
        workDatabase_Impl.b();
        Cursor cursorL = workDatabase_Impl.l(c1449i30D);
        try {
            int i4 = cursorL.moveToFirst() ? cursorL.getInt(0) : 0;
            cursorL.close();
            c1449i30D.release();
            int i5 = c1414hl.b;
            if (i4 + i3 <= i5) {
                return;
            }
            throw new IllegalArgumentException("Too many workers with contentUriTriggers are enqueued:\ncontentUriTrigger workers limit: " + i5 + ";\nalready enqueued count: " + i4 + ";\ncurrent enqueue operation count: " + i3 + ".\nTo address this issue you can: \n1. enqueue less workers or batch some of workers with content uri triggers together;\n2. increase limit via Configuration.Builder.setContentUriTriggerWorkersLimit;\nPlease beware that workers with content uri triggers immediately occupy slots in JobScheduler so no updates to content uris are missed.");
        } catch (Throwable th) {
            cursorL.close();
            c1449i30D.release();
            throw th;
        }
    }

    public static void n(Context context, AttributeSet attributeSet, int[] iArr, int i2, int i3, int... iArr2) {
        TypedArray typedArrayObtainStyledAttributes = context.obtainStyledAttributes(attributeSet, XZ.B, i2, i3);
        boolean z = false;
        if (!typedArrayObtainStyledAttributes.getBoolean(2, false)) {
            typedArrayObtainStyledAttributes.recycle();
            return;
        }
        if (iArr2.length != 0) {
            TypedArray typedArrayObtainStyledAttributes2 = context.obtainStyledAttributes(attributeSet, iArr, i2, i3);
            for (int i4 : iArr2) {
                if (typedArrayObtainStyledAttributes2.getResourceId(i4, -1) == -1) {
                    typedArrayObtainStyledAttributes2.recycle();
                    break;
                }
            }
            typedArrayObtainStyledAttributes2.recycle();
            z = true;
        } else if (typedArrayObtainStyledAttributes.getResourceId(0, -1) != -1) {
            z = true;
        }
        typedArrayObtainStyledAttributes.recycle();
        if (!z) {
            throw new IllegalArgumentException("This component requires that you specify a valid TextAppearance attribute. Update your app theme to inherit from Theme.MaterialComponents (or a descendant).");
        }
    }

    public static void o(Context context, int[] iArr, String str) {
        TypedArray typedArrayObtainStyledAttributes = context.obtainStyledAttributes(iArr);
        for (int i2 = 0; i2 < iArr.length; i2++) {
            if (!typedArrayObtainStyledAttributes.hasValue(i2)) {
                typedArrayObtainStyledAttributes.recycle();
                throw new IllegalArgumentException(AbstractC2462sn.j("The style on this component requires your app theme to be ", str, " (or a descendant)."));
            }
        }
        typedArrayObtainStyledAttributes.recycle();
    }

    public static final int r(long j2, long j3) {
        boolean zG = G(j2);
        if (zG != G(j3)) {
            return zG ? -1 : 1;
        }
        return (Math.min(w(j2), w(j3)) >= 0.0f && F(j2) != F(j3)) ? F(j2) ? -1 : 1 : (int) Math.signum(w(j2) - w(j3));
    }

    public static final Y6 s(Y6 y6) {
        Y6 y6C = y6.c();
        int iB = y6C.b();
        for (int i2 = 0; i2 < iB; i2++) {
            y6C.e(i2, y6.a(i2));
        }
        return y6C;
    }

    public static boolean t(View view, KeyEvent keyEvent) {
        ArrayList arrayList;
        int size;
        int iIndexOfKey;
        WeakHashMap weakHashMap = Oj0.a;
        if (Build.VERSION.SDK_INT >= 28) {
            return false;
        }
        ArrayList arrayList2 = Nj0.d;
        Nj0 nj0 = (Nj0) view.getTag(R.id.tag_unhandled_key_event_manager);
        WeakReference weakReference = null;
        if (nj0 == null) {
            nj0 = new Nj0();
            nj0.a = null;
            nj0.b = null;
            nj0.c = null;
            view.setTag(R.id.tag_unhandled_key_event_manager, nj0);
        }
        WeakReference weakReference2 = nj0.c;
        if (weakReference2 != null && weakReference2.get() == keyEvent) {
            return false;
        }
        nj0.c = new WeakReference(keyEvent);
        if (nj0.b == null) {
            nj0.b = new SparseArray();
        }
        SparseArray sparseArray = nj0.b;
        if (keyEvent.getAction() == 1 && (iIndexOfKey = sparseArray.indexOfKey(keyEvent.getKeyCode())) >= 0) {
            weakReference = (WeakReference) sparseArray.valueAt(iIndexOfKey);
            sparseArray.removeAt(iIndexOfKey);
        }
        if (weakReference == null) {
            weakReference = (WeakReference) sparseArray.get(keyEvent.getKeyCode());
        }
        if (weakReference == null) {
            return false;
        }
        View view2 = (View) weakReference.get();
        if (view2 == null || !view2.isAttachedToWindow() || (arrayList = (ArrayList) view2.getTag(R.id.tag_unhandled_key_listeners)) == null || (size = arrayList.size() - 1) < 0) {
            return true;
        }
        arrayList.get(size).getClass();
        throw new ClassCastException();
    }

    public static boolean u(HJ hj, View view, Window.Callback callback, KeyEvent keyEvent) throws IllegalAccessException, NoSuchFieldException, SecurityException, IllegalArgumentException, InvocationTargetException {
        DialogInterface.OnKeyListener onKeyListener;
        boolean zBooleanValue = false;
        if (hj != null) {
            if (Build.VERSION.SDK_INT >= 28) {
                return hj.superDispatchKeyEvent(keyEvent);
            }
            if (callback instanceof Activity) {
                Activity activity = (Activity) callback;
                activity.onUserInteraction();
                Window window = activity.getWindow();
                if (window.hasFeature(8)) {
                    ActionBar actionBar = activity.getActionBar();
                    if (keyEvent.getKeyCode() == 82 && actionBar != null) {
                        if (!i) {
                            try {
                                j = actionBar.getClass().getMethod("onMenuKeyEvent", KeyEvent.class);
                            } catch (NoSuchMethodException unused) {
                            }
                            i = true;
                        }
                        Method method = j;
                        if (method != null) {
                            try {
                                Object objInvoke = method.invoke(actionBar, keyEvent);
                                if (objInvoke != null) {
                                    zBooleanValue = ((Boolean) objInvoke).booleanValue();
                                }
                            } catch (IllegalAccessException | InvocationTargetException unused2) {
                            }
                        }
                        if (zBooleanValue) {
                            return true;
                        }
                    }
                }
                if (window.superDispatchKeyEvent(keyEvent)) {
                    return true;
                }
                View decorView = window.getDecorView();
                if (Oj0.c(decorView, keyEvent)) {
                    return true;
                }
                return keyEvent.dispatch(activity, decorView != null ? decorView.getKeyDispatcherState() : null, activity);
            }
            if (callback instanceof Dialog) {
                Dialog dialog = (Dialog) callback;
                if (!k) {
                    try {
                        Field declaredField = Dialog.class.getDeclaredField("mOnKeyListener");
                        l = declaredField;
                        declaredField.setAccessible(true);
                    } catch (NoSuchFieldException unused3) {
                    }
                    k = true;
                }
                Field field = l;
                if (field != null) {
                    try {
                        onKeyListener = (DialogInterface.OnKeyListener) field.get(dialog);
                    } catch (IllegalAccessException unused4) {
                    }
                } else {
                    onKeyListener = null;
                }
                if (onKeyListener != null && onKeyListener.onKey(dialog, keyEvent.getKeyCode(), keyEvent)) {
                    return true;
                }
                Window window2 = dialog.getWindow();
                if (window2.superDispatchKeyEvent(keyEvent)) {
                    return true;
                }
                View decorView2 = window2.getDecorView();
                if (Oj0.c(decorView2, keyEvent)) {
                    return true;
                }
                return keyEvent.dispatch(dialog, decorView2 != null ? decorView2.getKeyDispatcherState() : null, dialog);
            }
            if ((view != null && Oj0.c(view, keyEvent)) || hj.superDispatchKeyEvent(keyEvent)) {
                return true;
            }
        }
        return false;
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Type inference failed for: r10v0, types: [java.lang.Object, o.Uq, o.Xg0] */
    /* JADX WARN: Type inference failed for: r3v10 */
    /* JADX WARN: Type inference failed for: r3v11, types: [o.LP] */
    /* JADX WARN: Type inference failed for: r3v12, types: [java.lang.Object] */
    /* JADX WARN: Type inference failed for: r3v13 */
    /* JADX WARN: Type inference failed for: r3v14 */
    /* JADX WARN: Type inference failed for: r3v15 */
    /* JADX WARN: Type inference failed for: r3v16 */
    /* JADX WARN: Type inference failed for: r3v17 */
    /* JADX WARN: Type inference failed for: r3v18 */
    /* JADX WARN: Type inference failed for: r3v7 */
    /* JADX WARN: Type inference failed for: r3v8, types: [o.LP] */
    /* JADX WARN: Type inference failed for: r5v0 */
    /* JADX WARN: Type inference failed for: r5v1 */
    /* JADX WARN: Type inference failed for: r5v10 */
    /* JADX WARN: Type inference failed for: r5v11 */
    /* JADX WARN: Type inference failed for: r5v2 */
    /* JADX WARN: Type inference failed for: r5v3, types: [o.iR] */
    /* JADX WARN: Type inference failed for: r5v4 */
    /* JADX WARN: Type inference failed for: r5v5 */
    /* JADX WARN: Type inference failed for: r5v6, types: [o.iR] */
    /* JADX WARN: Type inference failed for: r5v8 */
    /* JADX WARN: Type inference failed for: r5v9 */
    public static final Xg0 v(Xg0 xg0) {
        C0312Mb c0312Mb;
        LP lp = (LP) xg0;
        if (!lp.l.y) {
            AbstractC2133pH.b("visitAncestors called on an unattached node");
        }
        LP lp2 = lp.l.p;
        C2420sK c2420sKS = AbstractC2539te.S(xg0);
        while (c2420sKS != null) {
            if ((((LP) c2420sKS.N.g).f209o & 262144) != 0) {
                while (lp2 != null) {
                    if ((lp2.n & 262144) != 0) {
                        AbstractC0561Vq abstractC0561VqI = lp2;
                        ?? c1479iR = 0;
                        while (abstractC0561VqI != 0) {
                            if (abstractC0561VqI instanceof Xg0) {
                                Xg0 xg02 = (Xg0) abstractC0561VqI;
                                if (F3.c(xg0.s(), xg02.s()) && xg0.getClass() == xg02.getClass()) {
                                    return xg02;
                                }
                            } else if ((abstractC0561VqI.n & 262144) != 0 && (abstractC0561VqI instanceof AbstractC0561Vq)) {
                                LP lp3 = abstractC0561VqI.A;
                                int i2 = 0;
                                abstractC0561VqI = abstractC0561VqI;
                                c1479iR = c1479iR;
                                while (lp3 != null) {
                                    if ((lp3.n & 262144) != 0) {
                                        i2++;
                                        c1479iR = c1479iR;
                                        if (i2 == 1) {
                                            abstractC0561VqI = lp3;
                                        } else {
                                            if (c1479iR == 0) {
                                                c1479iR = new C1479iR(new LP[16]);
                                            }
                                            if (abstractC0561VqI != 0) {
                                                c1479iR.b(abstractC0561VqI);
                                                abstractC0561VqI = 0;
                                            }
                                            c1479iR.b(lp3);
                                        }
                                    }
                                    lp3 = lp3.q;
                                    abstractC0561VqI = abstractC0561VqI;
                                    c1479iR = c1479iR;
                                }
                                if (i2 == 1) {
                                }
                            }
                            abstractC0561VqI = AbstractC2539te.i(c1479iR);
                        }
                    }
                    lp2 = lp2.p;
                }
            }
            c2420sKS = c2420sKS.s();
            lp2 = (c2420sKS == null || (c0312Mb = c2420sKS.N) == null) ? null : (Bc0) c0312Mb.f;
        }
        return null;
    }

    public static final float w(long j2) {
        return Float.intBitsToFloat((int) (j2 >> 32));
    }

    public static void x(YL yl) {
        if (!yl.isDone()) {
            throw new IllegalStateException(Co0.I("Future was expected to be done: %s", yl));
        }
        boolean z = false;
        while (true) {
            try {
                yl.get();
                break;
            } catch (InterruptedException unused) {
                z = true;
            } catch (Throwable th) {
                if (z) {
                    Thread.currentThread().interrupt();
                }
                throw th;
            }
        }
        if (z) {
            Thread.currentThread().interrupt();
        }
    }

    public abstract void K(int i2);

    public abstract void L(View view, int i2, int i3);

    public abstract void M(View view, float f2, float f3);

    public abstract boolean X(View view, int i2);

    public abstract int p(View view, int i2);

    public abstract int q(View view, int i2);

    public int y(View view) {
        return 0;
    }

    public int z() {
        return 0;
    }

    public void J(View view, int i2) {
    }
}
