//
// sub_1004277CC from 0x1004277cc to 0x100427874 (168 bytes)
//
// 1 xrefs:
// > sub_100426FFC @ 0x10042742c
//
// 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_1004277CC(__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_1004B152C(
*((_QWORD *)off_1008524C8 + 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;
}