package o;

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

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.zo0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C3130zo0 {
    public static final C3130zo0 f = new C3130zo0((Boolean) null, 100, (Boolean) null, (String) null);
    public final int a;
    public final String b;
    public final Boolean c;
    public final String d;
    public final EnumMap e;

    public C3130zo0(Boolean bool, int i, Boolean bool2, String str) {
        EnumMap enumMap = new EnumMap(EnumC2094os0.class);
        this.e = enumMap;
        enumMap.put((EnumMap) EnumC2094os0.f667o, (EnumC2094os0) (bool == null ? EnumC1809ls0.m : bool.booleanValue() ? EnumC1809ls0.p : EnumC1809ls0.f627o));
        this.a = i;
        this.b = d();
        this.c = bool2;
        this.d = str;
    }

    public static C3130zo0 b(String str) throws NumberFormatException {
        if (str == null || str.length() <= 0) {
            return f;
        }
        String[] strArrSplit = str.split(":");
        int i = Integer.parseInt(strArrSplit[0]);
        EnumMap enumMap = new EnumMap(EnumC2094os0.class);
        EnumC2094os0[] enumC2094os0Arr = EnumC1999ns0.DMA.l;
        int length = enumC2094os0Arr.length;
        int i2 = 1;
        int i3 = 0;
        while (i3 < length) {
            enumMap.put((EnumMap) enumC2094os0Arr[i3], (EnumC2094os0) C2284qs0.e(strArrSplit[i2].charAt(0)));
            i3++;
            i2++;
        }
        return new C3130zo0(enumMap, i, (Boolean) null, (String) null);
    }

    public static C3130zo0 c(int i, Bundle bundle) {
        if (bundle == null) {
            return new C3130zo0((Boolean) null, i, (Boolean) null, (String) null);
        }
        EnumMap enumMap = new EnumMap(EnumC2094os0.class);
        for (EnumC2094os0 enumC2094os0 : EnumC1999ns0.DMA.l) {
            enumMap.put((EnumMap) enumC2094os0, (EnumC2094os0) C2284qs0.d(bundle.getString(enumC2094os0.l)));
        }
        return new C3130zo0(enumMap, i, bundle.containsKey("is_dma_region") ? Boolean.valueOf(bundle.getString("is_dma_region")) : null, bundle.getString("cps_display_str"));
    }

    public final EnumC1809ls0 a() {
        EnumC1809ls0 enumC1809ls0 = (EnumC1809ls0) this.e.get(EnumC2094os0.f667o);
        return enumC1809ls0 == null ? EnumC1809ls0.m : enumC1809ls0;
    }

    public final String d() {
        StringBuilder sb = new StringBuilder();
        sb.append(this.a);
        for (EnumC2094os0 enumC2094os0 : EnumC1999ns0.DMA.l) {
            sb.append(":");
            sb.append(C2284qs0.h((EnumC1809ls0) this.e.get(enumC2094os0)));
        }
        return sb.toString();
    }

    public final boolean equals(Object obj) {
        if (!(obj instanceof C3130zo0)) {
            return false;
        }
        C3130zo0 c3130zo0 = (C3130zo0) obj;
        if (this.b.equalsIgnoreCase(c3130zo0.b) && Objects.equals(this.c, c3130zo0.c)) {
            return Objects.equals(this.d, c3130zo0.d);
        }
        return false;
    }

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

    public final String toString() {
        StringBuilder sb = new StringBuilder("source=");
        sb.append(C2284qs0.a(this.a));
        for (EnumC2094os0 enumC2094os0 : EnumC1999ns0.DMA.l) {
            sb.append(",");
            sb.append(enumC2094os0.l);
            sb.append("=");
            EnumC1809ls0 enumC1809ls0 = (EnumC1809ls0) this.e.get(enumC2094os0);
            if (enumC1809ls0 == null) {
                sb.append("uninitialized");
            } else {
                int iOrdinal = enumC1809ls0.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.c;
        if (bool != null) {
            sb.append(",isDmaRegion=");
            sb.append(bool);
        }
        String str = this.d;
        if (str != null) {
            sb.append(",cpsDisplayStr=");
            sb.append(str);
        }
        return sb.toString();
    }

    public C3130zo0(EnumMap enumMap, int i, Boolean bool, String str) {
        EnumMap enumMap2 = new EnumMap(EnumC2094os0.class);
        this.e = enumMap2;
        enumMap2.putAll(enumMap);
        this.a = i;
        this.b = d();
        this.c = bool;
        this.d = str;
    }
}
