package o;

import android.animation.ObjectAnimator;
import android.view.View;
import com.google.android.gms.common.R;
import java.util.HashMap;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Ax, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0023Ax extends AbstractC3019yg0 {
    public static final String[] N = {"android:visibility:visibility", "android:visibility:parent"};
    public final int M;

    public C0023Ax(int i) {
        this();
        this.M = i;
    }

    public static void K(Ng0 ng0) {
        View view = ng0.b;
        int visibility = view.getVisibility();
        HashMap map = ng0.a;
        map.put("android:visibility:visibility", Integer.valueOf(visibility));
        map.put("android:visibility:parent", view.getParent());
        int[] iArr = new int[2];
        view.getLocationOnScreen(iArr);
        map.put("android:visibility:screenLocation", iArr);
    }

    public static float M(Ng0 ng0, float f) {
        Float f2;
        return (ng0 == null || (f2 = (Float) ng0.a.get("android:fade:transitionAlpha")) == null) ? f : f2.floatValue();
    }

    /* JADX WARN: Removed duplicated region for block: B:12:0x0052  */
    /* JADX WARN: Removed duplicated region for block: B:7:0x002f  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static o.Ek0 N(o.Ng0 r8, o.Ng0 r9) {
        /*
            o.Ek0 r0 = new o.Ek0
            r0.<init>()
            r1 = 0
            r0.a = r1
            r0.b = r1
            r2 = 0
            r3 = -1
            java.lang.String r4 = "android:visibility:parent"
            java.lang.String r5 = "android:visibility:visibility"
            if (r8 == 0) goto L2f
            java.util.HashMap r6 = r8.a
            boolean r7 = r6.containsKey(r5)
            if (r7 == 0) goto L2f
            java.lang.Object r7 = r6.get(r5)
            java.lang.Integer r7 = (java.lang.Integer) r7
            int r7 = r7.intValue()
            r0.c = r7
            java.lang.Object r6 = r6.get(r4)
            android.view.ViewGroup r6 = (android.view.ViewGroup) r6
            r0.e = r6
            goto L33
        L2f:
            r0.c = r3
            r0.e = r2
        L33:
            if (r9 == 0) goto L52
            java.util.HashMap r6 = r9.a
            boolean r7 = r6.containsKey(r5)
            if (r7 == 0) goto L52
            java.lang.Object r2 = r6.get(r5)
            java.lang.Integer r2 = (java.lang.Integer) r2
            int r2 = r2.intValue()
            r0.d = r2
            java.lang.Object r2 = r6.get(r4)
            android.view.ViewGroup r2 = (android.view.ViewGroup) r2
            r0.f = r2
            goto L56
        L52:
            r0.d = r3
            r0.f = r2
        L56:
            r2 = 1
            if (r8 == 0) goto L8a
            if (r9 == 0) goto L8a
            int r8 = r0.c
            int r9 = r0.d
            if (r8 != r9) goto L68
            android.view.ViewGroup r3 = r0.e
            android.view.ViewGroup r4 = r0.f
            if (r3 != r4) goto L68
            goto L9f
        L68:
            if (r8 == r9) goto L78
            if (r8 != 0) goto L71
            r0.b = r1
            r0.a = r2
            return r0
        L71:
            if (r9 != 0) goto L9f
            r0.b = r2
            r0.a = r2
            return r0
        L78:
            android.view.ViewGroup r8 = r0.f
            if (r8 != 0) goto L81
            r0.b = r1
            r0.a = r2
            return r0
        L81:
            android.view.ViewGroup r8 = r0.e
            if (r8 != 0) goto L9f
            r0.b = r2
            r0.a = r2
            return r0
        L8a:
            if (r8 != 0) goto L95
            int r8 = r0.d
            if (r8 != 0) goto L95
            r0.b = r2
            r0.a = r2
            return r0
        L95:
            if (r9 != 0) goto L9f
            int r8 = r0.c
            if (r8 != 0) goto L9f
            r0.b = r1
            r0.a = r2
        L9f:
            return r0
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C0023Ax.N(o.Ng0, o.Ng0):o.Ek0");
    }

    public final ObjectAnimator L(View view, float f, float f2) {
        if (f == f2) {
            return null;
        }
        AbstractC2362rk0.a.v(view, f);
        ObjectAnimator objectAnimatorOfFloat = ObjectAnimator.ofFloat(view, AbstractC2362rk0.b, f2);
        C3146zx c3146zx = new C3146zx(view);
        objectAnimatorOfFloat.addListener(c3146zx);
        p().a(c3146zx);
        return objectAnimatorOfFloat;
    }

    @Override // o.AbstractC3019yg0
    public final void e(Ng0 ng0) {
        K(ng0);
    }

    @Override // o.AbstractC3019yg0
    public final void h(Ng0 ng0) {
        K(ng0);
        View view = ng0.b;
        Float fValueOf = (Float) view.getTag(R.id.transition_pause_alpha);
        if (fValueOf == null) {
            fValueOf = view.getVisibility() == 0 ? Float.valueOf(AbstractC2362rk0.a.m(view)) : Float.valueOf(0.0f);
        }
        ng0.a.put("android:fade:transitionAlpha", fValueOf);
    }

    /* JADX WARN: Code restructure failed: missing block: B:19:0x0048, code lost:
    
        if (N(o(r3, false), s(r3, false)).a != false) goto L9;
     */
    /* JADX WARN: Removed duplicated region for block: B:49:0x009e  */
    /* JADX WARN: Removed duplicated region for block: B:78:0x01e0  */
    /* JADX WARN: Removed duplicated region for block: B:86:0x0214  */
    @Override // o.AbstractC3019yg0
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final android.animation.Animator l(android.view.ViewGroup r24, o.Ng0 r25, o.Ng0 r26) throws java.lang.IllegalAccessException, java.lang.NoSuchFieldException, java.lang.SecurityException, java.lang.IllegalArgumentException {
        /*
            Method dump skipped, instructions count: 728
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C0023Ax.l(android.view.ViewGroup, o.Ng0, o.Ng0):android.animation.Animator");
    }

    @Override // o.AbstractC3019yg0
    public final String[] r() {
        return N;
    }

    @Override // o.AbstractC3019yg0
    public final boolean t(Ng0 ng0, Ng0 ng02) {
        if (ng0 == null && ng02 == null) {
            return false;
        }
        if (ng0 != null && ng02 != null && ng02.a.containsKey("android:visibility:visibility") != ng0.a.containsKey("android:visibility:visibility")) {
            return false;
        }
        Ek0 ek0N = N(ng0, ng02);
        if (ek0N.a) {
            return ek0N.c == 0 || ek0N.d == 0;
        }
        return false;
    }

    public C0023Ax() {
        this.M = 3;
    }
}
