package T;

import K.C0464l0;
import K.S0;
import Q0.A;
import T0.C0596g;
import T0.N;
import Z0.C0860a;
import Z0.E;
import j0.C2309f;
import java.util.List;
import x4.AbstractC3252r;

/* JADX INFO: loaded from: classes.dex */
public final /* synthetic */ class i implements J4.c {

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

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

    public /* synthetic */ i(j jVar, int i6) {
        this.f6325a = i6;
        this.f6326b = jVar;
    }

    @Override // J4.c
    public final Object invoke(Object obj) {
        boolean z6 = true;
        j jVar = this.f6326b;
        switch (this.f6325a) {
            case 0:
                C2309f c2309f = (C2309f) obj;
                C0464l0 c0464l0 = jVar.f6329e;
                Boolean bool = Boolean.TRUE;
                c0464l0.f3907t.setValue(bool);
                jVar.f6329e.f3906s.setValue(bool);
                C0464l0 c0464l02 = jVar.f6329e;
                CharSequence textValue = c2309f.f19444a.isText() ? c2309f.f19444a.getTextValue() : null;
                kotlin.jvm.internal.o.f(textValue, "null cannot be cast to non-null type kotlin.String");
                j.w0(c0464l02, (String) textValue, jVar.f6330f);
                return bool;
            case 1:
                List list = (List) obj;
                if (jVar.f6329e.d() != null) {
                    S0 s0D = jVar.f6329e.d();
                    kotlin.jvm.internal.o.e(s0D);
                    list.add(s0D.f3742a);
                } else {
                    z6 = false;
                }
                return Boolean.valueOf(z6);
            case 2:
                j.w0(jVar.f6329e, ((C0596g) obj).f6510b, jVar.f6330f);
                return Boolean.TRUE;
            default:
                C0596g c0596g = (C0596g) obj;
                jVar.getClass();
                if (jVar.f6330f) {
                    E e6 = jVar.f6329e.f3893e;
                    if (e6 != null) {
                        List listB = AbstractC3252r.B(new Z0.i(), new C0860a(c0596g, 1));
                        C0464l0 c0464l03 = jVar.f6329e;
                        Z0.y yVarJ = c0464l03.f3892d.j(listB);
                        e6.a(null, yVarJ);
                        c0464l03.f3909v.invoke(yVarJ);
                    } else {
                        Z0.y yVar = jVar.f6328d;
                        String str = yVar.f9136a.f6510b;
                        int i6 = N.f6482c;
                        long j4 = yVar.f9137b;
                        String string = S4.p.Z0(str, (int) (j4 >> 32), (int) (j4 & 4294967295L), c0596g).toString();
                        int length = c0596g.f6510b.length() + ((int) (jVar.f6328d.f9137b >> 32));
                        jVar.f6329e.f3909v.invoke(new Z0.y(string, android.support.v4.media.session.b.g(length, length), 4));
                    }
                } else {
                    z6 = false;
                }
                return Boolean.valueOf(z6);
        }
    }

    public /* synthetic */ i(j jVar, A a6) {
        this.f6325a = 3;
        this.f6326b = jVar;
    }
}
