//
// tls1_save_sigalgs from 0xfd78a4 to 0xfd7964 (192 bytes)
//
// 3 xrefs:
// > tls_process_certificate_request @ 0xfc81ec
// > sub_FD7964 @ 0xfd8188
// > ??> @ 0xb1628
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:15:32 +0000
//
__int64 __fastcall tls1_save_sigalgs(_QWORD *a1, const void *a2, int a3)
{
size_t v4; // x20
__int64 v6; // x24
__int64 v7; // x0
__int64 v8; // x1
void *v9; // x0
if ( (*(_DWORD *)(*(_QWORD *)(a1[1] + 192LL) + 104LL) & 2) == 0 )
return 1;
if ( a1[41] )
{
v4 = a3;
CRYPTO_free(*(_QWORD *)(a1[18] + 704LL), "ssl/t1_lib.c", 3578);
v6 = a1[18];
v7 = CRYPTO_malloc(v4, "ssl/t1_lib.c", 3579);
v8 = a1[18];
*(_QWORD *)(v6 + 704) = v7;
v9 = *(void **)(v8 + 704);
if ( v9 )
{
*(_QWORD *)(v8 + 712) = v4;
memcpy(v9, a2, v4);
return 1;
}
}
return 0;
}