//
// sub_84E58C from 0x84e58c to 0x84e5b8 (44 bytes)
//
// 3 xrefs:
// > sub_83F5B8 @ 0x83f5e2
// > sub_83F5B8 @ 0x83f60c
// > sub_83F5B8 @ 0x83f662
//
// 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_84E58C(int a1)
{
int v1; // r3
int v2; // r0
_DWORD v4[3]; // [sp+4h] [bp-Ch] BYREF
sub_83E714(a1, v4);
do
{
v2 = sub_83E720((int)v4);
if ( !v2 )
return 0;
v1 = **(_DWORD **)(*(_DWORD *)v2 + 8);
}
while ( !v1 );
return *(_DWORD *)v1;
}