//
// sub_537E4 from 0x537e4 to 0x53810 (44 bytes)
//
// 2 xrefs:
// > sub_57338 @ 0x5754c
// > sub_62010 @ 0x62048
//
// 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_537E4(int a1)
{
int v2; // r0
int result; // r0
v2 = *(_DWORD *)(a1 + 4);
if ( !v2 )
return 0;
result = sub_AAEE0(v2, 0, 0, 4);
if ( !result )
{
result = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 4) + 8))(*(_DWORD *)(a1 + 4));
if ( !result )
{
*(_DWORD *)(a1 + 4) = 0;
return 0;
}
}
return result;
}