package defpackage;

import java.util.ArrayList;

/* JADX INFO: renamed from: ʽᵠ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C0148 extends C2622 {

    /* JADX INFO: renamed from: ᵱᵭ, reason: contains not printable characters */
    public boolean f1530;

    /* JADX INFO: renamed from: ˏʽˊᵰ, reason: contains not printable characters */
    public float f1526 = -1.0f;

    /* JADX INFO: renamed from: ᵯˇ, reason: contains not printable characters */
    public int f1529 = -1;

    /* JADX INFO: renamed from: ᵧᵢᵴᵸ, reason: contains not printable characters */
    public int f1528 = -1;

    /* JADX INFO: renamed from: ˆˀᵯ, reason: contains not printable characters */
    public C4214 f1525 = this.f10149;

    /* JADX INFO: renamed from: ᵚᵹᵔᵜ, reason: contains not printable characters */
    public int f1527 = 0;

    public C0148() {
        this.f10190.clear();
        this.f10190.add(this.f1525);
        int length = this.f10155.length;
        for (int i = 0; i < length; i++) {
            this.f10155[i] = this.f1525;
        }
    }

    @Override // defpackage.C2622
    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final void mo1271(C1873 c1873, boolean z) {
        C3100 c3100 = (C3100) this.f10159;
        if (c3100 == null) {
            return;
        }
        Object objMo1278 = c3100.mo1278(2);
        Object objMo12782 = c3100.mo1278(4);
        C2622 c2622 = this.f10159;
        boolean z2 = c2622 != null && c2622.f10196[0] == 2;
        if (this.f1527 == 0) {
            objMo1278 = c3100.mo1278(3);
            objMo12782 = c3100.mo1278(5);
            C2622 c26222 = this.f10159;
            z2 = c26222 != null && c26222.f10196[1] == 2;
        }
        if (this.f1530) {
            C4214 c4214 = this.f1525;
            if (c4214.f16030) {
                C4996 c4996M5103 = c1873.m5103(c4214);
                c1873.m5104(c4996M5103, this.f1525.m9155());
                if (this.f1529 != -1) {
                    if (z2) {
                        c1873.m5106(c1873.m5103(objMo12782), c4996M5103, 0, 5);
                    }
                } else if (this.f1528 != -1 && z2) {
                    C4996 c4996M51032 = c1873.m5103(objMo12782);
                    c1873.m5106(c4996M5103, c1873.m5103(objMo1278), 0, 5);
                    c1873.m5106(c4996M51032, c4996M5103, 0, 5);
                }
                this.f1530 = false;
                return;
            }
        }
        if (this.f1529 != -1) {
            C4996 c4996M51033 = c1873.m5103(this.f1525);
            c1873.m5096(c4996M51033, c1873.m5103(objMo1278), this.f1529, 8);
            if (z2) {
                c1873.m5106(c1873.m5103(objMo12782), c4996M51033, 0, 5);
                return;
            }
            return;
        }
        if (this.f1528 != -1) {
            C4996 c4996M51034 = c1873.m5103(this.f1525);
            C4996 c4996M51035 = c1873.m5103(objMo12782);
            c1873.m5096(c4996M51034, c4996M51035, -this.f1528, 8);
            if (z2) {
                c1873.m5106(c4996M51034, c1873.m5103(objMo1278), 0, 5);
                c1873.m5106(c4996M51035, c4996M51034, 0, 5);
                return;
            }
            return;
        }
        if (this.f1526 != -1.0f) {
            C4996 c4996M51036 = c1873.m5103(this.f1525);
            C4996 c4996M51037 = c1873.m5103(objMo12782);
            float f = this.f1526;
            C5184 c5184M5098 = c1873.m5098();
            c5184M5098.f19516.m9928(c4996M51036, -1.0f);
            c5184M5098.f19516.m9928(c4996M51037, f);
            c1873.m5093(c5184M5098);
        }
    }

    @Override // defpackage.C2622
    /* JADX INFO: renamed from: ˈᵲᵢ, reason: contains not printable characters */
    public final boolean mo1272() {
        return this.f1530;
    }

    @Override // defpackage.C2622
    /* JADX INFO: renamed from: ˈⁱᵡ, reason: contains not printable characters */
    public final void mo1273(C1873 c1873, boolean z) {
        if (this.f10159 == null) {
            return;
        }
        C4214 c4214 = this.f1525;
        c1873.getClass();
        int iM5087 = C1873.m5087(c4214);
        if (this.f1527 == 1) {
            this.f10147 = iM5087;
            this.f10188 = 0;
            m6356(this.f10159.m6379());
            m6364(0);
            return;
        }
        this.f10147 = 0;
        this.f10188 = iM5087;
        m6364(this.f10159.m6374());
        m6356(0);
    }

    @Override // defpackage.C2622
    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public final boolean mo1274() {
        return true;
    }

    /* JADX INFO: renamed from: ᵞᵛᵘ, reason: contains not printable characters */
    public final void m1275(int i) {
        if (this.f1527 == i) {
            return;
        }
        this.f1527 = i;
        ArrayList arrayList = this.f10190;
        arrayList.clear();
        if (this.f1527 == 1) {
            this.f1525 = this.f10151;
        } else {
            this.f1525 = this.f10149;
        }
        arrayList.add(this.f1525);
        C4214[] c4214Arr = this.f10155;
        int length = c4214Arr.length;
        for (int i2 = 0; i2 < length; i2++) {
            c4214Arr[i2] = this.f1525;
        }
    }

    /* JADX INFO: renamed from: ᵨˈʼﹶ, reason: contains not printable characters */
    public final void m1276(int i) {
        this.f1525.m9150(i);
        this.f1530 = true;
    }

    @Override // defpackage.C2622
    /* JADX INFO: renamed from: ᵶˇᵱ, reason: contains not printable characters */
    public final boolean mo1277() {
        return this.f1530;
    }

    @Override // defpackage.C2622
    /* JADX INFO: renamed from: ᵻʽᵯ, reason: contains not printable characters */
    public final C4214 mo1278(int i) {
        int iM8218 = AbstractC3653.m8218(i);
        if (iM8218 != 1) {
            if (iM8218 != 2) {
                if (iM8218 != 3) {
                    if (iM8218 != 4) {
                        return null;
                    }
                }
            }
            if (this.f1527 == 0) {
                return this.f1525;
            }
            return null;
        }
        if (this.f1527 == 1) {
            return this.f1525;
        }
        return null;
    }
}
