//
// sub_1001E8938 from 0x1001e8938 to 0x1001e89c4 (140 bytes)
//
// 3 xrefs:
// > sub_1001E88B4 @ 0x1001e88fc
// > sub_10051A3B8 @ 0x10051a470
// > sub_10051A3B8 @ 0x10051a4b4
//
// 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:34 +0000
//
__int64 __fastcall sub_1001E8938(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
__int64 v4; // x19
__int64 v6; // x21
_QWORD v8[3]; // [xsp+0h] [xbp-50h] BYREF
char v9; // [xsp+18h] [xbp-38h]
__int64 v10; // [xsp+20h] [xbp-30h] BYREF
__int64 v11; // [xsp+28h] [xbp-28h] BYREF
v4 = a4;
v10 = a4;
v11 = a4;
v8[0] = a1;
v8[1] = &v10;
v8[2] = &v11;
v9 = 0;
if ( a2 != a3 )
{
v6 = a2;
do
{
sub_1001E83BC(v4, v6);
v6 += 96;
v4 = v11 + 96;
v11 += 96;
}
while ( v6 != a3 );
}
v9 = 1;
sub_1001E85AC((__int64)v8);
return v4;
}