//
// sub_5433C from 0x5433c to 0x54386 (74 bytes)
//
// 2 xrefs:
// > sub_54244 @ 0x54314
// > sub_54392 @ 0x543ae
//
// 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_5433C(int a1, int a2, int a3, size_t a4)
{
int v5; // r5
int v6; // r0
size_t v8; // [sp+4h] [bp-Ch] BYREF
v8 = a4;
if ( (unsigned int)(*(_DWORD *)(a1 + 24) - 1) > 4 || !*(_DWORD *)(a1 + 240) )
return 0;
v5 = sub_54322(a1, 8u, &v8);
if ( !v5 )
{
v6 = *(_DWORD *)(a1 + 252);
v5 = 0;
if ( v6 )
{
qmemcpy((void *)(v6 + *(_DWORD *)(a1 + 232)), *(const void **)(a1 + 240), v8);
*(_DWORD *)(a1 + 252) = 0;
}
}
return v5;
}