//
// tls1_save_sigalgs from 0x7b2390 to 0x7b242c (156 bytes)
//
// 3 xrefs:
// > tls_process_certificate_request @ 0x7a199c
// > sub_7B2438 @ 0x7b2c9c
// > ??> @ 0x5d04c
//
// 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
//
int __fastcall tls1_save_sigalgs(_DWORD *a1, const void *a2, size_t a3)
{
int v6; // r6
int v7; // r0
int v8; // r3
void *v9; // r0
if ( (*(_DWORD *)(*(_DWORD *)(a1[1] + 100) + 52) & 2) == 0 )
return 1;
if ( !a1[50] )
return 0;
CRYPTO_free(*(_DWORD *)(a1[26] + 616), "ssl/t1_lib.c", 3578);
v6 = a1[26];
v7 = CRYPTO_malloc(a3, "ssl/t1_lib.c", 3579);
v8 = a1[26];
*(_DWORD *)(v6 + 616) = v7;
v9 = *(void **)(v8 + 616);
if ( !v9 )
return 0;
*(_DWORD *)(v8 + 620) = a3;
memcpy(v9, a2, a3);
return 1;
}