//
// sub_1004B92CC from 0x1004b92cc to 0x1004b93b8 (236 bytes)
//
// 1 xrefs:
// > sub_1004B9250 @ 0x1004b926c
//
// 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_1004B92CC(
_QWORD *a1,
__int64 a2,
__int64 a3,
__int64 a4,
_DWORD *a5,
_DWORD *a6,
_DWORD *a7,
int a8)
{
unsigned __int64 v8; // x19
_DWORD *v12; // x0
_DWORD *v13; // x20
int v14; // w9
void *v15; // x0
LODWORD(v8) = a8;
if ( !*a5 )
{
*a5 = 3;
*a6 = 2;
}
v12 = sub_1004B14F8(
*((__int64 **)off_1008524C8 + 54),
16,
(char)"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_output_nosound_nrt.cpp",
57,
0);
*a1 = v12;
if ( !v12 )
return 38;
v13 = v12;
*v12 = v8;
v14 = *a7 - 1;
if ( (unsigned int)v14 <= 4 )
v8 = (qword_10064B1C8[v14] * (unsigned __int64)(unsigned int)v8) >> 3;
v15 = sub_1004B14F8(
*((__int64 **)off_1008524C8 + 54),
(int)v8 * *a6,
(char)"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_output_nosound_nrt.cpp",
70,
0);
*((_QWORD *)v13 + 1) = v15;
if ( v15 )
return 0;
else
return 38;
}