package defpackage;

import android.os.Build;
import android.view.View;
import android.view.WindowInsets;
import j$.util.Objects;
import java.util.WeakHashMap;

/* renamed from: ᵯʞʾ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C4250 {

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public static final C4250 f15917;

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

    static {
        int i = Build.VERSION.SDK_INT;
        if (i >= 34) {
            f15917 = C1560.f6213;
        } else if (i >= 30) {
            f15917 = C0819.f3787;
        } else {
            f15917 = C2387.f9325;
        }
    }

    public C4250() {
        this.f15918 = new C2387(this);
    }

    public C4250(WindowInsets windowInsets) {
        int i = Build.VERSION.SDK_INT;
        if (i >= 35) {
            this.f15918 = new C2462(this, windowInsets);
            return;
        }
        if (i >= 34) {
            this.f15918 = new C1560(this, windowInsets);
            return;
        }
        if (i >= 31) {
            this.f15918 = new C0484(this, windowInsets);
            return;
        }
        if (i >= 30) {
            this.f15918 = new C0819(this, windowInsets);
            return;
        }
        if (i >= 29) {
            this.f15918 = new C1519(this, windowInsets);
        } else if (i >= 28) {
            this.f15918 = new C0672(this, windowInsets);
        } else {
            this.f15918 = new C1281(this, windowInsets);
        }
    }

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public static C4250 m9194(WindowInsets windowInsets, View view) {
        windowInsets.getClass();
        C4250 c4250 = new C4250(windowInsets);
        if (view != null && view.isAttachedToWindow()) {
            WeakHashMap weakHashMap = AbstractC2873.f11133;
            C4250 c4250M5289 = AbstractC1886.m5289(view);
            C2387 c2387 = c4250.f15918;
            c2387.mo5232(c4250M5289);
            View rootView = view.getRootView();
            c2387.mo2922(rootView);
            c2387.mo4531(rootView);
            c2387.mo5237();
            c2387.mo5235(view.getWindowSystemUiVisibility());
        }
        return c4250;
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public static C4384 m9195(C4384 c4384, int i, int i2, int i3, int i4) {
        int iMax = Math.max(0, c4384.f16425 - i);
        int iMax2 = Math.max(0, c4384.f16426 - i2);
        int iMax3 = Math.max(0, c4384.f16424 - i3);
        int iMax4 = Math.max(0, c4384.f16427 - i4);
        return (iMax == i && iMax2 == i2 && iMax3 == i3 && iMax4 == i4) ? c4384 : C4384.m9389(iMax, iMax2, iMax3, iMax4);
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj instanceof C4250) {
            return Objects.equals(this.f15918, ((C4250) obj).f15918);
        }
        return false;
    }

    public final int hashCode() {
        C2387 c2387 = this.f15918;
        if (c2387 == null) {
            return 0;
        }
        return c2387.hashCode();
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final WindowInsets m9196() {
        C2387 c2387 = this.f15918;
        if (c2387 instanceof AbstractC1850) {
            return ((AbstractC1850) c2387).f7487;
        }
        return null;
    }
}
