//
// sub_10066BA6C from 0x10066ba6c to 0x10066baec (128 bytes)
//
// 2 xrefs:
// > sub_1006A9638 @ 0x1006a9cfc
// > sub_1006A9638 @ 0x1006ac098
//
// 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 11:11:04 +0000
//
__int64 __fastcall sub_10066BA6C(__int64 a1, __int64 a2)
{
__int64 *v3; // x20
__int64 v5; // x2
__int64 v6; // x4
if ( a2 )
{
v3 = (__int64 *)(a1 + 304);
if ( (unsigned int)sub_100667280((_QWORD *)(a1 + 304)) )
return sub_10066B654(*v3, a2);
v5 = 65;
v6 = 613;
}
else
{
v5 = 67;
v6 = 609;
}
sub_100706FB0(20, 174, v5, "ssl_rsa.c", v6);
return 0;
}