package defpackage;

import androidx.media3.container.NalUnitUtil;
import androidx.media3.exoplayer.upstream.CmcdData;
import java.util.LinkedHashMap;
import kotlin.Metadata;

/* JADX INFO: loaded from: classes3.dex */
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\b\u0086\b\u0018\u00002\u00020\u0001:\u0001\u0002¨\u0006\u0003"}, d2 = {"La21;", "", CmcdData.OBJECT_TYPE_AUDIO_ONLY, "ktor-websockets"}, k = 1, mv = {2, 0, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
public final /* data */ class a21 {
    public final short a;
    public final String b;

    /* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
    /* JADX WARN: Unknown enum class pattern. Please report as an issue! */
    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0002\b\u0002\b\u0086\u0081\u0002\u0018\u00002\b\u0012\u0004\u0012\u00020\u00000\u0001:\u0001\u0002¨\u0006\u0003"}, d2 = {"La21$a;", "", CmcdData.OBJECT_TYPE_AUDIO_ONLY, "ktor-websockets"}, k = 1, mv = {2, 0, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
    @vx8
    public static final class a {
        public static final C0000a b;
        public static final LinkedHashMap c;
        public static final a d;
        public static final a e;
        public static final a f;
        public static final a i;
        public static final /* synthetic */ a[] j;
        public static final /* synthetic */ hn2 k;
        public final short a;

        /* JADX INFO: renamed from: a21$a$a, reason: collision with other inner class name */
        @Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010$\n\u0002\u0010\n\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0086\u0003\u0018\u00002\u00020\u0001R \u0010\u0005\u001a\u000e\u0012\u0004\u0012\u00020\u0003\u0012\u0004\u0012\u00020\u00040\u00028\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0005\u0010\u0006¨\u0006\u0007"}, d2 = {"La21$a$a;", "", "", "", "La21$a;", "byCodeMap", "Ljava/util/Map;", "ktor-websockets"}, k = 1, mv = {2, 0, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
        public static final class C0000a {
        }

        /* JADX WARN: Multi-variable type inference failed */
        static {
            a aVar = new a("NORMAL", 0, (short) 1000);
            d = aVar;
            a aVar2 = new a("GOING_AWAY", 1, (short) 1001);
            a aVar3 = new a("PROTOCOL_ERROR", 2, (short) 1002);
            a aVar4 = new a("CANNOT_ACCEPT", 3, (short) 1003);
            a aVar5 = new a("CLOSED_ABNORMALLY", 4, (short) 1006);
            e = aVar5;
            a aVar6 = new a("NOT_CONSISTENT", 5, (short) 1007);
            a aVar7 = new a("VIOLATED_POLICY", 6, (short) 1008);
            a aVar8 = new a("TOO_BIG", 7, (short) 1009);
            f = aVar8;
            a aVar9 = new a("NO_EXTENSION", 8, (short) 1010);
            a aVar10 = new a("INTERNAL_ERROR", 9, (short) 1011);
            i = aVar10;
            a[] aVarArr = {aVar, aVar2, aVar3, aVar4, aVar5, aVar6, aVar7, aVar8, aVar9, aVar10, new a("SERVICE_RESTART", 10, (short) 1012), new a("TRY_AGAIN_LATER", 11, (short) 1013)};
            j = aVarArr;
            hn2 hn2VarA = jn2.a(aVarArr);
            k = hn2VarA;
            b = new C0000a();
            int iH = wo5.h(y41.p(hn2VarA, 10));
            LinkedHashMap linkedHashMap = new LinkedHashMap(iH < 16 ? 16 : iH);
            for (Object obj : (cs) hn2VarA) {
                linkedHashMap.put(Short.valueOf(((a) obj).a), obj);
            }
            c = linkedHashMap;
        }

        public a(String str, int i2, short s) {
            this.a = s;
        }

        public static a valueOf(String str) {
            return (a) Enum.valueOf(a.class, str);
        }

        public static a[] values() {
            return (a[]) j.clone();
        }
    }

    public a21(short s, String str) {
        cr4.g(str, "message");
        this.a = s;
        this.b = str;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof a21)) {
            return false;
        }
        a21 a21Var = (a21) obj;
        return this.a == a21Var.a && cr4.b(this.b, a21Var.b);
    }

    public final int hashCode() {
        return this.b.hashCode() + (Short.hashCode(this.a) * 31);
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder("CloseReason(reason=");
        a.b.getClass();
        LinkedHashMap linkedHashMap = a.c;
        short s = this.a;
        Object objValueOf = (a) linkedHashMap.get(Short.valueOf(s));
        if (objValueOf == null) {
            objValueOf = Short.valueOf(s);
        }
        sb.append(objValueOf);
        sb.append(", message=");
        return vw2.o(sb, this.b, ')');
    }

    /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
    public a21(a aVar, String str) {
        this(aVar.a, str);
        cr4.g(str, "message");
    }
}
