//
// sub_100667300 from 0x100667300 to 0x100667348 (72 bytes)
//
// 2 xrefs:
// > sub_10064D160 @ 0x10064d7cc
// > sub_10064DCB8 @ 0x10064e180
//
// 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_100667300(__int64 *a1, __int64 a2)
{
__int64 v3; // x20
void *v4; // x0
v3 = *a1;
if ( !*a1 )
return 0;
v4 = *(void **)(v3 + 24);
if ( v4 )
sub_100704B38(v4);
*(_QWORD *)(v3 + 24) = a2;
return 1;
}