//
// sub_62DF3C from 0x62df3c to 0x62df90 (84 bytes)
//
// 4 xrefs:
// > sub_628AB4 @ 0x628d82
// > sub_628AB4 @ 0x628ff4
// > ??> @ 0x62b2f6
// > sub_62B344 @ 0x62b360
//
// 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_62DF3C(_DWORD *a1, _DWORD *a2)
{
int v2; // r5
int v3; // r3
int v4; // r2
int v8; // r2
int v9; // [sp+0h] [bp-8h] BYREF
unsigned __int8 v10; // [sp+4h] [bp-4h]
v2 = a1[414];
if ( !v2 )
return -1;
v3 = a1[17];
if ( v3 )
{
v4 = v3 + 104;
v9 = a1[414];
v10 = 0;
}
else
{
v8 = a1[16];
if ( !v8 )
return -1;
v9 = a1[414];
v4 = v8 + 104;
v10 = 0;
}
sub_63E4C0(v4, &v9, sub_62CC38);
if ( !v10 )
{
a1[414] = v10;
return -1;
}
if ( a2 )
*a2 = v2;
return *(_DWORD *)(v2 + 416);
}