//
// sub_526EC from 0x526ec to 0x52722 (54 bytes)
//
// 3 xrefs:
// > sub_6B828 @ 0x6b84c
// > sub_6B878 @ 0x6b88e
// > sub_6B8B0 @ 0x6b8d2
//
// 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:44 +0000
//
int (__fastcall ***__fastcall sub_526EC(int a1, int a2))(_DWORD)
{
_DWORD *v2; // r4
_DWORD *v4; // r6
int (__fastcall ***v5)(_DWORD); // r5
v2 = (_DWORD *)(a1 + 20);
v4 = (_DWORD *)(a1 + 20);
while ( 1 )
{
v4 = (_DWORD *)*v4;
if ( v4 == v2 )
break;
v5 = (int (__fastcall ***)(_DWORD))v4;
if ( v4 )
v5 = (int (__fastcall ***)(_DWORD))(v4 - 1);
if ( (**v5)(v5) == a2 )
return v5;
}
return nullptr;
}