//
// sub_534DE from 0x534de to 0x53516 (56 bytes)
//
// 1 xrefs:
// > sub_52F12 @ 0x52f50
//
// 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_534DE(int a1, _DWORD **a2, _DWORD *a3, _DWORD *a4)
{
_DWORD *i; // r4
int v5; // r4
int v6; // r6
int v7; // r5
int v8; // r4
for ( i = *a2; ; *a2 = i )
{
v5 = *i;
if ( v5 == -1 )
return 74;
v6 = *(_DWORD *)(a1 + 12);
v7 = 3 * v5;
v8 = v6 + 12 * v5;
if ( *(_DWORD *)(v6 + 4 * v7) == *a3 )
break;
i = (_DWORD *)(v8 + 4);
}
*a4 = v8;
return 0;
}