package defpackage;

import android.content.Context;
import android.os.Build;
import android.view.Surface;

/* renamed from: ᵪˏᵗ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C3884 {

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public Surface f14440;

    /* renamed from: ˌʾˀ, reason: contains not printable characters */
    public long f14441;

    /* renamed from: ˌᵜᵹᵩ, reason: contains not printable characters */
    public long f14442;

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public float f14443;

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public float f14444;

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public AbstractC3405 f14445;

    /* renamed from: ᵝᵵᵺ, reason: contains not printable characters */
    public float f14446;

    /* renamed from: ᵞʡ, reason: contains not printable characters */
    public long f14447;

    /* renamed from: ᵡʠ, reason: contains not printable characters */
    public long f14448;

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final C2716 f14449;

    /* renamed from: ᵪʩ, reason: contains not printable characters */
    public long f14450;

    /* renamed from: ᵯٴᵦ, reason: contains not printable characters */
    public long f14451;

    /* renamed from: ᵳٴᵶ, reason: contains not printable characters */
    public long f14452;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final Context f14453;

    /* renamed from: ᵶᵷᵕ, reason: contains not printable characters */
    public int f14454;

    /* renamed from: ᵸʓᵠ, reason: contains not printable characters */
    public long f14455;

    /* renamed from: ᵸˑ, reason: contains not printable characters */
    public long f14456;

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public float f14457;

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public boolean f14458;

    public C3884(Context context) {
        this.f14453 = context;
        C2716 c2716 = new C2716();
        c2716.f10530 = new C3433();
        c2716.f10531 = new C3433();
        c2716.f10532 = -9223372036854775807L;
        this.f14449 = c2716;
        this.f14444 = -1.0f;
        this.f14446 = 1.0f;
        this.f14454 = 0;
    }

    /* JADX WARN: Removed duplicated region for block: B:34:0x0071  */
    /* JADX WARN: Removed duplicated region for block: B:45:? A[RETURN, SYNTHETIC] */
    /* renamed from: ˏᵙ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final void m8537() {
        /*
            r9 = this;
            int r0 = android.os.Build.VERSION.SDK_INT
            r1 = 30
            if (r0 < r1) goto L8d
            android.view.Surface r0 = r9.f14440
            if (r0 != 0) goto Lc
            goto L8d
        Lc:
            ᵛʡᵲ r0 = r9.f14449
            ᵤᵔˈ r2 = r0.f10530
            boolean r2 = r2.m7811()
            r3 = -1082130432(0xffffffffbf800000, float:-1.0)
            if (r2 == 0) goto L39
            ᵤᵔˈ r2 = r0.f10530
            boolean r2 = r2.m7811()
            if (r2 == 0) goto L37
            ᵤᵔˈ r2 = r0.f10530
            long r4 = r2.f12836
            r6 = 0
            int r8 = (r4 > r6 ? 1 : (r4 == r6 ? 0 : -1))
            if (r8 != 0) goto L2b
            goto L2e
        L2b:
            long r6 = r2.f12838
            long r6 = r6 / r4
        L2e:
            double r4 = (double) r6
            r6 = 4741671816366391296(0x41cdcd6500000000, double:1.0E9)
            double r6 = r6 / r4
            float r2 = (float) r6
            goto L3b
        L37:
            r2 = r3
            goto L3b
        L39:
            float r2 = r9.f14444
        L3b:
            float r4 = r9.f14443
            int r5 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1))
            if (r5 != 0) goto L42
            goto L8d
        L42:
            int r5 = (r2 > r3 ? 1 : (r2 == r3 ? 0 : -1))
            if (r5 == 0) goto L80
            int r3 = (r4 > r3 ? 1 : (r4 == r3 ? 0 : -1))
            if (r3 == 0) goto L80
            ᵤᵔˈ r1 = r0.f10530
            boolean r1 = r1.m7811()
            if (r1 == 0) goto L71
            ᵤᵔˈ r1 = r0.f10530
            boolean r1 = r1.m7811()
            if (r1 == 0) goto L5f
            ᵤᵔˈ r0 = r0.f10530
            long r0 = r0.f12838
            goto L64
        L5f:
            r0 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)
        L64:
            r3 = 5000000000(0x12a05f200, double:2.470328229E-314)
            int r0 = (r0 > r3 ? 1 : (r0 == r3 ? 0 : -1))
            if (r0 < 0) goto L71
            r0 = 1036831949(0x3dcccccd, float:0.1)
            goto L73
        L71:
            r0 = 1065353216(0x3f800000, float:1.0)
        L73:
            float r1 = r9.f14443
            float r1 = r2 - r1
            float r1 = java.lang.Math.abs(r1)
            int r0 = (r1 > r0 ? 1 : (r1 == r0 ? 0 : -1))
            if (r0 < 0) goto L8d
            goto L87
        L80:
            if (r5 == 0) goto L83
            goto L87
        L83:
            int r0 = r0.f10528
            if (r0 < r1) goto L8d
        L87:
            r9.f14443 = r2
            r0 = 0
            r9.m8540(r0)
        L8d:
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C3884.m8537():void");
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final void m8538() {
        Surface surface;
        if (Build.VERSION.SDK_INT < 30 || (surface = this.f14440) == null || this.f14454 == Integer.MIN_VALUE || this.f14457 == 0.0f || !surface.isValid()) {
            return;
        }
        this.f14457 = 0.0f;
        AbstractC1674.m4801(this.f14440, 0.0f);
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final void m8539() {
        this.f14451 = 0L;
        this.f14448 = -1L;
        this.f14450 = -1L;
        this.f14456 = 0L;
        this.f14442 = 0L;
    }

    /* JADX WARN: Removed duplicated region for block: B:16:0x0027  */
    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final void m8540(boolean r4) {
        /*
            r3 = this;
            int r0 = android.os.Build.VERSION.SDK_INT
            r1 = 30
            if (r0 < r1) goto L38
            android.view.Surface r0 = r3.f14440
            if (r0 == 0) goto L38
            int r1 = r3.f14454
            r2 = -2147483648(0xffffffff80000000, float:-0.0)
            if (r1 == r2) goto L38
            boolean r0 = r0.isValid()
            if (r0 != 0) goto L17
            goto L38
        L17:
            boolean r0 = r3.f14458
            if (r0 == 0) goto L27
            float r0 = r3.f14443
            r1 = -1082130432(0xffffffffbf800000, float:-1.0)
            int r1 = (r0 > r1 ? 1 : (r0 == r1 ? 0 : -1))
            if (r1 == 0) goto L27
            float r1 = r3.f14446
            float r0 = r0 * r1
            goto L28
        L27:
            r0 = 0
        L28:
            if (r4 != 0) goto L31
            float r4 = r3.f14457
            int r4 = (r4 > r0 ? 1 : (r4 == r0 ? 0 : -1))
            if (r4 != 0) goto L31
            goto L38
        L31:
            r3.f14457 = r0
            android.view.Surface r3 = r3.f14440
            defpackage.AbstractC1674.m4801(r3, r0)
        L38:
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C3884.m8540(boolean):void");
    }
}
