//
// sub_623F2C from 0x623f2c to 0x623f76 (74 bytes)
//
// 2 xrefs:
// > sub_61D5E4 @ 0x61d6e2
// > sub_61D5E4 @ 0x61d958
//
// 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
//
void *__fastcall sub_623F2C(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_623DF4(a1, a2, a3, &p, &v9, 0) )
return v4;
v4 = p;
if ( !a4 )
return v4;
if ( v9 >= 0 )
{
v6 = sub_63B7E0();
v4 = p;
*a4 = v6;
return v4;
}
off_ABAEB0(p);
return nullptr;
}