package defpackage;

import android.os.Bundle;
import j$.util.Objects;
import java.util.EnumMap;

/* JADX INFO: renamed from: ˈᵨ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C1102 {

    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public static final C1102 f4693 = new C1102((Boolean) null, 100, (Boolean) null, (String) null);

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final String f4694;

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public final Boolean f4695;

    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public final EnumMap f4696;

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

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public final String f4698;

    public C1102(Boolean bool, int i, Boolean bool2, String str) {
        EnumMap enumMap = new EnumMap(EnumC0174.class);
        this.f4696 = enumMap;
        enumMap.put(EnumC0174.f1600, bool == null ? EnumC3695.f14082 : bool.booleanValue() ? EnumC3695.f14084 : EnumC3695.f14083);
        this.f4697 = i;
        this.f4694 = m3562();
        this.f4695 = bool2;
        this.f4698 = str;
    }

    public C1102(EnumMap enumMap, int i, Boolean bool, String str) {
        EnumMap enumMap2 = new EnumMap(EnumC0174.class);
        this.f4696 = enumMap2;
        enumMap2.putAll(enumMap);
        this.f4697 = i;
        this.f4694 = m3562();
        this.f4695 = bool;
        this.f4698 = str;
    }

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public static C1102 m3559(String str) {
        if (str == null || str.length() <= 0) {
            return f4693;
        }
        String[] strArrSplit = str.split(":");
        int i = Integer.parseInt(strArrSplit[0]);
        EnumMap enumMap = new EnumMap(EnumC0174.class);
        EnumC0174[] enumC0174Arr = EnumC1791.DMA.f7181;
        int length = enumC0174Arr.length;
        int i2 = 1;
        int i3 = 0;
        while (i3 < length) {
            enumMap.put(enumC0174Arr[i3], C0875.m3066(strArrSplit[i2].charAt(0)));
            i3++;
            i2++;
        }
        return new C1102(enumMap, i, (Boolean) null, (String) null);
    }

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public static C1102 m3560(int i, Bundle bundle) {
        if (bundle == null) {
            return new C1102((Boolean) null, i, (Boolean) null, (String) null);
        }
        EnumMap enumMap = new EnumMap(EnumC0174.class);
        for (EnumC0174 enumC0174 : EnumC1791.DMA.f7181) {
            enumMap.put(enumC0174, C0875.m3069(bundle.getString(enumC0174.f1603)));
        }
        return new C1102(enumMap, i, bundle.containsKey("is_dma_region") ? Boolean.valueOf(bundle.getString("is_dma_region")) : null, bundle.getString("cps_display_str"));
    }

    public final boolean equals(Object obj) {
        if (!(obj instanceof C1102)) {
            return false;
        }
        C1102 c1102 = (C1102) obj;
        if (this.f4694.equalsIgnoreCase(c1102.f4694) && Objects.equals(this.f4695, c1102.f4695)) {
            return Objects.equals(this.f4698, c1102.f4698);
        }
        return false;
    }

    public final int hashCode() {
        Boolean bool = this.f4695;
        int i = bool == null ? 3 : true != bool.booleanValue() ? 13 : 7;
        String str = this.f4698;
        return ((str == null ? 17 : str.hashCode()) * 137) + this.f4694.hashCode() + (i * 29);
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder("source=");
        sb.append(C0875.m3068(this.f4697));
        for (EnumC0174 enumC0174 : EnumC1791.DMA.f7181) {
            sb.append(",");
            sb.append(enumC0174.f1603);
            sb.append("=");
            EnumC3695 enumC3695 = (EnumC3695) this.f4696.get(enumC0174);
            if (enumC3695 == null) {
                sb.append("uninitialized");
            } else {
                int iOrdinal = enumC3695.ordinal();
                if (iOrdinal == 0) {
                    sb.append("uninitialized");
                } else if (iOrdinal == 1) {
                    sb.append("eu_consent_policy");
                } else if (iOrdinal == 2) {
                    sb.append("denied");
                } else if (iOrdinal == 3) {
                    sb.append("granted");
                }
            }
        }
        Boolean bool = this.f4695;
        if (bool != null) {
            sb.append(",isDmaRegion=");
            sb.append(bool);
        }
        String str = this.f4698;
        if (str != null) {
            sb.append(",cpsDisplayStr=");
            sb.append(str);
        }
        return sb.toString();
    }

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final EnumC3695 m3561() {
        EnumC3695 enumC3695 = (EnumC3695) this.f4696.get(EnumC0174.f1600);
        return enumC3695 == null ? EnumC3695.f14082 : enumC3695;
    }

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public final String m3562() {
        StringBuilder sb = new StringBuilder();
        sb.append(this.f4697);
        for (EnumC0174 enumC0174 : EnumC1791.DMA.f7181) {
            sb.append(":");
            sb.append(C0875.m3064((EnumC3695) this.f4696.get(enumC0174)));
        }
        return sb.toString();
    }
}
