//
// sub_100565094 from 0x100565094 to 0x100565158 (196 bytes)
//
// 1 xrefs:
// > sub_100565B84 @ 0x1005660ec
//
// 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:08:09 +0000
//
__int64 __fastcall sub_100565094(__int64 a1, __int64 a2, _DWORD *a3)
{
__int64 v4; // x0
__int64 v5; // x21
__int64 v6; // x20
char **v7; // x23
int v8; // w8
__int64 v9; // x25
char **v10; // x26
__int64 result; // x0
v4 = sub_1005ED254(a2, 46);
if ( !v4 )
return 18;
v5 = 0;
v6 = v4 + 1;
v7 = off_1009AA5C8;
while ( 2 )
{
v8 = *((_DWORD *)&unk_1009AA5C0 + 12 * v5 + 1);
if ( v8 <= 1 )
v9 = 1;
else
v9 = (unsigned int)v8;
v10 = v7;
do
{
result = sub_1005ED180(v6, *v10);
if ( !(_DWORD)result )
{
*a3 = *((_DWORD *)&unk_1009AA5C0 + 12 * (unsigned int)v5);
return result;
}
++v10;
--v9;
}
while ( v9 );
++v5;
v7 += 6;
if ( v5 != 18 )
continue;
break;
}
return 0;
}