//
// sub_71CCC from 0x71ccc to 0x71d26 (90 bytes)
//
// 3 xrefs:
// > sub_71554 @ 0x71558
// > sub_71880 @ 0x71ace
// > sub_71D28 @ 0x71d88
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall sub_71CCC(int a1, int a2, _DWORD *a3, int *a4)
{
int v4; // r4
unsigned __int8 *v5; // r0
unsigned int *v6; // r0
unsigned int v7; // r5
unsigned int v8; // t1
_DWORD *v9; // r0
unsigned int v10; // t1
int v11; // r6
unsigned int v12; // r1
v4 = *(_DWORD *)(a1 + 228);
if ( v4 )
a2 = *(_DWORD *)(v4 + 4 * a2);
v5 = (unsigned __int8 *)(*(_DWORD *)(*(_DWORD *)(a1 + 224) + 52)
+ *(_DWORD *)(*(_DWORD *)(*(_DWORD *)(a1 + 224) + 48) + 4 * a2));
v8 = *v5;
v6 = (unsigned int *)(v5 + 8);
v7 = v8;
while ( v7 << 31 )
{
v10 = *v6;
v9 = v6 + 1;
v7 = v10;
v11 = (v10 >> 1) & 0xFFFFFF;
v12 = v10 >> 25;
if ( v10 >> 25 <= 0xF && ((1 << v12) & 0x8A40) != 0 )
{
if ( a3 )
*a3 = v9;
if ( a4 )
*a4 = v11;
return 0;
}
v6 = (_DWORD *)((char *)v9 + v11);
}
return 0;
}