package o; import java.io.ByteArrayInputStream; import org.bouncycastle.crypto.tls.CipherSuite; /* loaded from: classes.dex */ public final class YXT { public static final YXT c = new YXT(); private YXT() { } /* JADX WARN: Failed to find 'out' block for switch in B:4:0x0019. Please report as an issue. */ public static int e(byte[] bArr) { int i; C14957gcv.e(bArr, ""); try { switch (new hvV(new ByteArrayInputStream(bArr)).a("Orientation", 1)) { case 3: case 4: i = CipherSuite.TLS_DHE_PSK_WITH_NULL_SHA256; return i; case 5: case 8: i = 270; return i; case 6: case 7: i = 90; return i; default: return 0; } } catch (Exception unused) { return 0; } } }