//
// sub_10015051C from 0x10015051c to 0x1001505a0 (132 bytes)
//
// 1 xrefs:
// > sub_1001504A0 @ 0x1001504b8
//
// 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:39 +0000
//
__int64 *__usercall sub_10015051C@(__int64 a1@, __int64 a2@, _QWORD *a3@)
{
_QWORD *v6; // x20
__int64 *result; // x0
v6 = operator new(0x30u);
*a3 = v6;
a3[1] = a1;
a3[2] = 0;
*v6 = 0;
v6[1] = 0;
*((_DWORD *)v6 + 4) = *(_DWORD *)a2;
v6[4] = 0;
v6[5] = 0;
v6[3] = 0;
result = sub_100018908(
v6 + 3,
*(const void **)(a2 + 8),
*(_QWORD *)(a2 + 16),
(__int64)(*(_QWORD *)(a2 + 16) - *(_QWORD *)(a2 + 8)) >> 2);
*((_BYTE *)a3 + 16) = 1;
v6[1] = *((int *)v6 + 4);
return result;
}