//
// sub_FC41D8 from 0xfc41d8 to 0xfc4250 (120 bytes)
//
// 1 xrefs:
// > ssl_get_new_session @ 0xfc49a4
//
// 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:23 +0000
//
__int64 __fastcall sub_FC41D8(__int64 a1, const void *a2, unsigned int *a3)
{
int v6; // w19
v6 = 10;
while ( 1 )
{
if ( (int)RAND_bytes(a2, *a3) <= 0 )
return 0;
--v6;
if ( !SSL_has_matching_session_id(a1, a2, *a3) )
break;
if ( !v6 )
return 0;
}
return 1;
}