//
// sub_74B23C from 0x74b23c to 0x74b278 (60 bytes)
//
// 1 xrefs:
// > sub_74B288 @ 0x74b28c
//
// 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
//
_DWORD *__fastcall sub_74B23C(_DWORD *a1)
{
void *v2; // r5
int v3; // r0
bool v4; // zf
int v5; // r0
v2 = (void *)a1[4];
*a1 = &off_A2DDD8;
v3 = sub_756708();
v4 = v2 == (void *)v3;
if ( v2 != (void *)v3 )
v4 = v2 == nullptr;
if ( !v4 )
operator delete[](v2);
v5 = a1[2];
if ( v5 )
(*(void (__fastcall **)(int))(*(_DWORD *)v5 + 4))(v5);
sub_77A520(a1 + 3);
nullsub_30(a1);
return a1;
}