//
// sub_537E4 from 0x537e4 to 0x53810 (44 bytes)
//
// 2 xrefs:
// > sub_57338 @ 0x5754c
// > sub_62010 @ 0x62048
//
// 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 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;
}