//
// sub_10024646C from 0x10024646c to 0x1002464c4 (88 bytes)
//
// 1 xrefs:
// > sub_100245DF0 @ 0x100245f08
//
// 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:26 +0000
//
__int64 __fastcall sub_10024646C(__int64 a1)
{
char v1; // w8
__int64 v2; // x0
__int16 v3; // w8
__int16 v5; // [xsp+Ch] [xbp-4h] BYREF
char v6; // [xsp+Eh] [xbp-2h]
v1 = *(_BYTE *)(a1 + 1084);
*(_BYTE *)(a1 + 1084) = v1 ^ 1;
v2 = *(_QWORD *)(a1 + 1088);
if ( (v1 & 1) != 0 )
{
v6 = 50;
v3 = 12850;
}
else
{
v3 = -1;
v6 = -1;
}
v5 = v3;
return (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v2 + 960LL))(v2, &v5);
}