package o;

import java.util.List;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.jw, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C1626jw extends Sb0 implements SC {
    public final /* synthetic */ C2891xG A;
    public List p;
    public NU q;
    public int r;
    public int s;
    public int t;
    public /* synthetic */ Object u;
    public final /* synthetic */ C1721kw v;
    public final /* synthetic */ C1148ew w;
    public final /* synthetic */ NU x;
    public final /* synthetic */ List y;
    public final /* synthetic */ C0282Kw z;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C1626jw(C1721kw c1721kw, C1148ew c1148ew, NU nu, List list, C0282Kw c0282Kw, C2891xG c2891xG, InterfaceC0220Im interfaceC0220Im) {
        super(2, interfaceC0220Im);
        this.v = c1721kw;
        this.w = c1148ew;
        this.x = nu;
        this.y = list;
        this.z = c0282Kw;
        this.A = c2891xG;
    }

    @Override // o.SC
    public final Object f(Object obj, Object obj2) {
        return ((C1626jw) l((InterfaceC0065Cn) obj, (InterfaceC0220Im) obj2)).n(Oh0.a);
    }

    @Override // o.AbstractC0728ad
    public final InterfaceC0220Im l(Object obj, InterfaceC0220Im interfaceC0220Im) {
        C1626jw c1626jw = new C1626jw(this.v, this.w, this.x, this.y, this.z, this.A, interfaceC0220Im);
        c1626jw.u = obj;
        return c1626jw;
    }

    /* JADX WARN: Removed duplicated region for block: B:16:0x0056  */
    @Override // o.AbstractC0728ad
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final java.lang.Object n(java.lang.Object r10) {
        /*
            r9 = this;
            int r0 = r9.t
            o.Kw r1 = r9.z
            o.ew r2 = r9.w
            r3 = 1
            if (r0 == 0) goto L2d
            if (r0 != r3) goto L25
            int r0 = r9.s
            int r4 = r9.r
            o.NU r5 = r9.q
            java.util.List r6 = r9.p
            java.lang.Object r7 = r9.u
            o.Cn r7 = (o.InterfaceC0065Cn) r7
            o.IJ.H(r10)
            android.graphics.Bitmap r10 = (android.graphics.Bitmap) r10
            o.vn r8 = r7.i()
            o.AbstractC0752ap.F(r8)
            int r4 = r4 + r3
            goto L6c
        L25:
            java.lang.IllegalStateException r10 = new java.lang.IllegalStateException
            java.lang.String r0 = "call to 'resume' before 'invoke' with coroutine"
            r10.<init>(r0)
            throw r10
        L2d:
            o.IJ.H(r10)
            java.lang.Object r10 = r9.u
            r7 = r10
            o.Cn r7 = (o.InterfaceC0065Cn) r7
            android.graphics.drawable.Drawable r10 = r2.a
            boolean r0 = r10 instanceof android.graphics.drawable.BitmapDrawable
            o.NU r5 = r9.x
            if (r0 == 0) goto L56
            r0 = r10
            android.graphics.drawable.BitmapDrawable r0 = (android.graphics.drawable.BitmapDrawable) r0
            android.graphics.Bitmap r0 = r0.getBitmap()
            android.graphics.Bitmap$Config r4 = r0.getConfig()
            if (r4 != 0) goto L4c
            android.graphics.Bitmap$Config r4 = android.graphics.Bitmap.Config.ARGB_8888
        L4c:
            android.graphics.Bitmap$Config[] r6 = o.AbstractC1345h.a
            boolean r4 = o.AbstractC2219q9.H(r6, r4)
            if (r4 == 0) goto L56
            r10 = r0
            goto L62
        L56:
            android.graphics.Bitmap$Config r0 = r5.b
            o.S80 r4 = r5.c
            int r6 = r5.d
            boolean r8 = r5.e
            android.graphics.Bitmap r10 = o.AbstractC0940cn0.n(r10, r0, r4, r6, r8)
        L62:
            r1.getClass()
            java.util.List r6 = r9.y
            int r0 = r6.size()
            r4 = 0
        L6c:
            if (r4 < r0) goto L8a
            r1.getClass()
            o.xG r0 = r9.A
            android.content.Context r0 = r0.a
            android.content.res.Resources r0 = r0.getResources()
            android.graphics.drawable.BitmapDrawable r1 = new android.graphics.drawable.BitmapDrawable
            r1.<init>(r0, r10)
            boolean r10 = r2.b
            int r0 = r2.c
            java.lang.String r2 = r2.d
            o.ew r3 = new o.ew
            r3.<init>(r1, r10, r0, r2)
            return r3
        L8a:
            java.lang.Object r10 = r6.get(r4)
            if (r10 != 0) goto La0
            o.S80 r10 = r5.c
            r9.u = r7
            r9.p = r6
            r9.q = r5
            r9.r = r4
            r9.s = r0
            r9.t = r3
            r10 = 0
            throw r10
        La0:
            java.lang.ClassCastException r10 = new java.lang.ClassCastException
            r10.<init>()
            throw r10
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C1626jw.n(java.lang.Object):java.lang.Object");
    }
}
