//
// sub_10053563C from 0x10053563c to 0x1005356f4 (184 bytes)
//
// 1 xrefs:
// > sub_100535534 @ 0x100535590
//
// 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
//
__int128 *__fastcall sub_10053563C(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v6; // x8
__int64 v7; // x24
__int64 v8; // x9
__int128 *v9; // x22
__int64 v10; // x26
__int64 v11; // x27
__int128 *v12; // x23
v6 = 0;
v7 = (a3 - 2) / 2;
do
{
v8 = a1 + 48 * v6;
v9 = (__int128 *)(v8 + 48);
v10 = (2 * v6) | 1;
v11 = 2 * v6 + 2;
if ( v11 < a3 )
{
v12 = (__int128 *)(v8 + 96);
if ( (unsigned int)sub_100534298(a2, (const void **)(v8 + 48), (const void **)(v8 + 96)) )
{
v9 = v12;
v10 = v11;
}
}
sub_1005351A4(a1, v9);
a1 = (__int64)v9;
v6 = v10;
}
while ( v10 <= v7 );
return v9;
}