//
// tls12_get_psigalgs from 0xd56044 to 0xd56100 (188 bytes)
//
// 6 xrefs:
// > tls_construct_certificate_request @ 0xd52788
// > tls12_check_peer_sigalg @ 0xd57ed4
// > ssl_set_sig_mask @ 0xd581b4
// > ssl_add_clienthello_tlsext @ 0xd58be0
// > tls1_process_sigalgs @ 0xd5a3f0
// > ??> @ 0x4ea08
//
// 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_psigalgs(__int64 a1, _QWORD *a2)
{
__int64 v2; // x3
int v3; // w2
__int64 v4; // x2
__int64 v6; // x2
v2 = *(_QWORD *)(a1 + 328);
v3 = *(_DWORD *)(v2 + 28) & 0x30000;
switch ( v3 )
{
case 131072:
*a2 = (char *)&dword_F62ED8[106] + 2;
return 2;
case 196608:
*a2 = &dword_F62ED8[106];
return 4;
case 65536:
*a2 = &dword_F62ED8[106];
return 2;
default:
if ( *(_DWORD *)(a1 + 56) && (v4 = *(_QWORD *)(v2 + 344)) != 0 )
{
*a2 = v4;
return *(_QWORD *)(*(_QWORD *)(a1 + 328) + 352LL);
}
else
{
v6 = *(_QWORD *)(v2 + 328);
if ( v6 )
{
*a2 = v6;
return *(_QWORD *)(*(_QWORD *)(a1 + 328) + 336LL);
}
else
{
*a2 = &dword_F62ED8[110];
return 36;
}
}
}
}