//
// sub_10044FBB8 from 0x10044fbb8 to 0x10044fc40 (136 bytes)
//
// 1 xrefs:
// > sub_10044F560 @ 0x10044f600
//
// 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:19 +0000
//
__int64 __fastcall sub_10044FBB8(__int64 a1, __int64 a2)
{
__int64 result; // x0
__int64 v4; // x1
unsigned int v5; // w20
__int64 v6; // x0
__int64 v7; // x1
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( (result & 0x80000000) == 0 )
{
v5 = result;
if ( (int)result < (int)(-1431655765 * ((*(_QWORD *)(a1 + 728) - *(_QWORD *)(a1 + 720)) >> 3)) )
{
v6 = cocos2d::CCApplication::sharedApplication(result, v4);
v7 = *(_QWORD *)(a1 + 720) + 24LL * v5;
if ( *(char *)(v7 + 23) < 0 )
v7 = *(_QWORD *)v7;
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 104LL))(v6, v7);
}
}
return result;
}