//
// sub_1002524B0 from 0x1002524b0 to 0x1002524fc (76 bytes)
//
// 1 xrefs:
// > sub_100251B2C @ 0x100252018
//
// 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:01:32 +0000
//
__int64 __fastcall sub_1002524B0(__int64 a1, __int64 a2)
{
int v3; // w0
int v4; // w8
int v5; // w8
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
v4 = *(_DWORD *)(a1 + 1048);
if ( v3 == 1 )
v5 = v4 - 1;
else
v5 = v4 + 1;
*(_DWORD *)(a1 + 1048) = v5;
sub_100252910(a1);
return sub_10025261C(a1);
}