package p138.p176.p177.p190.p226.p234;

import android.text.Layout;
import p000.p001.p002.p003.p004.C0567;
import p138.p139.p143.p144.C2803;
import p138.p176.p177.p190.p226.C3946;

/* JADX INFO: renamed from: ދ.ހ.֏.ؠ.ໟ.ސ.ނ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C4005 extends C3946 {

    /* JADX INFO: renamed from: ޒ, reason: contains not printable characters */
    public final long f12680;

    /* JADX INFO: renamed from: ޓ, reason: contains not printable characters */
    public final long f12681;

    /* JADX INFO: renamed from: ދ.ހ.֏.ؠ.ໟ.ސ.ނ$ؠ, reason: contains not printable characters */
    public static class C4007 {

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public long f12682;

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public long f12683;

        /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
        public CharSequence f12684;

        /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
        public int f12685;

        /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
        public float f12686;

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public int f12687;

        /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
        public int f12688;

        /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
        public float f12689;

        /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
        public int f12690;

        /* JADX INFO: renamed from: އ, reason: contains not printable characters */
        public float f12691;

        public C4007() {
            m6457();
        }

        /* JADX WARN: Removed duplicated region for block: B:13:0x0020  */
        /* JADX WARN: Removed duplicated region for block: B:31:0x0054  */
        /* JADX WARN: Removed duplicated region for block: B:32:0x0056  */
        /* JADX WARN: Removed duplicated region for block: B:53:0x00a8  */
        /* JADX WARN: Removed duplicated region for block: B:55:0x00ae  */
        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        /*
            Code decompiled incorrectly, please refer to instructions dump.
        */
        public C4005 m6456() {
            Layout.Alignment alignment;
            int i;
            float f = this.f12686;
            int i2 = this.f12687;
            if (f == -3.4028235E38f || i2 != 0 || (f >= 0.0f && f <= 1.0f)) {
                if (f == -3.4028235E38f) {
                    f = i2 == 0 ? 1.0f : -3.4028235E38f;
                }
            }
            this.f12686 = f;
            if (this.f12689 == -3.4028235E38f) {
                int i3 = this.f12685;
                this.f12689 = i3 != 4 ? i3 != 5 ? 0.5f : 1.0f : 0.0f;
            }
            if (this.f12690 == Integer.MIN_VALUE) {
                int i4 = this.f12685;
                if (i4 == 1) {
                    i = 0;
                    this.f12690 = i;
                } else if (i4 == 3) {
                    i = 2;
                    this.f12690 = i;
                } else {
                    if (i4 != 4) {
                        if (i4 != 5) {
                            i = 1;
                        }
                    }
                    this.f12690 = i;
                }
            }
            float f2 = this.f12691;
            int i5 = this.f12690;
            float f3 = this.f12689;
            if (i5 == 0) {
                f3 = 1.0f - f3;
            } else if (i5 == 1) {
                f3 = f3 <= 0.5f ? f3 * 2.0f : (1.0f - f3) * 2.0f;
            } else if (i5 != 2) {
                throw new IllegalStateException(String.valueOf(i5));
            }
            this.f12691 = Math.min(f2, f3);
            long j = this.f12682;
            long j2 = this.f12683;
            CharSequence charSequence = this.f12684;
            C0567.m1856(charSequence);
            CharSequence charSequence2 = charSequence;
            int i6 = this.f12685;
            if (i6 == 1) {
                alignment = Layout.Alignment.ALIGN_NORMAL;
            } else if (i6 == 2) {
                alignment = Layout.Alignment.ALIGN_CENTER;
            } else if (i6 == 3) {
                alignment = Layout.Alignment.ALIGN_OPPOSITE;
            } else if (i6 != 4) {
                if (i6 != 5) {
                    C2803.m4900("Unknown textAlignment: ", i6, "WebvttCueBuilder");
                    alignment = null;
                }
            }
            return new C4005(j, j2, charSequence2, alignment, this.f12686, this.f12687, this.f12688, this.f12689, this.f12690, this.f12691, null);
        }

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public void m6457() {
            this.f12682 = 0L;
            this.f12683 = 0L;
            this.f12684 = null;
            this.f12685 = 2;
            this.f12686 = -3.4028235E38f;
            this.f12687 = 1;
            this.f12688 = 0;
            this.f12689 = -3.4028235E38f;
            this.f12690 = Integer.MIN_VALUE;
            this.f12691 = 1.0f;
        }
    }

    public /* synthetic */ C4005(long j, long j2, CharSequence charSequence, Layout.Alignment alignment, float f, int i, int i2, float f2, int i3, float f3, C4006 c4006) {
        super(charSequence, alignment, f, i, i2, f2, i3, f3);
        this.f12680 = j;
        this.f12681 = j2;
    }
}
