//
// sub_10009F110 from 0x10009f110 to 0x10009f224 (276 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x100094b78
//
// 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 10:58:30 +0000
//
void __fastcall sub_10009F110(__int64 a1, __int64 a2, __int64 *a3)
{
__int64 *v3; // x20
__int64 *v6; // x1
__int64 v7; // x0
__int64 v8; // x20
_BOOL4 v9; // w22
__int64 v10; // x21
void *v11[2]; // [xsp+0h] [xbp-50h] BYREF
__int64 v12; // [xsp+10h] [xbp-40h]
void *__p[2]; // [xsp+18h] [xbp-38h] BYREF
char v14; // [xsp+2Fh] [xbp-21h]
v3 = a3;
v6 = a3;
if ( *((char *)a3 + 23) < 0 )
v6 = (__int64 *)*a3;
v7 = sub_1000ADC9C(a1, v6);
if ( *((char *)v3 + 23) < 0 )
v3 = (__int64 *)*v3;
v8 = sub_1000BBC70(v7, v3, 1);
sub_100009900(__p, "-1");
v9 = sub_1000045BC((_QWORD *)a2, __p);
if ( v14 < 0 )
operator delete(__p[0]);
v10 = *(_QWORD *)(a1 + 1464);
if ( v9 )
{
if ( v10 )
(*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v10 + 8LL))(v10, v8, 0);
}
else if ( v10 )
{
if ( *(char *)(a2 + 23) < 0 )
{
sub_1000097D0(v11, *(void **)a2, *(_QWORD *)(a2 + 8));
}
else
{
*(_OWORD *)v11 = *(_OWORD *)a2;
v12 = *(_QWORD *)(a2 + 16);
}
(**(void (__fastcall ***)(__int64, __int64, void **))v10)(v10, v8, v11);
if ( SHIBYTE(v12) < 0 )
operator delete(v11[0]);
}
}