//
// sub_1004C04F0 from 0x1004c04f0 to 0x1004c052c (60 bytes)
//
// 6 xrefs:
// > sub_1004BE5CC @ 0x1004be7e4
// > sub_1004BE5CC @ 0x1004be858
// > sub_1004BE5CC @ 0x1004be8cc
// > sub_1004BE5CC @ 0x1004be960
// > sub_1004BE5CC @ 0x1004be9d0
// > sub_1004BE5CC @ 0x1004bea94
//
// 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:06:19 +0000
//
__int64 __fastcall sub_1004C04F0(__int64 a1)
{
unsigned __int64 v2; // x20
__int64 result; // x0
v2 = *(_QWORD *)(a1 + 8);
if ( v2 >= *(_QWORD *)(a1 + 16) )
{
result = sub_1004C1DE8();
}
else
{
sub_1004C1D7C();
result = v2 + 48;
}
*(_QWORD *)(a1 + 8) = result;
return result;
}