//
// tls12_get_sigid from 0xd57b58 to 0xd57c1c (196 bytes)
//
// 3 xrefs:
// > tls12_get_sigandhash @ 0xd57cb8
// > tls12_check_peer_sigalg @ 0xd57e58
// > ??> @ 0x9e940
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall tls12_get_sigid(__int64 a1)
{
int v1; // w0
bool v2; // zf
__int64 result; // x0
v1 = EVP_PKEY_id(a1);
switch ( v1 )
{
case 6:
return 1;
case 116:
return 2;
case 408:
return 3;
case 811:
return 237;
case 979:
return 238;
}
v2 = v1 == 980;
result = 0xFFFFFFFFLL;
if ( v2 )
return 239;
return result;
}