//
// sub_1002125E4 from 0x1002125e4 to 0x100212660 (124 bytes)
//
// 1 xrefs:
// > sub_1002120BC @ 0x1002122fc
//
// 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:03 +0000
//
__int64 __fastcall sub_1002125E4(_QWORD *a1, __int64 a2)
{
int v4; // w21
int v5; // w8
int v6; // w8
v4 = (int)(*(float (__fastcall **)(_QWORD *, __int64))(*a1 + 1464LL))(a1, 502);
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1 )
v5 = 1;
else
v5 = -1;
v6 = v5 + v4;
if ( v6 >= 22 )
v6 = 22;
sub_1001AFA70(a1, 502, (float)(v6 & (unsigned int)~(v6 >> 31)));
return sub_100212660(a1);
}