//
// sub_10043EE28 from 0x10043ee28 to 0x10043ef2c (260 bytes)
//
// 4 xrefs:
// > sub_10043EC48 @ 0x10043ec8c
// > sub_10043ECC8 @ 0x10043ed04
// > sub_10043ED38 @ 0x10043ed7c
// > sub_10043EDB8 @ 0x10043edf4
//
// 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_10043EE28(__int64 a1, unsigned int a2, __int64 *a3)
{
__int64 *v6; // x22
__int64 v7; // x8
__int64 v8; // x21
__int64 v9; // x0
_QWORD *v10; // x0
__int64 v11; // x8
if ( !a3 )
return 31;
if ( a1 )
sub_100442B5C(a1, 20);
v6 = (__int64 *)(a1 + 69992);
v7 = a1 + 69992;
while ( 1 )
{
v7 = *(_QWORD *)v7;
if ( (__int64 *)v7 == v6 )
break;
*a3 = v7;
if ( *(_DWORD *)(v7 + 24) == a2 )
{
v8 = 0;
if ( !a1 )
return v8;
goto LABEL_17;
}
}
v9 = sub_1004B14F8(
*((_QWORD *)off_1008524C8 + 54),
112,
"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_systemi_fft.cpp",
92,
0);
*a3 = v9;
if ( v9 )
{
v8 = sub_100436860(v9, a2, 0);
v10 = (_QWORD *)*a3;
if ( (_DWORD)v8 )
{
sub_100436C48((__int64)v10);
*a3 = 0;
if ( !a1 )
return v8;
}
else
{
v11 = *v6;
*v10 = *v6;
v10[1] = v6;
*(_QWORD *)(v11 + 8) = v10;
*(_QWORD *)v10[1] = v10;
}
}
else
{
v8 = 38;
if ( !a1 )
return v8;
}
LABEL_17:
sub_100442B7C(a1, 20);
return v8;
}