//
// sub_100022CCC from 0x100022ccc to 0x100022d78 (172 bytes)
//
// 1 xrefs:
// > sub_100022C50 @ 0x100022c68
//
// 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:57:23 +0000
//
__int64 *__usercall sub_100022CCC@(__int64 a1@, __int64 a2@, _QWORD *a3@)
{
char *v6; // x20
const void *v7; // x1
__int64 v8; // x2
__int64 *result; // x0
v6 = (char *)operator new(0x70u);
*a3 = v6;
a3[1] = a1;
a3[2] = 0;
*(_QWORD *)v6 = 0;
*((_QWORD *)v6 + 1) = 0;
*((_DWORD *)v6 + 4) = *(_DWORD *)a2;
*(_OWORD *)(v6 + 24) = *(_OWORD *)(a2 + 8);
*(_OWORD *)(v6 + 40) = *(_OWORD *)(a2 + 24);
*(_OWORD *)(v6 + 56) = *(_OWORD *)(a2 + 40);
v7 = *(const void **)(a2 + 64);
*((_QWORD *)v6 + 9) = *(_QWORD *)(a2 + 56);
*((_QWORD *)v6 + 11) = 0;
*((_QWORD *)v6 + 12) = 0;
v8 = *(_QWORD *)(a2 + 72);
*((_QWORD *)v6 + 10) = 0;
result = sub_100018908((__int64 *)v6 + 10, v7, v8, (v8 - (__int64)v7) >> 2);
v6[104] = *(_BYTE *)(a2 + 88);
*((_BYTE *)a3 + 16) = 1;
*((_QWORD *)v6 + 1) = *((int *)v6 + 4);
return result;
}