//
// tls_construct_client_certificate from 0xd4b150 to 0xd4b1d8 (136 bytes)
//
// 2 xrefs:
// > ossl_statem_client_construct_message @ 0xd4c3fc
// > ??> @ 0xb9b80
//
// 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 tls_construct_client_certificate(__int64 a1)
{
__int64 v2; // x1
__int64 v3; // x20
__int64 result; // x0
if ( *(_DWORD *)(*(_QWORD *)(a1 + 144) + 568LL) == 2 )
v2 = 0;
else
v2 = **(_QWORD **)(a1 + 328);
v3 = ssl3_output_cert_chain(a1, v2);
result = 1;
if ( !v3 )
{
ERR_put_error(20, 355, 68, "ssl/statem/statem_clnt.c", 2786);
ssl3_send_alert(a1, 2, 0x50u);
ossl_statem_set_error(a1);
return 0;
}
return result;
}