//
// sub_100468F18 from 0x100468f18 to 0x100468fb8 (160 bytes)
//
// 1 xrefs:
// > sub_100467BDC @ 0x100467edc
//
// 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:05:33 +0000
//
__int64 __fastcall sub_100468F18(__int64 result, __int64 a2)
{
__int64 v2; // x8
__int64 v4; // x19
unsigned int v5; // w21
int v6; // w22
int v7; // w8
int v8; // w8
v2 = *(_QWORD *)(result + 712);
if ( v2 )
{
v4 = result;
v5 = sub_1002E757C(*(_QWORD *)(v2 + 64));
v6 = *(_DWORD *)(*(_QWORD *)(v4 + 712) + 96LL);
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)result == 1 )
v7 = 1;
else
v7 = -1;
v8 = v7 + v6;
if ( v8 >= 0 && v8 <= (int)(float)(v5 / 0xA) )
{
*(_DWORD *)(*(_QWORD *)(v4 + 712) + 96LL) = v8;
return sub_100469F94(v4);
}
}
return result;
}