//
// sub_1005649F4 from 0x1005649f4 to 0x100564a64 (112 bytes)
//
// 9 xrefs:
// > sub_1005F4FC0 @ 0x1005f5424
// > sub_1005F4FC0 @ 0x1005f5438
// > sub_1005F4FC0 @ 0x1005f544c
// > sub_1005F4FC0 @ 0x1005f5460
// > sub_1005F4FC0 @ 0x1005f5474
// > sub_1005F4FC0 @ 0x1005f5488
// > sub_1005F4FC0 @ 0x1005f549c
// > sub_1005F4FC0 @ 0x1005f54b0
// > sub_1005F4FC0 @ 0x1005f54c4
//
// 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:08:09 +0000
//
__int64 __fastcall sub_1005649F4(__int64 a1, unsigned int a2)
{
_QWORD *v2; // x20
__int64 v3; // x19
__int64 result; // x0
v2 = (_QWORD *)(a1 + 8LL * a2 + 67968);
v3 = *v2;
if ( !*v2 )
return 0;
result = sub_1005AF4F8(*v2);
if ( !(_DWORD)result )
{
sub_1005D7AD8(
*((_QWORD *)off_1009DA5E8 + 54),
v3,
"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_systemi_dsp.cpp",
658,
1);
*v2 = 0;
return 0;
}
return result;
}