//
// sub_79D4D8 from 0x79d4d8 to 0x79d530 (88 bytes)
//
// 3 xrefs:
// > ssl_get_new_session @ 0x79dd5c
// > ssl_get_new_session @ 0x79dd60
// > ??> @ 0x79ddb8
//
// 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
//
int __fastcall sub_79D4D8(int *a1, const void *a2, size_t *a3)
{
int v6; // r4
v6 = 10;
while ( 1 )
{
if ( RAND_bytes(a2, *a3) <= 0 )
return 0;
if ( !SSL_has_matching_session_id(a1, a2, *a3) )
break;
if ( !--v6 )
return 0;
}
return 1;
}