//
// sub_10054D934 from 0x10054d934 to 0x10054d9dc (168 bytes)
//
// 1 xrefs:
// > sub_10054D164 @ 0x10054d594
//
// 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:07:51 +0000
//
__int64 __fastcall sub_10054D934(__int64 a1, _QWORD *a2)
{
unsigned int v4; // w8
unsigned int v5; // w9
unsigned int v6; // w10
__int64 v7; // x9
__int64 v8; // x0
v4 = *(_DWORD *)(a1 + 72);
v5 = *(_DWORD *)(a1 + 76);
v6 = v4 + 1;
if ( v4 + 1 < v5 )
{
v7 = *(_QWORD *)(a1 + 64);
LABEL_5:
*(_DWORD *)(a1 + 72) = v6;
*a2 = v7 + 94LL * v4;
return 0;
}
*(_DWORD *)(a1 + 76) = 2 * v5;
v8 = sub_1005D7694(
*((_QWORD *)off_1009DA5E8 + 54),
*(_QWORD *)(a1 + 48),
188 * v5 + 20,
"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_profile_dsp.cpp",
276,
0);
*(_QWORD *)(a1 + 48) = v8;
if ( v8 )
{
v7 = v8 + 20;
*(_QWORD *)(a1 + 56) = v8;
*(_QWORD *)(a1 + 64) = v8 + 20;
v4 = *(_DWORD *)(a1 + 72);
v6 = v4 + 1;
goto LABEL_5;
}
return 38;
}