//
// sub_1005CA0BC from 0x1005ca0bc to 0x1005ca158 (156 bytes)
//
// 2 xrefs:
// > sub_10054D164 @ 0x10054d44c
// > FMOD::DSP::getNumInputs @ 0x1005ab02c
//
// 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:27 +0000
//
__int64 __fastcall sub_1005CA0BC(__int64 a1, _DWORD *a2, int a3, int a4)
{
__int64 v7; // x8
__int64 result; // x0
__int64 v9; // x8
if ( !a2 )
return 31;
if ( a4 )
{
sub_100564430(*(_QWORD *)(a1 + 168), 1);
sub_100568CC4(*(_QWORD *)(a1 + 168), 1u);
v7 = 416;
if ( a3 )
v7 = 420;
*a2 = *(__int16 *)(a1 + v7);
sub_100568CE4(*(_QWORD *)(a1 + 168), 1u);
return 0;
}
else
{
result = 0;
v9 = 416;
if ( a3 )
v9 = 420;
*a2 = *(__int16 *)(a1 + v9);
}
return result;
}