//
// sub_1006680F0 from 0x1006680f0 to 0x100668160 (112 bytes)
//
// 2 xrefs:
// > sub_10064D160 @ 0x10064d598
// > sub_10064DCB8 @ 0x10064e0f4
//
// 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:02 +0000
//
__int64 __fastcall sub_1006680F0(__int64 a1, __int64 a2, int a3, int a4)
{
_QWORD *v6; // x21
if ( a3 )
v6 = (_QWORD *)(a1 + 656);
else
v6 = (_QWORD *)(a1 + 664);
if ( *v6 )
sub_100729244(*v6);
*v6 = a2;
if ( a2 && a4 )
sub_1006AE670(a2 + 136, 1, 11, "ssl_cert.c", 1255);
return 1;
}