//
// sub_100564F90 from 0x100564f90 to 0x100565094 (260 bytes)
//
// 4 xrefs:
// > sub_100564DB0 @ 0x100564df4
// > sub_100564E30 @ 0x100564e6c
// > sub_100564EA0 @ 0x100564ee4
// > sub_100564F20 @ 0x100564f5c
//
// 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_100564F90(__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_100568CC4(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_1005D7660(
*((_QWORD *)off_1009DA5E8 + 54),
112,
"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_systemi_fft.cpp",
92,
0);
*a3 = v9;
if ( v9 )
{
v8 = sub_10055C9C8(v9, a2, 0);
v10 = (_QWORD *)*a3;
if ( (_DWORD)v8 )
{
sub_10055CDB0((__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_100568CE4(a1, 20);
return v8;
}