//
// tls_construct_cert_status from 0xfd2708 to 0xfd27d4 (204 bytes)
//
// 2 xrefs:
// > ossl_statem_server_construct_message @ 0xfd2838
// > ??> @ 0xc1810
//
// 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:30 +0000
//
__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;
}