//
// tls_construct_cert_status from 0xd543b4 to 0xd54480 (204 bytes)
//
// 2 xrefs:
// > ossl_statem_server_construct_message @ 0xd544e4
// > ??> @ 0x925f8
//
// 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_cert_status(__int64 a1)
{
int v2; // w20
_BYTE *v3; // x1
v2 = *(_DWORD *)(a1 + 640) + 4;
if ( BUF_MEM_grow(
*(_QWORD *)(a1 + 120),
v2 + (unsigned __int64)*(unsigned int *)(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 192LL) + 108LL)) )
{
v3 = (_BYTE *)(*(_QWORD *)(*(_QWORD *)(a1 + 120) + 8LL)
+ *(unsigned int *)(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 192LL) + 108LL));
*v3 = *(_DWORD *)(a1 + 564);
v3[1] = *(_WORD *)(a1 + 642);
v3[2] = BYTE1(*(_DWORD *)(a1 + 640));
v3[3] = *(_DWORD *)(a1 + 640);
memcpy(v3 + 4, *(const void **)(a1 + 632), *(int *)(a1 + 640));
if ( (*(unsigned int (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 192LL) + 112LL))(
a1,
22,
v2) )
{
return 1;
}
}
ossl_statem_set_error(a1);
return 0;
}