//
// sub_83DFBC from 0x83dfbc to 0x83e010 (84 bytes)
//
// 4 xrefs:
// > sub_838B34 @ 0x838e02
// > sub_838B34 @ 0x839074
// > ??> @ 0x83b376
// > sub_83B3C4 @ 0x83b3e0
//
// 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:18 +0000
//
int __fastcall sub_83DFBC(_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_84E540(v4, &v9, sub_83CCB8);
if ( !v10 )
{
a1[414] = v10;
return -1;
}
if ( a2 )
*a2 = v2;
return *(_DWORD *)(v2 + 416);
}