//
// sub_833FAC from 0x833fac to 0x833ff6 (74 bytes)
//
// 2 xrefs:
// > sub_82D664 @ 0x82d762
// > sub_82D664 @ 0x82d9d8
//
// 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:10 +0000
//
void *__fastcall sub_833FAC(int a1, char *a2, int a3, int *a4)
{
void *v4; // r4
int v6; // r0
void *p; // [sp+8h] [bp-8h] BYREF
int v9; // [sp+Ch] [bp-4h] BYREF
v4 = nullptr;
p = nullptr;
if ( a3 < 0 )
return v4;
if ( sub_833E74(a1, a2, a3, &p, &v9, 0) )
return v4;
v4 = p;
if ( !a4 )
return v4;
if ( v9 >= 0 )
{
v6 = sub_84B860();
v4 = p;
*a4 = v6;
return v4;
}
off_D200B0(p);
return nullptr;
}