//
// sub_100667348 from 0x100667348 to 0x1006673dc (148 bytes)
//
// 2 xrefs:
// > sub_10064D160 @ 0x10064d414
// > sub_10064DCB8 @ 0x10064e00c
//
// 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_100667348(__int64 *a1, __int64 a2)
{
void *v3; // x0
void *v4; // x19
__int64 v5; // x20
void *v6; // x0
__int64 v8; // x19
void *v9; // x0
if ( a2 )
{
v3 = (void *)sub_100725790(a2);
v4 = v3;
if ( v3 )
{
v5 = *a1;
if ( v5 )
{
v6 = *(void **)(v5 + 24);
if ( v6 )
sub_100704B38(v6);
*(_QWORD *)(v5 + 24) = v4;
return 1;
}
sub_100704B38(v3);
}
return 0;
}
v8 = *a1;
if ( !*a1 )
return 0;
v9 = *(void **)(v8 + 24);
if ( v9 )
sub_100704B38(v9);
*(_QWORD *)(v8 + 24) = 0;
return 1;
}