package O0;

import C3.AbstractC0062y;
import C3.G;
import C3.U;
import C3.V;
import C3.W;
import u0.T;

/* JADX INFO: loaded from: classes.dex */
public final class m extends o implements Comparable {

    /* JADX INFO: renamed from: A, reason: collision with root package name */
    public final int f4870A;

    /* JADX INFO: renamed from: B, reason: collision with root package name */
    public final int f4871B;

    /* JADX INFO: renamed from: C, reason: collision with root package name */
    public final boolean f4872C;

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public final int f4873u;

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    public final boolean f4874v;

    /* JADX INFO: renamed from: w, reason: collision with root package name */
    public final boolean f4875w;

    /* JADX INFO: renamed from: x, reason: collision with root package name */
    public final boolean f4876x;

    /* JADX INFO: renamed from: y, reason: collision with root package name */
    public final int f4877y;

    /* JADX INFO: renamed from: z, reason: collision with root package name */
    public final int f4878z;

    public m(int i, T t6, int i5, k kVar, int i8, String str, String str2) {
        int iB;
        super(i, t6, i5);
        int i9 = 0;
        this.f4874v = I1.a.g(i8, false);
        int i10 = this.f4882t.f17350e & (~kVar.f17243r);
        this.f4875w = (i10 & 1) != 0;
        this.f4876x = (i10 & 2) != 0;
        W w4 = kVar.f17241p;
        W wP = str2 != null ? G.p(str2) : w4.isEmpty() ? G.p("") : w4;
        int i11 = 0;
        while (true) {
            if (i11 >= wP.f1227t) {
                iB = 0;
                i11 = Integer.MAX_VALUE;
                break;
            } else {
                iB = q.b(this.f4882t, (String) wP.get(i11), false);
                if (iB > 0) {
                    break;
                } else {
                    i11++;
                }
            }
        }
        this.f4877y = i11;
        this.f4878z = iB;
        int i12 = str2 != null ? 1088 : 0;
        int i13 = this.f4882t.f17351f;
        V v7 = q.i;
        int iBitCount = (i13 == 0 || i13 != i12) ? Integer.bitCount(i12 & i13) : Integer.MAX_VALUE;
        this.f4870A = iBitCount;
        this.f4872C = (this.f4882t.f17351f & 1088) != 0;
        int iB2 = q.b(this.f4882t, str, q.e(str) == null);
        this.f4871B = iB2;
        boolean z8 = iB > 0 || (w4.isEmpty() && iBitCount > 0) || this.f4875w || (this.f4876x && iB2 > 0);
        if (I1.a.g(i8, kVar.f4868z) && z8) {
            i9 = 1;
        }
        this.f4873u = i9;
    }

    @Override // O0.o
    public final int a() {
        return this.f4873u;
    }

    @Override // O0.o
    public final /* bridge */ /* synthetic */ boolean b(o oVar) {
        return false;
    }

    @Override // java.lang.Comparable
    /* JADX INFO: renamed from: c, reason: merged with bridge method [inline-methods] */
    public final int compareTo(m mVar) {
        AbstractC0062y abstractC0062yC = AbstractC0062y.f1316a.c(this.f4874v, mVar.f4874v);
        Integer numValueOf = Integer.valueOf(this.f4877y);
        Integer numValueOf2 = Integer.valueOf(mVar.f4877y);
        U u8 = U.f1223s;
        AbstractC0062y abstractC0062yB = abstractC0062yC.b(numValueOf, numValueOf2, u8);
        int i = this.f4878z;
        AbstractC0062y abstractC0062yA = abstractC0062yB.a(i, mVar.f4878z);
        int i5 = this.f4870A;
        AbstractC0062y abstractC0062yC2 = abstractC0062yA.a(i5, mVar.f4870A).c(this.f4875w, mVar.f4875w);
        Boolean boolValueOf = Boolean.valueOf(this.f4876x);
        Boolean boolValueOf2 = Boolean.valueOf(mVar.f4876x);
        if (i == 0) {
            u8 = U.f1222r;
        }
        AbstractC0062y abstractC0062yA2 = abstractC0062yC2.b(boolValueOf, boolValueOf2, u8).a(this.f4871B, mVar.f4871B);
        if (i5 == 0) {
            abstractC0062yA2 = abstractC0062yA2.d(this.f4872C, mVar.f4872C);
        }
        return abstractC0062yA2.e();
    }
}
