//
// sub_56364 from 0x56364 to 0x563be (90 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:40:46 +0000
//
int __fastcall sub_56364(_DWORD *a1, _DWORD *a2)
{
int v2; // r2
int v3; // r0
int v4; // r2
int *v6; // r3
int *v7; // r2
int v8; // r4
if ( a2 )
{
if ( a1[31] )
{
v2 = a1[42];
if ( !v2 )
{
v4 = 0;
*a2 = 0;
v6 = (int *)a1[43];
if ( !v6 )
return v4;
v7 = (int *)a1[44];
v8 = 0;
while ( 1 )
{
v6 = (int *)*v6;
if ( v7 == v6 )
break;
if ( a1[35] == *((unsigned __int16 *)v6 + 14) )
*a2 = ++v8;
}
return 0;
}
v3 = *(_DWORD *)(v2 + 4 * a1[35]);
}
else
{
v3 = a1[41];
}
*a2 = v3;
return 0;
}
return 31;
}