package b1;

import android.util.Log;
import androidx.media3.common.C;
import java.util.Locale;
import kotlin.jvm.internal.o;

/* JADX INFO: renamed from: b1.a, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1186a {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final Locale f13226a;

    public C1186a(Locale locale) {
        this.f13226a = locale;
    }

    public final boolean equals(Object obj) {
        if (obj == null || !(obj instanceof C1186a)) {
            return false;
        }
        if (this == obj) {
            return true;
        }
        return o.c(this.f13226a.toLanguageTag(), ((C1186a) obj).f13226a.toLanguageTag());
    }

    public final int hashCode() {
        return this.f13226a.toLanguageTag().hashCode();
    }

    public final String toString() {
        return this.f13226a.toLanguageTag();
    }

    /* JADX WARN: Illegal instructions before constructor call */
    public C1186a(String str) {
        AbstractC1188c.f13230a.getClass();
        Locale localeForLanguageTag = Locale.forLanguageTag(str);
        if (o.c(localeForLanguageTag.toLanguageTag(), C.LANGUAGE_UNDETERMINED)) {
            Log.e("Locale", "The language tag " + str + " is not well-formed. Locale is resolved to Undetermined. Note that underscore '_' is not a valid subtag delimiter and must be replaced with '-'.");
        }
        this(localeForLanguageTag);
    }
}
