//
// sub_1001AC3FC from 0x1001ac3fc to 0x1001ac470 (116 bytes)
//
// 2 xrefs:
// > sub_1001AC15C @ 0x1001ac250
// > sub_1001AC15C @ 0x1001ac314
//
// 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:00:06 +0000
//
__int64 __fastcall sub_1001AC3FC(__int64 a1, __int64 a2)
{
int v4; // w20
int v5; // w0
int v6; // w8
__int64 v7; // x1
v4 = sub_1002E757C(*(_QWORD *)(a1 + 912));
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
v6 = *(_DWORD *)(a1 + 920);
v7 = (unsigned int)(v6 + v5);
*(_DWORD *)(a1 + 920) = v7;
if ( v6 + v5 < 0 )
{
v7 = (unsigned int)(v7 + v4);
goto LABEL_5;
}
if ( (int)v7 >= v4 )
{
v7 = (unsigned int)(v7 - v4);
LABEL_5:
*(_DWORD *)(a1 + 920) = v7;
}
return sub_1001AC4E8(a1, v7, 0);
}