package io.netty.handler.codec.socks;

/* JADX INFO: loaded from: classes.dex */
public enum SocksSubnegotiationVersion {
    AUTH_PASSWORD((byte) 1),
    UNKNOWN((byte) -1);


    /* JADX INFO: renamed from: b, reason: collision with root package name */
    private final byte f5810b;

    SocksSubnegotiationVersion(byte b2) {
        this.f5810b = b2;
    }

    @Deprecated
    public static SocksSubnegotiationVersion fromByte(byte b2) {
        return valueOf(b2);
    }

    public static SocksSubnegotiationVersion valueOf(byte b2) {
        SocksSubnegotiationVersion[] socksSubnegotiationVersionArrValues = values();
        for (int i2 = 0; i2 < 2; i2++) {
            SocksSubnegotiationVersion socksSubnegotiationVersion = socksSubnegotiationVersionArrValues[i2];
            if (socksSubnegotiationVersion.f5810b == b2) {
                return socksSubnegotiationVersion;
            }
        }
        return UNKNOWN;
    }

    public byte byteValue() {
        return this.f5810b;
    }
}
