//
// sub_180096CD0 from 0x180096cd0 to 0x180096d94 (196 bytes)
//
// 5 xrefs:
// > sub_180098710 @ 0x1800987f6
// > sub_18009BA10 @ 0x18009bc06
// > ??> @ 0x180185794
// > ??> @ 0x1801857a8
// > ??> @ 0x1801fa98c
//
// This function is hookable on this platform (idp: pc, 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 10:53:47 +0000
//
__int64 __fastcall sub_180096CD0(_QWORD *a1)
{
__int64 v1; // rsi
char v2; // bp
unsigned int v4; // ebx
__int64 v5; // rdx
char v7; // [rsp+20h] [rbp-18h]
v1 = a1[21];
v2 = 0;
if ( v1 )
{
sub_1801021C0(v1, 7);
v2 = 1;
}
if ( !a1[67] || (v4 = sub_180102460(a1[21])) == 0 )
{
v5 = a1[66];
v4 = 0;
a1[67] = 0;
a1[66] = 0;
if ( v5 )
{
v7 = 1;
sub_1800B6AA0(
*((_QWORD *)off_1801AED20 + 52),
v5,
"C:\\buildagent1\\work\\570ad728b1678096\\core_api\\src\\fmod_dspi.cpp",
5974,
v7);
}
}
if ( v2 && v1 )
sub_180102300(v1, 7);
return v4;
}