//
// sub_8494E4 from 0x8494e4 to 0x849544 (96 bytes)
//
// 0 xrefs:
//
// 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:26 +0000
//
int __fastcall sub_8494E4(int a1)
{
int v1; // r3
int v2; // r4
char **v3; // r3
void *v5; // r0
v1 = *(unsigned __int8 *)(a1 + 618);
*(_BYTE *)(a1 + 612) = 0;
v2 = *(_DWORD *)a1;
if ( !v1 || *(_BYTE *)(v2 + 890) )
{
v5 = off_D200BC(0x14u, 1u);
*(_DWORD *)(v2 + 332) = v5;
if ( v5 )
{
++*(_DWORD *)(v2 + 34676);
return 0;
}
else
{
return 27;
}
}
else
{
if ( *(char ***)(a1 + 664) == &off_C75804 )
v3 = &off_D1340C;
else
v3 = &off_D13450;
*(_DWORD *)(a1 + 664) = v3;
return ((int (__fastcall *)(int))v3[1])(a1);
}
}