//
// sub_62E5A0 from 0x62e5a0 to 0x62e5da (58 bytes)
//
// 2 xrefs:
// > sub_6105B8 @ 0x6105ce
// > sub_6105B8 @ 0x6105e6
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall sub_62E5A0(int result)
{
int v1; // r3
_DWORD *v2; // r4
int i; // r7
_DWORD *v4; // r6
_DWORD *v5; // r1
_DWORD *v6; // r5
if ( result )
{
v1 = *(_DWORD *)(result + 16);
if ( v1 > 0 )
{
v2 = (_DWORD *)result;
for ( i = 0; i < v1; ++i )
{
v4 = *(_DWORD **)(*v2 + 4 * i);
v5 = (_DWORD *)*v4;
if ( *v4 )
{
do
{
v6 = (_DWORD *)v5[2];
result = sub_62E19C((int)v4, v5, (int)v2);
v5 = v6;
--v2[5];
}
while ( v6 );
v1 = v2[4];
}
}
}
}
return result;
}