//
// sub_64340 from 0x64340 to 0x643ec (172 bytes)
//
// 1 xrefs:
// > sub_6C64C @ 0x6ce94
//
// 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_64340(__int64 a1, __int64 a2, __int64 **a3)
{
__int64 v6; // x0
__int64 *v7; // x21
__int64 v8; // x8
__int64 result; // x0
*a3 = nullptr;
v6 = sub_E2908(
*(__int64 *)((char *)&qword_1B0 + (_QWORD)off_114000),
152,
"../../src/fmod_profile_dsp.cpp",
17,
0,
0,
1);
if ( !v6 )
return 38;
v7 = (__int64 *)v6;
sub_643EC();
v8 = *v7;
v7[4] = a1;
v7[5] = a2;
result = (*(__int64 (__fastcall **)(__int64 *))(v8 + 112))(v7);
if ( !(_DWORD)result )
{
result = (*(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)a1 + 8LL))(a1, v7);
if ( !(_DWORD)result )
*a3 = v7;
}
return result;
}