//
// sub_1006649B0 from 0x1006649b0 to 0x100664a7c (204 bytes)
//
// 1 xrefs:
// > sub_1006A9638 @ 0x1006a9fc0
//
// 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:00 +0000
//
__int64 __fastcall sub_1006649B0(_QWORD *a1, __int64 a2)
{
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x20
__int64 v7; // x8
__int64 v8; // x0
__int64 v9; // x0
v4 = sub_100701DF8();
v5 = sub_1007005EC(v4);
v6 = v5;
if ( v5 )
{
sub_100700BEC(v5, 104, 0, a2);
v7 = a1[4];
if ( v7 && a1[3] == v7 )
{
a1[3] = *(_QWORD *)(v7 + 56);
*(_QWORD *)(v7 + 56) = 0;
}
v8 = a1[2];
if ( v8 && v8 != v6 )
sub_100701148();
v9 = a1[3];
if ( v9 && v9 != v6 && a1[2] != v9 )
sub_100701148();
a1[2] = v6;
a1[3] = v6;
return 1;
}
else
{
sub_100706FB0(20, 192, 7, "ssl_lib.c", 731);
return 0;
}
}