//
// tls12_get_psigalgs from 0x7aea18 to 0x7aeae4 (204 bytes)
//
// 6 xrefs:
// > tls_construct_certificate_request @ 0x7aaec0
// > tls12_check_peer_sigalg @ 0x7b09a0
// > ssl_set_sig_mask @ 0x7b0cc8
// > ssl_add_clienthello_tlsext @ 0x7b192c
// > tls1_process_sigalgs @ 0x7b31cc
// > ??> @ 0x5d5fc
//
// 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
//
char *__fastcall tls12_get_psigalgs(int a1, _DWORD *a2)
{
_DWORD *v2; // r2
int v3; // r3
int v4; // r3
int v6; // r3
v2 = *(_DWORD **)(a1 + 200);
v3 = v2[4] & 0x30000;
switch ( v3 )
{
case 131072:
*a2 = &unk_A0CCE6;
return (char *)&dword_0 + 2;
case 196608:
*a2 = &unk_A0CCE4;
return byte_4;
case 65536:
*a2 = &unk_A0CCE4;
return (_BYTE *)(&dword_0 + 2);
default:
if ( *(_DWORD *)(a1 + 28) && (v4 = v2[44]) != 0 )
{
*a2 = v4;
return *(char **)(*(_DWORD *)(a1 + 200) + 180);
}
else
{
v6 = v2[42];
if ( v6 )
{
*a2 = v6;
return *(char **)(*(_DWORD *)(a1 + 200) + 172);
}
else
{
*a2 = &unk_A0CCE8;
return (char *)&dword_24;
}
}
}
}