//
// sub_1005DF434 from 0x1005df434 to 0x1005df520 (236 bytes)
//
// 1 xrefs:
// > sub_1005DF3B8 @ 0x1005df3d4
//
// 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:39 +0000
//
__int64 __fastcall sub_1005DF434(
_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_1005D7660(
*((__int64 **)off_1009DA5E8 + 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_1007741C8[v14] * (unsigned __int64)(unsigned int)v8) >> 3;
v15 = sub_1005D7660(
*((__int64 **)off_1009DA5E8 + 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;
}