//
// sub_8495E4 from 0x8495e4 to 0x849660 (124 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_8495E4(int a1, int a2)
{
int v3; // r3
int v4; // r5
_BOOL4 v6; // r0
if ( a2 || (v3 = *(_DWORD *)(a1 + 1132)) == 0 )
{
v4 = a1 + 1088;
}
else
{
v4 = a1 + 1088;
if ( *(_BYTE *)(v3 + 627) && !sub_84A864(a1 + 1088, "%s", "QUIT") )
{
*(_DWORD *)(a1 + 1144) = 12;
do
{
v6 = sub_84A600(v4, 1) == 0;
if ( !*(_DWORD *)(a1 + 1144) )
v6 = 0;
}
while ( v6 );
}
}
sub_84ABC8(v4);
sub_84D6C0(a1, *(_DWORD *)(a1 + 1172));
off_D200B0(*(void **)(a1 + 1152));
*(_DWORD *)(a1 + 1152) = 0;
return 0;
}