//
// tls_construct_server_done from 0xfcfcec to 0xfcfd98 (172 bytes)
//
// 2 xrefs:
// > ossl_statem_server_construct_message @ 0xfd2830
// > ??> @ 0x446b0
//
// 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:29 +0000
//
__int64 __fastcall tls_construct_server_done(__int64 a1)
{
__int64 v2; // x1
if ( (*(unsigned int (**)(void))(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 192LL) + 112LL))() )
{
v2 = *(unsigned int *)(*(_QWORD *)(a1 + 144) + 648LL);
if ( (_DWORD)v2 || (unsigned int)ssl3_digest_cached_records(a1, v2) )
{
return 1;
}
else
{
ossl_statem_set_error(a1);
return 1;
}
}
else
{
ERR_put_error(20, 375, 68, "ssl/statem/statem_srvr.c", 1598);
ossl_statem_set_error(a1);
return 0;
}
}