//
// sub_84ECE4 from 0x84ece4 to 0x84ed86 (162 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:30 +0000
//
int __fastcall sub_84ECE4(int a1)
{
void *v3; // r0
const char *v4; // r7
char *v5; // r6
char *v6; // r3
char *v7; // r0
if ( !*(_BYTE *)(a1 + 620) )
return 67;
memset((void *)(a1 + 1088), 0, 0x30u);
*(_DWORD *)(a1 + 1088) = 1;
v3 = off_D200AC(0x9000u);
*(_DWORD *)(a1 + 1116) = v3;
if ( !v3 )
return 27;
sub_83E124(a1, 0);
v4 = *(const char **)(a1 + 376);
v5 = strchr(v4, 47);
if ( v5 || (v5 = strchr(v4, 92)) != nullptr )
{
*(_DWORD *)(a1 + 1092) = v5 + 1;
v6 = off_D200B8(v4);
*(_DWORD *)(a1 + 1096) = v6;
if ( v6 )
{
v5[(_DWORD)v6 - *(_DWORD *)(a1 + 376)] = 0;
return 0;
}
return 27;
}
*(_DWORD *)(a1 + 1092) = v4;
v7 = off_D200B8(*(const char **)(a1 + 152));
*(_DWORD *)(a1 + 1096) = v7;
if ( !v7 )
return 27;
return 0;
}