package defpackage;

import android.graphics.Rect;
import android.view.WindowInsets;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;

/* JADX INFO: renamed from: ᵝˎˇ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C2924 extends AbstractC3869 {

    /* JADX INFO: renamed from: ˊᵫᵗ, reason: contains not printable characters */
    public static boolean f11261;

    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public static Field f11262;

    /* JADX INFO: renamed from: ᵵᵽ, reason: contains not printable characters */
    public static Constructor f11263;

    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public static boolean f11264;

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public WindowInsets f11265;

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public C2031 f11266;

    public C2924() {
        this.f11265 = m6986();
    }

    public C2924(C2813 c2813) {
        super(c2813);
        this.f11265 = c2813.m6794();
    }

    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    private static WindowInsets m6986() {
        if (!f11264) {
            try {
                f11262 = WindowInsets.class.getDeclaredField("CONSUMED");
            } catch (ReflectiveOperationException unused) {
            }
            f11264 = true;
        }
        Field field = f11262;
        if (field != null) {
            try {
                WindowInsets windowInsets = (WindowInsets) field.get(null);
                if (windowInsets != null) {
                    return new WindowInsets(windowInsets);
                }
            } catch (ReflectiveOperationException unused2) {
            }
        }
        if (!f11261) {
            try {
                f11263 = WindowInsets.class.getConstructor(Rect.class);
            } catch (ReflectiveOperationException unused3) {
            }
            f11261 = true;
        }
        Constructor constructor = f11263;
        if (constructor != null) {
            try {
                return (WindowInsets) constructor.newInstance(new Rect());
            } catch (ReflectiveOperationException unused4) {
            }
        }
        return null;
    }

    @Override // defpackage.AbstractC3869
    /* JADX INFO: renamed from: ʽˈˋ */
    public C2813 mo2077() {
        m8576();
        C2813 c2813M6792 = C2813.m6792(this.f11265, null);
        C4727 c4727 = c2813M6792.f10815;
        c4727.mo5834(null);
        c4727.mo1060(this.f11266);
        c4727.mo5829(null);
        c4727.mo5836(this.f14778);
        c4727.mo5838(this.f14777);
        return c2813M6792;
    }

    @Override // defpackage.AbstractC3869
    /* JADX INFO: renamed from: ᵨᵣ */
    public void mo2078(C2031 c2031) {
        WindowInsets windowInsets = this.f11265;
        if (windowInsets != null) {
            this.f11265 = windowInsets.replaceSystemWindowInsets(c2031.f8073, c2031.f8071, c2031.f8072, c2031.f8074);
        }
    }

    @Override // defpackage.AbstractC3869
    /* JADX INFO: renamed from: ᵷᵺʾᵖ */
    public void mo2079(C2031 c2031) {
        this.f11266 = c2031;
    }
}
