package p037.p058.p061.p062;

import p037.p058.p061.C1733;
import p037.p058.p061.C1735;
import p037.p058.p061.C1741;
import p037.p058.p061.p062.C1745;
import p037.p058.p061.p062.C1747;

/* JADX INFO: renamed from: މ.ނ.ؠ.ޅ.ރ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C1750 extends C1747 {

    /* JADX INFO: renamed from: ഺ, reason: contains not printable characters */
    public float f5808 = -1.0f;

    /* JADX INFO: renamed from: ൎ, reason: contains not printable characters */
    public int f5809 = -1;

    /* JADX INFO: renamed from: ໞ, reason: contains not printable characters */
    public int f5810 = -1;

    /* JADX INFO: renamed from: ໟ, reason: contains not printable characters */
    public C1745 f5811 = this.f5758;

    /* JADX INFO: renamed from: ྈ, reason: contains not printable characters */
    public int f5812 = 0;

    public C1750() {
        this.f5766.clear();
        this.f5766.add(this.f5811);
        int length = this.f5765.length;
        for (int i = 0; i < length; i++) {
            this.f5765[i] = this.f5811;
        }
    }

    @Override // p037.p058.p061.p062.C1747
    /* JADX INFO: renamed from: ֏ */
    public C1745 mo3453(C1745.EnumC1746 enumC1746) {
        switch (enumC1746) {
            case NONE:
            case BASELINE:
            case CENTER:
            case CENTER_X:
            case CENTER_Y:
                return null;
            case LEFT:
            case RIGHT:
                if (this.f5812 == 1) {
                    return this.f5811;
                }
                break;
            case TOP:
            case BOTTOM:
                if (this.f5812 == 0) {
                    return this.f5811;
                }
                break;
        }
        throw new AssertionError(enumC1746.name());
    }

    @Override // p037.p058.p061.p062.C1747
    /* JADX INFO: renamed from: ֏ */
    public void mo3446(C1735 c1735) {
        C1749 c1749 = (C1749) this.f5768;
        if (c1749 == null) {
            return;
        }
        C1745 c1745Mo3453 = c1749.mo3453(C1745.EnumC1746.LEFT);
        C1745 c1745Mo34532 = c1749.mo3453(C1745.EnumC1746.RIGHT);
        C1747 c1747 = this.f5768;
        boolean z = c1747 != null && c1747.f5767[0] == C1747.EnumC1748.WRAP_CONTENT;
        if (this.f5812 == 0) {
            c1745Mo3453 = c1749.mo3453(C1745.EnumC1746.TOP);
            c1745Mo34532 = c1749.mo3453(C1745.EnumC1746.BOTTOM);
            C1747 c17472 = this.f5768;
            z = c17472 != null && c17472.f5767[1] == C1747.EnumC1748.WRAP_CONTENT;
        }
        if (this.f5809 != -1) {
            C1741 c1741M3420 = c1735.m3420(this.f5811);
            c1735.m3418(c1741M3420, c1735.m3420(c1745Mo3453), this.f5809, 7);
            if (z) {
                c1735.m3432(c1735.m3420(c1745Mo34532), c1741M3420, 0, 5);
                return;
            }
            return;
        }
        if (this.f5810 != -1) {
            C1741 c1741M34202 = c1735.m3420(this.f5811);
            C1741 c1741M34203 = c1735.m3420(c1745Mo34532);
            c1735.m3418(c1741M34202, c1741M34203, -this.f5810, 7);
            if (z) {
                c1735.m3432(c1741M34202, c1735.m3420(c1745Mo3453), 0, 5);
                c1735.m3432(c1741M34203, c1741M34202, 0, 5);
                return;
            }
            return;
        }
        if (this.f5808 != -1.0f) {
            C1741 c1741M34204 = c1735.m3420(this.f5811);
            C1741 c1741M34205 = c1735.m3420(c1745Mo34532);
            float f = this.f5808;
            C1733 c1733M3430 = c1735.m3430();
            c1733M3430.f5643.m3405(c1741M34204, -1.0f);
            c1733M3430.f5643.m3405(c1741M34205, f);
            c1735.m3423(c1733M3430);
        }
    }

    @Override // p037.p058.p061.p062.C1747
    /* JADX INFO: renamed from: ֏ */
    public boolean mo3447() {
        return true;
    }

    @Override // p037.p058.p061.p062.C1747
    /* JADX INFO: renamed from: ހ */
    public void mo3466(C1735 c1735) {
        if (this.f5768 == null) {
            return;
        }
        int iM3428 = c1735.m3428(this.f5811);
        if (this.f5812 == 1) {
            this.f5773 = iM3428;
            this.f5774 = 0;
            m3470(this.f5768.m3464());
            m3476(0);
            return;
        }
        this.f5773 = 0;
        this.f5774 = iM3428;
        m3476(this.f5768.m3473());
        m3470(0);
    }

    /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
    public void m3486(int i) {
        if (this.f5812 == i) {
            return;
        }
        this.f5812 = i;
        this.f5766.clear();
        if (this.f5812 == 1) {
            this.f5811 = this.f5757;
        } else {
            this.f5811 = this.f5758;
        }
        this.f5766.add(this.f5811);
        int length = this.f5765.length;
        for (int i2 = 0; i2 < length; i2++) {
            this.f5765[i2] = this.f5811;
        }
    }
}
