//
// sub_10040724C from 0x10040724c to 0x100407288 (60 bytes)
//
// 6 xrefs:
// > sub_100406930 @ 0x100406c34
// > sub_100406930 @ 0x100406f5c
// > sub_100406930 @ 0x100406f84
// > sub_100407958 @ 0x100407e44
// > sub_100407958 @ 0x100407f24
// > sub_100407958 @ 0x100407fd8
//
// 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:04:42 +0000
//
__int64 __fastcall sub_10040724C(__int64 a1)
{
unsigned __int64 v2; // x20
__int64 result; // x0
v2 = *(_QWORD *)(a1 + 8);
if ( v2 >= *(_QWORD *)(a1 + 16) )
{
result = sub_100413674();
}
else
{
sub_100413624();
result = v2 + 24;
}
*(_QWORD *)(a1 + 8) = result;
return result;
}