//
// sub_10066742C from 0x10066742c to 0x1006674ac (128 bytes)
//
// 2 xrefs:
// > sub_10064D160 @ 0x10064d428
// > sub_10064DCB8 @ 0x10064e020
//
// 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:01 +0000
//
__int64 __fastcall sub_10066742C(__int64 *a1, __int64 a2)
{
__int64 v3; // x20
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x19
v3 = *a1;
if ( !*a1 )
return 0;
v4 = *(_QWORD *)(v3 + 24);
if ( !v4 )
{
v4 = sub_10070460C();
*(_QWORD *)(v3 + 24) = v4;
if ( !v4 )
return 0;
}
if ( !(unsigned int)sub_100704974(v4, a2) )
return 0;
v5 = a2 + 28;
v6 = 1;
sub_1006AE670(v5, 1, 3, "ssl_cert.c", 578);
return v6;
}