//
// sub_1004118F0 from 0x1004118f0 to 0x100411980 (144 bytes)
//
// 1 xrefs:
// > sub_10041167C @ 0x100411788
//
// 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:50 +0000
//
_QWORD *__usercall sub_1004118F0@(__int64 a1@, __int64 a2@, __int128 **a3@, _QWORD *a4@)
{
_QWORD *result; // x0
_QWORD *v9; // x20
__int128 *v10; // x8
__int128 v11; // q0
result = operator new(0x30u);
v9 = result;
a4[1] = a1;
*a4 = result;
a4[2] = 0;
*result = 0;
result[1] = a2;
v10 = *a3;
if ( *((char *)*a3 + 23) < 0 )
{
result = sub_1000097D0((_BYTE *)result + 16, *(void **)v10, *((_QWORD *)v10 + 1));
}
else
{
v11 = *v10;
result[4] = *((_QWORD *)v10 + 2);
*((_OWORD *)result + 1) = v11;
}
*((_DWORD *)v9 + 10) = 0;
*((_BYTE *)a4 + 16) = 1;
return result;
}