//
// sub_100610C94 from 0x100610c94 to 0x100610d70 (220 bytes)
//
// 1 xrefs:
// > sub_10060DD64 @ 0x10060de64
//
// 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:10:09 +0000
//
__int64 __fastcall sub_100610C94(__int64 a1, __int64 a2, _QWORD *a3, __int64 a4)
{
__int64 v7; // x9
unsigned int (__fastcall *v8)(__int64, _QWORD); // x8
int v9; // w8
__int64 v10; // x8
int v11; // w0
__int64 v13; // x9
unsigned int (__fastcall *v14)(__int64, _QWORD); // x8
v7 = *(_QWORD *)(a4 + 8);
v8 = *(unsigned int (__fastcall **)(__int64, _QWORD))(v7 + 32);
if ( v8 && v8(a4, *(_QWORD *)(v7 + 104)) )
{
*a3 = 0;
goto LABEL_4;
}
if ( !*a3
|| (v10 = *(_QWORD *)(a4 + 8), *(_DWORD *)(v10 + 4112)) && *(_DWORD *)(v10 + 6864) > 0x14u
|| (v11 = (*(__int64 (__fastcall **)(__int64, __int64, _QWORD *, _QWORD))v10)(a4, a2, a3, *(_QWORD *)(v10 + 104)),
v11 == 2) )
{
v9 = 7;
goto LABEL_10;
}
if ( !*a3 )
{
if ( v11 == 1
|| (v13 = *(_QWORD *)(a4 + 8), (v14 = *(unsigned int (__fastcall **)(__int64, _QWORD))(v13 + 32)) != nullptr)
&& v14(a4, *(_QWORD *)(v13 + 104)) )
{
LABEL_4:
v9 = 4;
LABEL_10:
**(_DWORD **)a4 = v9;
return 0;
}
}
return 1;
}