//
// sub_100535D54 from 0x100535d54 to 0x100535df8 (164 bytes)
//
// 2 xrefs:
// > sub_100531F3C @ 0x100531fa0
// > sub_100532308 @ 0x100532368
//
// 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:07:23 +0000
//
_QWORD *__fastcall sub_100535D54(_QWORD *a1, unsigned __int64 a2, __int128 *a3)
{
__int64 v6; // x21
__int64 v7; // x8
__int64 v8; // x22
__int64 v9; // x23
__int128 v10; // q0
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
if ( a2 )
{
sub_1002062C0(a1, a2);
v6 = a1[1];
v7 = 3 * a2;
v8 = v6 + 24 * a2;
v9 = 8 * v7;
do
{
if ( *((char *)a3 + 23) < 0 )
{
sub_1000097D0((_BYTE *)v6, *(void **)a3, *((_QWORD *)a3 + 1));
}
else
{
v10 = *a3;
*(_QWORD *)(v6 + 16) = *((_QWORD *)a3 + 2);
*(_OWORD *)v6 = v10;
}
v6 += 24;
v9 -= 24;
}
while ( v9 );
a1[1] = v8;
}
return a1;
}