//
// sub_84E9EC from 0x84e9ec to 0x84ea12 (38 bytes)
//
// 1 xrefs:
// > sub_8400E4 @ 0x84062a
//
// 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 12:02:29 +0000
//
int __fastcall sub_84E9EC(int a1, int a2)
{
int result; // r0
_DWORD **v4; // r2
_DWORD *v5; // r2
result = *(unsigned __int8 *)(a2 + 641);
if ( !*(_BYTE *)(a2 + 641) && !*(_BYTE *)(a2 + 724) )
{
v4 = *(_DWORD ***)(a2 + 732);
if ( v4 )
{
v5 = *v4;
if ( v5 )
{
if ( a1 == *v5 )
{
*(_BYTE *)(a2 + 724) = 1;
return 1;
}
}
}
}
return result;
}