//
// sub_1001E1334 from 0x1001e1334 to 0x1001e137c (72 bytes)
//
// 3 xrefs:
// > sub_1001E0638 @ 0x1001e0d74
// > sub_1001E0638 @ 0x1001e0ec8
// > sub_1001E0638 @ 0x1001e1030
//
// 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:00:30 +0000
//
__int64 __fastcall sub_1001E1334(__int64 a1)
{
unsigned __int64 v2; // x20
__int64 result; // x0
v2 = *(_QWORD *)(a1 + 8);
if ( v2 >= *(_QWORD *)(a1 + 16) )
{
result = sub_1001E8290(a1);
}
else
{
sub_1001E83BC(*(_QWORD *)(a1 + 8));
result = v2 + 96;
*(_QWORD *)(a1 + 8) = v2 + 96;
}
*(_QWORD *)(a1 + 8) = result;
return result;
}