//
// sub_100022570 from 0x100022570 to 0x1000225b8 (72 bytes)
//
// 3 xrefs:
// > sub_1000223C8 @ 0x100022468
// > sub_1000260E0 @ 0x100026184
// > sub_1004DD228 @ 0x1004dd2cc
//
// 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
//
char *__fastcall sub_100022570(_QWORD *a1, unsigned __int64 a2)
{
char *result; // x0
__int64 v4; // x1
if ( a2 >= 0x555555555555556LL )
sub_10000A5F8();
result = (char *)sub_10001D310((__int64)a1, a2);
*a1 = result;
a1[1] = result;
a1[2] = &result[48 * v4];
return result;
}