//
// sub_9B20DC from 0x9b20dc to 0x9b2134 (88 bytes)
//
// 3 xrefs:
// > ssl_get_new_session @ 0x9b2960
// > ssl_get_new_session @ 0x9b2964
// > ??> @ 0x9b29bc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:06:57 +0000
//
int __fastcall sub_9B20DC(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;
}