//
// sub_1005D6FEC from 0x1005d6fec to 0x1005d7148 (348 bytes)
//
// 2 xrefs:
// > sub_1005D6FD4 @ 0x1005d6fd4
// > InitFunc_429 @ 0x100642ff8
//
// 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:34 +0000
//
__int64 __fastcall sub_1005D6FEC(__int64 a1)
{
*(_QWORD *)(a1 + 56) = a1 + 56;
*(_QWORD *)(a1 + 64) = a1 + 56;
*(_QWORD *)(a1 + 72) = 0;
*(_QWORD *)(a1 + 432) = &unk_100A021B0;
dword_100A02228 = 256;
FMOD_Thread_SetAttributes(0, 0x4000000000000000LL, 4294934527LL, 0);
FMOD_Thread_SetAttributes(1, 0x4000000000000000LL, 4294934527LL, 0);
FMOD_Thread_SetAttributes(2, 0x4000000000000000LL, 4294934527LL, 0);
FMOD_Thread_SetAttributes(3, 0x4000000000000000LL, 4294934527LL, 0);
FMOD_Thread_SetAttributes(4, 0x4000000000000000LL, 4294934527LL, 0);
FMOD_Thread_SetAttributes(5, 0x4000000000000000LL, 4294934527LL, 0);
FMOD_Thread_SetAttributes(6, 0x4000000000000000LL, 4294934527LL, 0);
FMOD_Thread_SetAttributes(7, 0x4000000000000000LL, 4294934527LL, 0);
FMOD_Thread_SetAttributes(8, 0x4000000000000000LL, 4294934527LL, 0);
FMOD_Thread_SetAttributes(9, 0x4000000000000000LL, 4294934527LL, 0);
FMOD_Thread_SetAttributes(10, 0x4000000000000000LL, 4294934527LL, 0);
FMOD_Thread_SetAttributes(11, 0x4000000000000000LL, 4294934527LL, 0);
FMOD_Thread_SetAttributes(12, 0x4000000000000000LL, 4294934527LL, 0);
*(_DWORD *)(*(_QWORD *)(a1 + 432) + 40LL) |= 4u;
*(_DWORD *)(a1 + 52) = -1;
return a1;
}