//
// sub_1004B2284 from 0x1004b2284 to 0x1004b22ec (104 bytes)
//
// 2 xrefs:
// > sub_100450BEC @ 0x100450d5c
// > FMOD::SystemI::pluginAlloc @ 0x1004bcab4
//
// 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
//
unsigned __int64 __fastcall sub_1004B2284(__int64 *a1, int a2, int a3, char a4, __int64 a5, unsigned int a6, int a7)
{
int v7; // w19
void *v8; // x0
unsigned __int64 v9; // x8
if ( a3 >= 1 )
v7 = a3;
else
v7 = 8;
v8 = sub_1004B11FC(a1, a2 + v7 + 8, a4, a5, a6, a7);
if ( !v8 )
return 0;
v9 = ((unsigned __int64)v8 + (unsigned int)(v7 - 1) + 8) & ~(unsigned __int64)(unsigned int)(v7 - 1);
*(_QWORD *)(v9 - 8) = v8;
return v9;
}