//
// sub_10045F344 from 0x10045f344 to 0x10045f3c8 (132 bytes)
//
// 3 xrefs:
// > sub_10046BCA0 @ 0x10046c514
// > sub_1004B8DB0 @ 0x1004b8e20
// > sub_1004B953C @ 0x1004b95a8
//
// 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
//
__int64 __fastcall sub_10045F344(__int64 a1, __int64 a2, __int64 a3, int a4)
{
__int64 v8; // x0
if ( a4 < 0 )
return 31;
if ( a4 )
{
v8 = sub_1004B14F8(
*((_QWORD *)off_1008524C8 + 54),
(unsigned int)(8 * a4),
"/opt/teamcity-agent/work/570ad728b1678096/core_api/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;
}