package X6FRs_4.JZJr_16;

import android.view.View;
/* compiled from: VisibilityPropagation.java */
/* loaded from: classes.dex */
public abstract class B9ET3_39 extends ZzDuCHW_20 {
    public static final String[] KQgRr5e_0 = {"android:visibilityPropagation:visibility", "android:visibilityPropagation:center"};

    @Override // X6FRs_4.JZJr_16.ZzDuCHW_20
    public void KQgRr5e_0(H5YG8fq_22 h5YG8fq_22) {
        View view = h5YG8fq_22.KQgRr5e_0;
        Integer num = (Integer) h5YG8fq_22.f566KQgRr5e_0.get("android:visibility:visibility");
        if (num == null) {
            num = Integer.valueOf(view.getVisibility());
        }
        h5YG8fq_22.f566KQgRr5e_0.put("android:visibilityPropagation:visibility", num);
        view.getLocationOnScreen(r2);
        int[] iArr = {iArr[0] + Math.round(view.getTranslationX())};
        iArr[0] = iArr[0] + (view.getWidth() / 2);
        iArr[1] = iArr[1] + Math.round(view.getTranslationY());
        iArr[1] = iArr[1] + (view.getHeight() / 2);
        h5YG8fq_22.f566KQgRr5e_0.put("android:visibilityPropagation:center", iArr);
    }

    public int PGPF6hQ_2(H5YG8fq_22 h5YG8fq_22) {
        return KQgRr5e_0(h5YG8fq_22, 1);
    }

    public int QxJ9d_1(H5YG8fq_22 h5YG8fq_22) {
        return KQgRr5e_0(h5YG8fq_22, 0);
    }

    @Override // X6FRs_4.JZJr_16.ZzDuCHW_20
    public String[] KQgRr5e_0() {
        return KQgRr5e_0;
    }

    @Override // X6FRs_4.JZJr_16.ZzDuCHW_20
    public int KQgRr5e_0(H5YG8fq_22 h5YG8fq_22) {
        Integer num;
        if (h5YG8fq_22 == null || (num = (Integer) h5YG8fq_22.f566KQgRr5e_0.get("android:visibilityPropagation:visibility")) == null) {
            return 8;
        }
        return num.intValue();
    }

    public static int KQgRr5e_0(H5YG8fq_22 h5YG8fq_22, int i) {
        int[] iArr;
        if (h5YG8fq_22 == null || (iArr = (int[]) h5YG8fq_22.f566KQgRr5e_0.get("android:visibilityPropagation:center")) == null) {
            return -1;
        }
        return iArr[i];
    }
}
