//
// sub_10014F4DC from 0x10014f4dc to 0x10014f570 (148 bytes)
//
// 3 xrefs:
// > sub_10014F3CC @ 0x10014f414
// > sub_10014FA28 @ 0x10014fae0
// > sub_10014FA28 @ 0x10014fb24
//
// 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 10:59:38 +0000
//
__int64 __fastcall sub_10014F4DC(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
__int64 v4; // x19
__int64 v6; // x21
_QWORD v9[3]; // [xsp+0h] [xbp-50h] BYREF
char v10; // [xsp+18h] [xbp-38h]
__int64 v11; // [xsp+20h] [xbp-30h] BYREF
__int64 v12; // [xsp+28h] [xbp-28h] BYREF
v4 = a4;
v11 = a4;
v12 = a4;
v9[0] = a1;
v9[1] = &v11;
v9[2] = &v12;
v10 = 0;
if ( a2 != a3 )
{
v6 = a2;
do
{
sub_10014F584(a1, v4, v6);
v6 += 240;
v4 = v12 + 240;
v12 += 240;
}
while ( v6 != a3 );
}
v10 = 1;
sub_10014F958(v9);
return v4;
}