//
// sub_526A6 from 0x526a6 to 0x526ec (70 bytes)
//
// 1 xrefs:
// > sub_6B444 @ 0x6b4b2
//
// 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
//
_DWORD *__fastcall sub_526A6(int a1, int a2)
{
_DWORD *v2; // r6
_DWORD *v4; // r5
_DWORD *v5; // r4
v2 = (_DWORD *)(a1 + 20);
v4 = (_DWORD *)(a1 + 20);
while ( 1 )
{
v4 = (_DWORD *)*v4;
if ( v4 == v2 )
break;
v5 = v4;
if ( v4 )
v5 = v4 - 1;
if ( (*(int (__fastcall **)(_DWORD *))*v5)(v5) == *(unsigned __int8 *)(a2 + 8)
&& (*(int (__fastcall **)(_DWORD *))(*v5 + 4))(v5) )
{
return v5;
}
}
return nullptr;
}