package defpackage;

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

/* JADX INFO: renamed from: ᵛᵲːᵸ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C2813 {

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public static final C2813 f10814;

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final C4727 f10815;

    static {
        int i = Build.VERSION.SDK_INT;
        if (i >= 34) {
            f10814 = C2441.f9492;
        } else if (i >= 30) {
            f10814 = C3041.f11666;
        } else {
            f10814 = C4727.f17979;
        }
    }

    public C2813() {
        this.f10815 = new C4727(this);
    }

    public C2813(WindowInsets windowInsets) {
        int i = Build.VERSION.SDK_INT;
        if (i >= 35) {
            this.f10815 = new C0905(this, windowInsets);
            return;
        }
        if (i >= 34) {
            this.f10815 = new C2441(this, windowInsets);
            return;
        }
        if (i >= 31) {
            this.f10815 = new C2488(this, windowInsets);
            return;
        }
        if (i >= 30) {
            this.f10815 = new C3041(this, windowInsets);
            return;
        }
        if (i >= 29) {
            this.f10815 = new C0055(this, windowInsets);
        } else if (i >= 28) {
            this.f10815 = new C0637(this, windowInsets);
        } else {
            this.f10815 = new C0487(this, windowInsets);
        }
    }

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public static C2813 m6792(WindowInsets windowInsets, View view) {
        windowInsets.getClass();
        C2813 c2813 = new C2813(windowInsets);
        if (view != null && view.isAttachedToWindow()) {
            WeakHashMap weakHashMap = AbstractC2746.f10556;
            C2813 c2813M2446 = AbstractC0671.m2446(view);
            C4727 c4727 = c2813.f10815;
            c4727.mo5831(c2813M2446);
            View rootView = view.getRootView();
            c4727.mo5840(rootView);
            c4727.mo5833(rootView);
            c4727.mo3151();
            c4727.mo5837(view.getWindowSystemUiVisibility());
        }
        return c2813;
    }

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public static C2031 m6793(C2031 c2031, int i, int i2, int i3, int i4) {
        int iMax = Math.max(0, c2031.f8073 - i);
        int iMax2 = Math.max(0, c2031.f8071 - i2);
        int iMax3 = Math.max(0, c2031.f8072 - i3);
        int iMax4 = Math.max(0, c2031.f8074 - i4);
        return (iMax == i && iMax2 == i2 && iMax3 == i3 && iMax4 == i4) ? c2031 : C2031.m5447(iMax, iMax2, iMax3, iMax4);
    }

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

    public final int hashCode() {
        C4727 c4727 = this.f10815;
        if (c4727 == null) {
            return 0;
        }
        return c4727.hashCode();
    }

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final WindowInsets m6794() {
        C4727 c4727 = this.f10815;
        if (c4727 instanceof AbstractC2235) {
            return ((AbstractC2235) c4727).f8851;
        }
        return null;
    }
}
