//
// sub_1005D83EC from 0x1005d83ec to 0x1005d8454 (104 bytes)
//
// 2 xrefs:
// > sub_100576D54 @ 0x100576ec4
// > FMOD::SystemI::pluginAlloc @ 0x1005e2c1c
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 11:09:35 +0000
//
unsigned __int64 __fastcall sub_1005D83EC(__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_1005D7364(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;
}