//
// tls_construct_server_done from 0xd51998 to 0xd51a44 (172 bytes)
//
// 2 xrefs:
// > ossl_statem_server_construct_message @ 0xd544dc
// > ??> @ 0x2d6a8
//
// 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_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;
}
}