//
// sub_5C760 from 0x5c760 to 0x5c7e4 (132 bytes)
//
// 3 xrefs:
// > sub_93B20 @ 0x942ac
// > sub_E47E0 @ 0xe4854
// > sub_E4ED0 @ 0xe4f40
//
// 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 12:13:51 +0000
//
__int64 __fastcall sub_5C760(__int64 a1, __int64 a2, __int64 a3, int a4)
{
__int64 v8; // x0
if ( a4 < 0 )
return 31;
if ( a4 )
{
v8 = sub_E2AC4(
*(__int64 *)((char *)&qword_1B0 + (_QWORD)off_114000),
(unsigned int)(8 * a4),
"../../src/fmod_channelpool.cpp",
56,
0);
*(_QWORD *)(a1 + 24) = v8;
if ( !v8 )
return 38;
}
*(_DWORD *)a1 = a4;
*(_QWORD *)(a1 + 8) = a2;
*(_QWORD *)(a1 + 16) = a3;
return 0;
}