package ῲ.ᨨ.ᨨ;

import android.graphics.Rect;
import android.os.Build;
import android.util.Log;
import android.view.DisplayCutout;
import android.view.View;
import android.view.WindowInsets;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.Objects;
import ඓ.K.K.K.C1293;
import ῲ.ᨨ.ʬ.C1716;
import K.K.K.ʬ.C2369;

/* renamed from: ῲ.ᨨ.ᨨ.㮔  reason: contains not printable characters */
/* compiled from: WindowInsetsCompat */
public class C1754 {

    /* renamed from: ῲ  reason: contains not printable characters */
    public static final C1754 f6068;

    /* renamed from: K  reason: contains not printable characters */
    public final C1762 f6069;

    /* renamed from: ῲ.ᨨ.ᨨ.㮔$ʬ  reason: contains not printable characters */
    /* compiled from: WindowInsetsCompat */
    public static class C1755 extends C1764 {

        /* renamed from: ඓ  reason: contains not printable characters */
        public static Field f6070 = null;

        /* renamed from: ⁱ  reason: contains not printable characters */
        public static Constructor<WindowInsets> f6071 = null;

        /* renamed from: 㴹  reason: contains not printable characters */
        public static boolean f6072 = false;

        /* renamed from: 㿎  reason: contains not printable characters */
        public static boolean f6073 = false;

        /* renamed from: ʬ  reason: contains not printable characters */
        public WindowInsets f6074;

        /* renamed from: 㸾  reason: contains not printable characters */
        public C1716 f6075;

        public C1755() {
            WindowInsets windowInsets;
            if (!f6072) {
                f6070 = WindowInsets.class.getDeclaredField("CONSUMED");
                f6072 = true;
            }
            Field field = f6070;
            if (field != null) {
                try {
                    WindowInsets windowInsets2 = (WindowInsets) field.get(null);
                    if (windowInsets2 != null) {
                        windowInsets = new WindowInsets(windowInsets2);
                        this.f6074 = windowInsets;
                    }
                } catch (ReflectiveOperationException e) {
                    Log.i("WindowInsetsCompat", "Could not get value from WindowInsets.CONSUMED field", e);
                }
            }
            if (!f6073) {
                try {
                    f6071 = WindowInsets.class.getConstructor(Rect.class);
                } catch (ReflectiveOperationException e2) {
                    Log.i("WindowInsetsCompat", "Could not retrieve WindowInsets(Rect) constructor", e2);
                }
                f6073 = true;
            }
            Constructor<WindowInsets> constructor = f6071;
            if (constructor != null) {
                try {
                    windowInsets = constructor.newInstance(new Rect());
                } catch (ReflectiveOperationException e3) {
                    Log.i("WindowInsetsCompat", "Could not invoke WindowInsets(Rect) constructor", e3);
                }
                this.f6074 = windowInsets;
            }
            windowInsets = null;
            this.f6074 = windowInsets;
        }

        @Override // ῲ.ᨨ.ᨨ.C1754.C1764
        /* renamed from: ῲ  reason: contains not printable characters */
        public void m4565(C1716 r1) {
            this.f6075 = r1;
        }

        @Override // ῲ.ᨨ.ᨨ.C1754.C1764
        /* renamed from: 㸾  reason: contains not printable characters */
        public void m4566(C1716 r5) {
            WindowInsets windowInsets = this.f6074;
            if (windowInsets != null) {
                this.f6074 = windowInsets.replaceSystemWindowInsets(r5.f6021, r5.f6020, r5.f6019, r5.f6022);
            }
        }

        @Override // ῲ.ᨨ.ᨨ.C1754.C1764
        /* renamed from: ῲ  reason: contains not printable characters */
        public C1754 m4564() {
            m4602();
            C1754 r0 = C1754.m4554(this.f6074);
            r0.f6069.m4591(this.f6095);
            r0.f6069.m4583(this.f6075);
            return r0;
        }

        public C1755(C1754 r1) {
            this.f6074 = r1.m4559();
        }
    }

    /* renamed from: ῲ.ᨨ.ᨨ.㮔$ඓ  reason: contains not printable characters */
    /* compiled from: WindowInsetsCompat */
    public static class C1756 extends C1765 {
        public C1756() {
        }

        public C1756(C1754 r1) {
            super(r1);
        }
    }

    /* renamed from: ῲ.ᨨ.ᨨ.㮔$ᕣ  reason: contains not printable characters */
    /* compiled from: WindowInsetsCompat */
    public static class C1757 extends C1763 {

        /* renamed from: 㗗  reason: contains not printable characters */
        public static final C1754 f6076 = C1754.m4554(WindowInsets.CONSUMED);

        public C1757(C1754 r1, WindowInsets windowInsets) {
            super(r1, windowInsets);
        }

        @Override // ῲ.ᨨ.ᨨ.C1754.C1760, ῲ.ᨨ.ᨨ.C1754.C1762
        /* renamed from: K  reason: contains not printable characters */
        public final void m4567(View view) {
        }

        public C1757(C1754 r1, C1757 r2) {
            super(r1, r2);
        }
    }

    /* renamed from: ῲ.ᨨ.ᨨ.㮔$ᨨ  reason: contains not printable characters */
    /* compiled from: WindowInsetsCompat */
    public static class C1758 extends C1766 {
        public C1758(C1754 r1, WindowInsets windowInsets) {
            super(r1, windowInsets);
        }

        @Override // ῲ.ᨨ.ᨨ.C1754.C1760, ῲ.ᨨ.ᨨ.C1754.C1762
        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof C1758)) {
                return false;
            }
            C1758 r5 = (C1758) obj;
            if (!Objects.equals(this.f6084, r5.f6084) || !Objects.equals(this.f6086, r5.f6086)) {
                return false;
            }
            return true;
        }

        @Override // ῲ.ᨨ.ᨨ.C1754.C1762
        public int hashCode() {
            return this.f6084.hashCode();
        }

        @Override // ῲ.ᨨ.ᨨ.C1754.C1762
        /* renamed from: K  reason: contains not printable characters */
        public C1754 m4568() {
            return C1754.m4554(this.f6084.consumeDisplayCutout());
        }

        @Override // ῲ.ᨨ.ᨨ.C1754.C1762
        /* renamed from: 㸾  reason: contains not printable characters */
        public C1727 m4569() {
            DisplayCutout displayCutout = this.f6084.getDisplayCutout();
            if (displayCutout == null) {
                return null;
            }
            return new C1727(displayCutout);
        }

        public C1758(C1754 r1, C1758 r2) {
            super(r1, r2);
        }
    }

    /* renamed from: ῲ.ᨨ.ᨨ.㮔$ῲ  reason: contains not printable characters */
    /* compiled from: WindowInsetsCompat */
    public static final class C1759 {

        /* renamed from: K  reason: contains not printable characters */
        public final C1764 f6077;

        public C1759() {
            int i = Build.VERSION.SDK_INT;
            if (i >= 30) {
                this.f6077 = new C1756();
            } else if (i >= 29) {
                this.f6077 = new C1765();
            } else {
                this.f6077 = new C1755();
            }
        }

        /* renamed from: K  reason: contains not printable characters */
        public C1754 m4570() {
            return this.f6077.m4600();
        }
    }

    /* renamed from: ῲ.ᨨ.ᨨ.㮔$K  reason: contains not printable characters */
    /* compiled from: WindowInsetsCompat */
    public static class C1761 {

        /* renamed from: ʬ  reason: contains not printable characters */
        public static Field f6088;

        /* renamed from: ῲ  reason: contains not printable characters */
        public static Field f6089;

        /* renamed from: K  reason: contains not printable characters */
        public static Field f6090;

        /* renamed from: 㸾  reason: contains not printable characters */
        public static boolean f6091 = true;

        static {
            try {
                f6090 = View.class.getDeclaredField("mAttachInfo");
                f6090.setAccessible(true);
                Class<?> cls = Class.forName("android.view.View$AttachInfo");
                f6089 = cls.getDeclaredField("mStableInsets");
                f6089.setAccessible(true);
                f6088 = cls.getDeclaredField("mContentInsets");
                f6088.setAccessible(true);
            } catch (ReflectiveOperationException e) {
                StringBuilder r1 = C1293.m3416("Failed to get visible insets from AttachInfo ");
                r1.append(e.getMessage());
                Log.w("WindowInsetsCompat", r1.toString(), e);
            }
        }
    }

    /* renamed from: ῲ.ᨨ.ᨨ.㮔$㑃  reason: contains not printable characters */
    /* compiled from: WindowInsetsCompat */
    public static class C1762 {

        /* renamed from: ῲ  reason: contains not printable characters */
        public static final C1754 f6092 = new C1759().m4570().f6069.m4586().f6069.m4582().m4560();

        /* renamed from: K  reason: contains not printable characters */
        public final C1754 f6093;

        public C1762(C1754 r1) {
            this.f6093 = r1;
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof C1762)) {
                return false;
            }
            C1762 r5 = (C1762) obj;
            if (m4581() != r5.m4581() || m4594() != r5.m4594() || !C2369.m6287(m4585(), r5.m4585()) || !C2369.m6287(m4592(), r5.m4592()) || !C2369.m6287(m4593(), r5.m4593())) {
                return false;
            }
            return true;
        }

        public int hashCode() {
            return C2369.m6300(Boolean.valueOf(m4581()), Boolean.valueOf(m4594()), m4585(), m4592(), m4593());
        }

        /* renamed from: ʬ  reason: contains not printable characters */
        public C1754 m4579() {
            return this.f6093;
        }

        /* renamed from: ඓ  reason: contains not printable characters */
        public C1716 m4580() {
            return m4585();
        }

        /* renamed from: ᨨ  reason: contains not printable characters */
        public boolean m4581() {
            return false;
        }

        /* renamed from: ῲ  reason: contains not printable characters */
        public C1754 m4582() {
            return this.f6093;
        }

        /* renamed from: ῲ  reason: contains not printable characters */
        public void m4583(C1716 r1) {
        }

        /* renamed from: ῲ  reason: contains not printable characters */
        public void m4584(C1754 r1) {
        }

        /* renamed from: ⁱ  reason: contains not printable characters */
        public C1716 m4585() {
            return C1716.f6018;
        }

        /* renamed from: K  reason: contains not printable characters */
        public C1754 m4586() {
            return this.f6093;
        }

        /* renamed from: K  reason: contains not printable characters */
        public void m4588(View view) {
        }

        /* renamed from: K  reason: contains not printable characters */
        public void m4589(C1716 r1) {
        }

        /* renamed from: K  reason: contains not printable characters */
        public void m4590(C1754 r1) {
        }

        /* renamed from: K  reason: contains not printable characters */
        public void m4591(C1716[] r1) {
        }

        /* renamed from: 㴹  reason: contains not printable characters */
        public C1716 m4592() {
            return C1716.f6018;
        }

        /* renamed from: 㸾  reason: contains not printable characters */
        public C1727 m4593() {
            return null;
        }

        /* renamed from: 㿎  reason: contains not printable characters */
        public boolean m4594() {
            return false;
        }

        /* renamed from: K  reason: contains not printable characters */
        public C1754 m4587(int i, int i2, int i3, int i4) {
            return f6092;
        }
    }

    /* renamed from: ῲ.ᨨ.ᨨ.㮔$㴹  reason: contains not printable characters */
    /* compiled from: WindowInsetsCompat */
    public static class C1764 {

        /* renamed from: ῲ  reason: contains not printable characters */
        public C1716[] f6095;

        /* renamed from: K  reason: contains not printable characters */
        public final C1754 f6096 = new C1754((C1754) null);

        /* renamed from: ʬ  reason: contains not printable characters */
        public void m4598(C1716 r1) {
        }

        /* renamed from: ඓ  reason: contains not printable characters */
        public void m4599(C1716 r1) {
        }

        /* renamed from: ῲ  reason: contains not printable characters */
        public C1754 m4600() {
            throw null;
        }

        /* renamed from: ῲ  reason: contains not printable characters */
        public void m4601(C1716 r1) {
            throw null;
        }

        /* renamed from: K  reason: contains not printable characters */
        public final void m4602() {
            C1716[] r0 = this.f6095;
            if (r0 != null) {
                C1716 r02 = r0[C2369.m6272(1)];
                C1716 r1 = this.f6095[C2369.m6272(2)];
                if (r02 != null && r1 != null) {
                    m4604(C1716.m4394(Math.max(r02.f6021, r1.f6021), Math.max(r02.f6020, r1.f6020), Math.max(r02.f6019, r1.f6019), Math.max(r02.f6022, r1.f6022)));
                } else if (r02 != null) {
                    m4604(r02);
                } else if (r1 != null) {
                    m4604(r1);
                }
                C1716 r03 = this.f6095[C2369.m6272(16)];
                if (r03 != null) {
                    m4598(r03);
                }
                C1716 r04 = this.f6095[C2369.m6272(32)];
                if (r04 != null) {
                    m4603(r04);
                }
                C1716 r05 = this.f6095[C2369.m6272(64)];
                if (r05 != null) {
                    m4599(r05);
                }
            }
        }

        /* renamed from: K  reason: contains not printable characters */
        public void m4603(C1716 r1) {
        }

        /* renamed from: 㸾  reason: contains not printable characters */
        public void m4604(C1716 r1) {
            throw null;
        }
    }

    /* renamed from: ῲ.ᨨ.ᨨ.㮔$㸾  reason: contains not printable characters */
    /* compiled from: WindowInsetsCompat */
    public static class C1765 extends C1764 {

        /* renamed from: ʬ  reason: contains not printable characters */
        public final WindowInsets.Builder f6097;

        public C1765() {
            this.f6097 = new WindowInsets.Builder();
        }

        @Override // ῲ.ᨨ.ᨨ.C1754.C1764
        /* renamed from: ʬ  reason: contains not printable characters */
        public void m4605(C1716 r2) {
            this.f6097.setSystemGestureInsets(r2.m4397());
        }

        @Override // ῲ.ᨨ.ᨨ.C1754.C1764
        /* renamed from: ඓ  reason: contains not printable characters */
        public void m4606(C1716 r2) {
            this.f6097.setTappableElementInsets(r2.m4397());
        }

        @Override // ῲ.ᨨ.ᨨ.C1754.C1764
        /* renamed from: ῲ  reason: contains not printable characters */
        public void m4608(C1716 r2) {
            this.f6097.setStableInsets(r2.m4397());
        }

        @Override // ῲ.ᨨ.ᨨ.C1754.C1764
        /* renamed from: K  reason: contains not printable characters */
        public void m4609(C1716 r2) {
            this.f6097.setMandatorySystemGestureInsets(r2.m4397());
        }

        @Override // ῲ.ᨨ.ᨨ.C1754.C1764
        /* renamed from: 㸾  reason: contains not printable characters */
        public void m4610(C1716 r2) {
            this.f6097.setSystemWindowInsets(r2.m4397());
        }

        @Override // ῲ.ᨨ.ᨨ.C1754.C1764
        /* renamed from: ῲ  reason: contains not printable characters */
        public C1754 m4607() {
            m4602();
            C1754 r0 = C1754.m4554(this.f6097.build());
            r0.f6069.m4591(this.f6095);
            return r0;
        }

        public C1765(C1754 r2) {
            WindowInsets.Builder builder;
            WindowInsets r22 = r2.m4559();
            if (r22 != null) {
                builder = new WindowInsets.Builder(r22);
            } else {
                builder = new WindowInsets.Builder();
            }
            this.f6097 = builder;
        }
    }

    /* renamed from: ῲ.ᨨ.ᨨ.㮔$㿎  reason: contains not printable characters */
    /* compiled from: WindowInsetsCompat */
    public static class C1766 extends C1760 {

        /* renamed from: 䁗  reason: contains not printable characters */
        public C1716 f6098 = null;

        public C1766(C1754 r1, WindowInsets windowInsets) {
            super(r1, windowInsets);
        }

        @Override // ῲ.ᨨ.ᨨ.C1754.C1762
        /* renamed from: ʬ  reason: contains not printable characters */
        public C1754 m4611() {
            return C1754.m4554(this.f6084.consumeSystemWindowInsets());
        }

        @Override // ῲ.ᨨ.ᨨ.C1754.C1762
        /* renamed from: ῲ  reason: contains not printable characters */
        public C1754 m4612() {
            return C1754.m4554(this.f6084.consumeStableInsets());
        }

        @Override // ῲ.ᨨ.ᨨ.C1754.C1762
        /* renamed from: 㴹  reason: contains not printable characters */
        public final C1716 m4614() {
            if (this.f6098 == null) {
                this.f6098 = C1716.m4394(this.f6084.getStableInsetLeft(), this.f6084.getStableInsetTop(), this.f6084.getStableInsetRight(), this.f6084.getStableInsetBottom());
            }
            return this.f6098;
        }

        @Override // ῲ.ᨨ.ᨨ.C1754.C1762
        /* renamed from: 㿎  reason: contains not printable characters */
        public boolean m4615() {
            return this.f6084.isConsumed();
        }

        @Override // ῲ.ᨨ.ᨨ.C1754.C1762
        /* renamed from: ῲ  reason: contains not printable characters */
        public void m4613(C1716 r1) {
            this.f6098 = r1;
        }

        public C1766(C1754 r1, C1766 r2) {
            super(r1, r2);
            this.f6098 = r2.f6098;
        }
    }

    static {
        if (Build.VERSION.SDK_INT >= 30) {
            f6068 = C1757.f6076;
        } else {
            f6068 = C1762.f6092;
        }
    }

    public C1754(WindowInsets windowInsets) {
        int i = Build.VERSION.SDK_INT;
        if (i >= 30) {
            this.f6069 = new C1757(this, windowInsets);
        } else if (i >= 29) {
            this.f6069 = new C1763(this, windowInsets);
        } else if (i >= 28) {
            this.f6069 = new C1758(this, windowInsets);
        } else {
            this.f6069 = new C1766(this, windowInsets);
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public static C1754 m4554(WindowInsets windowInsets) {
        return m4555(windowInsets, null);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof C1754)) {
            return false;
        }
        return C2369.m6287(this.f6069, ((C1754) obj).f6069);
    }

    public int hashCode() {
        C1762 r0 = this.f6069;
        if (r0 == null) {
            return 0;
        }
        return r0.hashCode();
    }

    @Deprecated
    /* renamed from: ʬ  reason: contains not printable characters */
    public int m4556() {
        return this.f6069.m4585().f6021;
    }

    @Deprecated
    /* renamed from: ඓ  reason: contains not printable characters */
    public int m4557() {
        return this.f6069.m4585().f6020;
    }

    @Deprecated
    /* renamed from: ῲ  reason: contains not printable characters */
    public int m4558() {
        return this.f6069.m4585().f6022;
    }

    /* renamed from: ⁱ  reason: contains not printable characters */
    public WindowInsets m4559() {
        C1762 r0 = this.f6069;
        if (r0 instanceof C1760) {
            return ((C1760) r0).f6084;
        }
        return null;
    }

    /* renamed from: 㴹  reason: contains not printable characters */
    public boolean m4562() {
        return this.f6069.m4594();
    }

    @Deprecated
    /* renamed from: 㸾  reason: contains not printable characters */
    public int m4563() {
        return this.f6069.m4585().f6019;
    }

    /* renamed from: ῲ.ᨨ.ᨨ.㮔$㳳  reason: contains not printable characters */
    /* compiled from: WindowInsetsCompat */
    public static class C1763 extends C1758 {

        /* renamed from: Ԕ  reason: contains not printable characters */
        public C1716 f6094 = null;

        public C1763(C1754 r1, WindowInsets windowInsets) {
            super(r1, windowInsets);
        }

        @Override // ῲ.ᨨ.ᨨ.C1754.C1762
        /* renamed from: ඓ  reason: contains not printable characters */
        public C1716 m4595() {
            if (this.f6094 == null) {
                this.f6094 = C1716.m4395(this.f6084.getMandatorySystemGestureInsets());
            }
            return this.f6094;
        }

        @Override // ῲ.ᨨ.ᨨ.C1754.C1766, ῲ.ᨨ.ᨨ.C1754.C1762
        /* renamed from: ῲ  reason: contains not printable characters */
        public void m4596(C1716 r1) {
        }

        @Override // ῲ.ᨨ.ᨨ.C1754.C1760, ῲ.ᨨ.ᨨ.C1754.C1762
        /* renamed from: K  reason: contains not printable characters */
        public C1754 m4597(int i, int i2, int i3, int i4) {
            return C1754.m4554(this.f6084.inset(i, i2, i3, i4));
        }

        public C1763(C1754 r1, C1763 r2) {
            super(r1, r2);
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public static C1754 m4555(WindowInsets windowInsets, View view) {
        if (windowInsets != null) {
            C1754 r0 = new C1754(windowInsets);
            if (view != null && view.isAttachedToWindow()) {
                r0.f6069.m4584(C1729.m4510(view));
                r0.f6069.m4588(view.getRootView());
            }
            return r0;
        }
        throw new NullPointerException();
    }

    /* renamed from: ῲ.ᨨ.ᨨ.㮔$ⁱ  reason: contains not printable characters */
    /* compiled from: WindowInsetsCompat */
    public static class C1760 extends C1762 {

        /* renamed from: ᕣ  reason: contains not printable characters */
        public static Field f6078 = null;

        /* renamed from: ᨨ  reason: contains not printable characters */
        public static Class<?> f6079 = null;

        /* renamed from: ⁱ  reason: contains not printable characters */
        public static boolean f6080 = false;

        /* renamed from: 㑃  reason: contains not printable characters */
        public static Field f6081;

        /* renamed from: 㳳  reason: contains not printable characters */
        public static Class<?> f6082;

        /* renamed from: 㿎  reason: contains not printable characters */
        public static Method f6083;

        /* renamed from: ʬ  reason: contains not printable characters */
        public final WindowInsets f6084;

        /* renamed from: ඓ  reason: contains not printable characters */
        public C1754 f6085;

        /* renamed from: 㴹  reason: contains not printable characters */
        public C1716 f6086;

        /* renamed from: 㸾  reason: contains not printable characters */
        public C1716 f6087 = null;

        public C1760(C1754 r1, WindowInsets windowInsets) {
            super(r1);
            this.f6084 = windowInsets;
        }

        @Override // ῲ.ᨨ.ᨨ.C1754.C1762
        public boolean equals(Object obj) {
            if (!super.equals(obj)) {
                return false;
            }
            return Objects.equals(this.f6086, ((C1760) obj).f6086);
        }

        @Override // ῲ.ᨨ.ᨨ.C1754.C1762
        /* renamed from: ᨨ  reason: contains not printable characters */
        public boolean m4571() {
            return this.f6084.isRound();
        }

        @Override // ῲ.ᨨ.ᨨ.C1754.C1762
        /* renamed from: ῲ  reason: contains not printable characters */
        public void m4572(C1754 r1) {
            this.f6085 = r1;
        }

        @Override // ῲ.ᨨ.ᨨ.C1754.C1762
        /* renamed from: ⁱ  reason: contains not printable characters */
        public final C1716 m4573() {
            if (this.f6087 == null) {
                this.f6087 = C1716.m4394(this.f6084.getSystemWindowInsetLeft(), this.f6084.getSystemWindowInsetTop(), this.f6084.getSystemWindowInsetRight(), this.f6084.getSystemWindowInsetBottom());
            }
            return this.f6087;
        }

        @Override // ῲ.ᨨ.ᨨ.C1754.C1762
        /* renamed from: K  reason: contains not printable characters */
        public C1754 m4574(int i, int i2, int i3, int i4) {
            C1764 r1;
            C1754 r0 = C1754.m4554(this.f6084);
            int i5 = Build.VERSION.SDK_INT;
            if (i5 >= 30) {
                r1 = new C1756(r0);
            } else if (i5 >= 29) {
                r1 = new C1765(r0);
            } else {
                r1 = new C1755(r0);
            }
            r1.m4604(C1754.m4553(m4573(), i, i2, i3, i4));
            r1.m4601(C1754.m4553(m4592(), i, i2, i3, i4));
            return r1.m4600();
        }

        @Override // ῲ.ᨨ.ᨨ.C1754.C1762
        /* renamed from: K  reason: contains not printable characters */
        public void m4578(C1716[] r1) {
        }

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public C1760(C1754 r2, C1760 r3) {
            super(r2);
            WindowInsets windowInsets = new WindowInsets(r3.f6084);
            this.f6084 = windowInsets;
        }

        @Override // ῲ.ᨨ.ᨨ.C1754.C1762
        /* renamed from: K  reason: contains not printable characters */
        public void m4577(C1754 r3) {
            r3.f6069.m4584(this.f6085);
            r3.f6069.m4589(this.f6086);
        }

        @Override // ῲ.ᨨ.ᨨ.C1754.C1762
        /* renamed from: K  reason: contains not printable characters */
        public void m4576(C1716 r1) {
            this.f6086 = r1;
        }

        @Override // ῲ.ᨨ.ᨨ.C1754.C1762
        /* renamed from: K  reason: contains not printable characters */
        public void m4575(View view) {
            if (Build.VERSION.SDK_INT < 30) {
                if (!f6080) {
                    try {
                        f6083 = View.class.getDeclaredMethod("getViewRootImpl", new Class[0]);
                        f6079 = Class.forName("android.view.ViewRootImpl");
                        f6082 = Class.forName("android.view.View$AttachInfo");
                        f6078 = f6082.getDeclaredField("mVisibleInsets");
                        f6081 = f6079.getDeclaredField("mAttachInfo");
                        f6078.setAccessible(true);
                        f6081.setAccessible(true);
                    } catch (ReflectiveOperationException e) {
                        StringBuilder r5 = C1293.m3416("Failed to get visible insets. (Reflection error). ");
                        r5.append(e.getMessage());
                        Log.e("WindowInsetsCompat", r5.toString(), e);
                    }
                    f6080 = true;
                }
                Method method = f6083;
                C1716 r4 = null;
                if (!(method == null || f6082 == null || f6078 == null)) {
                    try {
                        Object invoke = method.invoke(view, new Object[0]);
                        if (invoke == null) {
                            Log.w("WindowInsetsCompat", "Failed to get visible insets. getViewRootImpl() returned null from the provided view. This means that the view is either not attached or the method has been overridden", new NullPointerException());
                        } else {
                            Rect rect = (Rect) f6078.get(f6081.get(invoke));
                            if (rect != null) {
                                r4 = C1716.m4396(rect);
                            }
                        }
                    } catch (ReflectiveOperationException e2) {
                        StringBuilder r0 = C1293.m3416("Failed to get visible insets. (Reflection error). ");
                        r0.append(e2.getMessage());
                        Log.e("WindowInsetsCompat", r0.toString(), e2);
                    }
                }
                if (r4 == null) {
                    r4 = C1716.f6018;
                }
                m4576(r4);
                return;
            }
            throw new UnsupportedOperationException("getVisibleInsets() should not be called on API >= 30. Use WindowInsets.isVisible() instead.");
        }
    }

    public C1754(C1754 r3) {
        if (r3 != null) {
            C1762 r32 = r3.f6069;
            if (Build.VERSION.SDK_INT >= 30 && (r32 instanceof C1757)) {
                this.f6069 = new C1757(this, (C1757) r32);
            } else if (Build.VERSION.SDK_INT >= 29 && (r32 instanceof C1763)) {
                this.f6069 = new C1763(this, (C1763) r32);
            } else if (Build.VERSION.SDK_INT < 28 || !(r32 instanceof C1758)) {
                int i = Build.VERSION.SDK_INT;
                if (r32 instanceof C1766) {
                    this.f6069 = new C1766(this, (C1766) r32);
                } else if (r32 instanceof C1760) {
                    this.f6069 = new C1760(this, (C1760) r32);
                } else {
                    this.f6069 = new C1762(this);
                }
            } else {
                this.f6069 = new C1758(this, (C1758) r32);
            }
            r32.m4590(this);
            return;
        }
        this.f6069 = new C1762(this);
    }

    @Deprecated
    /* renamed from: K  reason: contains not printable characters */
    public C1754 m4560() {
        return this.f6069.m4579();
    }

    /* renamed from: K  reason: contains not printable characters */
    public static C1716 m4553(C1716 r5, int i, int i2, int i3, int i4) {
        int max = Math.max(0, r5.f6021 - i);
        int max2 = Math.max(0, r5.f6020 - i2);
        int max3 = Math.max(0, r5.f6019 - i3);
        int max4 = Math.max(0, r5.f6022 - i4);
        if (max == i && max2 == i2 && max3 == i3 && max4 == i4) {
            return r5;
        }
        return C1716.m4394(max, max2, max3, max4);
    }

    @Deprecated
    /* renamed from: K  reason: contains not printable characters */
    public C1754 m4561(int i, int i2, int i3, int i4) {
        C1764 r0;
        int i5 = Build.VERSION.SDK_INT;
        if (i5 >= 30) {
            r0 = new C1756(this);
        } else if (i5 >= 29) {
            r0 = new C1765(this);
        } else {
            r0 = new C1755(this);
        }
        r0.m4604(C1716.m4394(i, i2, i3, i4));
        return r0.m4600();
    }
}
