//
// sub_100407210 from 0x100407210 to 0x10040724c (60 bytes)
//
// 3 xrefs:
// > sub_100406930 @ 0x1004069f4
// > sub_100407958 @ 0x100407e38
// > sub_100407958 @ 0x100407f18
//
// 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_100407210(__int64 a1)
{
unsigned __int64 v2; // x20
__int64 result; // x0
v2 = *(_QWORD *)(a1 + 8);
if ( v2 >= *(_QWORD *)(a1 + 16) )
{
result = sub_100412E64();
}
else
{
sub_100412DF0();
result = v2 + 64;
}
*(_QWORD *)(a1 + 8) = result;
return result;
}