package s5;

import A6.n;
import G6.i;
import O6.p;
import Z6.AbstractC0385z;
import Z6.InterfaceC0382w;
import Z6.J;
import android.widget.ImageView;
import com.google.android.gms.internal.measurement.C1;
import com.martsnew.tv.R;
import f2.C0911a;
import f2.C0920j;
import p2.C1418h;
import u5.E0;

/* JADX INFO: renamed from: s5.d, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1525d extends i implements p {

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public z7.h f16885u;

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C1525d(DialogC1526e dialogC1526e, E0 e02, E6.d dVar) {
        super(2, dVar);
        this.f16888x = dialogC1526e;
        this.f16889y = e02;
    }

    @Override // O6.p
    public final Object k(Object obj, Object obj2) {
        return ((C1525d) m((E6.d) obj2, (InterfaceC0382w) obj)).p(n.f457a);
    }

    @Override // G6.a
    public final E6.d m(E6.d dVar, Object obj) {
        return new C1525d(this.f16888x, this.f16889y, dVar);
    }

    /* JADX WARN: Code restructure failed: missing block: B:18:0x00af, code lost:
    
        if (r12 == r0) goto L19;
     */
    @Override // G6.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object p(Object obj) throws Throwable {
        int dimensionPixelSize;
        z7.h hVar;
        F6.a aVar = F6.a.f2580q;
        int i = this.f16887w;
        DialogC1526e dialogC1526e = this.f16888x;
        if (i == 0) {
            C1.N(obj);
            z7.h hVar2 = new z7.h();
            hVar2.f19394a = 25;
            hVar2.f19395b = -16777216;
            hVar2.f19396c = -1;
            hVar2.f19397d = hVar2.b();
            android.support.v4.media.session.a.s(((double) hVar2.f19394a) / 1.75d);
            z7.a aVar2 = z7.a.f19374r;
            hVar2.f19398e = aVar2;
            hVar2.f19399f = aVar2;
            hVar2.f19400g = aVar2;
            hVar2.f19401h = aVar2;
            hVar2.i = new C4.f(3);
            hVar2.f19402j = C7.a.VERY_HIGH;
            hVar2.f19403k = 6;
            hVar2.f19395b = -1;
            hVar2.f19396c = 0;
            hVar2.d(10);
            dimensionPixelSize = dialogC1526e.getContext().getResources().getDimensionPixelSize(R.dimen.dp_50);
            g7.e eVar = J.f7474a;
            g7.d dVar = g7.d.f12985s;
            C1524c c1524c = new C1524c(dialogC1526e, dimensionPixelSize, null);
            this.f16885u = hVar2;
            this.f16886v = dimensionPixelSize;
            this.f16887w = 1;
            Object objC = AbstractC0385z.C(dVar, c1524c, this);
            if (objC != aVar) {
                hVar = hVar2;
                obj = objC;
            }
            return aVar;
        }
        if (i != 1) {
            if (i != 2) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            C1.N(obj);
            ImageView imageView = this.f16889y.f17547M;
            P6.g.d(imageView, "imageQR");
            C0920j c0920jA = C0911a.a(imageView.getContext());
            C1418h c1418h = new C1418h(imageView.getContext());
            c1418h.f16053c = (byte[]) obj;
            c1418h.b(imageView);
            c0920jA.b(c1418h.a());
            return n.f457a;
        }
        dimensionPixelSize = this.f16886v;
        hVar = this.f16885u;
        C1.N(obj);
        byte[] bArr = (byte[]) obj;
        if (bArr != null) {
            z7.h.c(hVar, bArr, dimensionPixelSize, dimensionPixelSize);
        }
        z7.c cVarA = hVar.a(dialogC1526e.f16892s);
        g7.e eVar2 = J.f7474a;
        g7.d dVar2 = g7.d.f12985s;
        C1523b c1523b = new C1523b(cVarA, null);
        this.f16885u = null;
        this.f16887w = 2;
        obj = AbstractC0385z.C(dVar2, c1523b, this);
    }
}
