//
// sub_100468A60 from 0x100468a60 to 0x100468bbc (348 bytes)
//
// 1 xrefs:
// > sub_1004624C0 @ 0x1004624c0
//
// 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_100468A60(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x0
__int64 v4; // x1
int v5; // w8
__int64 i; // x21
__int64 v7; // x0
__int64 v8; // x1
__int64 v9; // x21
__int64 v10; // x22
__int64 v11; // x0
__int64 v12; // [xsp+8h] [xbp-28h] BYREF
result = sub_1004B3394();
if ( !(_DWORD)result )
{
v3 = *(_QWORD *)(a1 + 18128);
if ( v3 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 16LL))(v3);
*(_QWORD *)(a1 + 18128) = 0;
}
v4 = *(_QWORD *)(a1 + 1520);
if ( v4 )
{
v5 = *(_DWORD *)(a1 + 972);
if ( v5 >= 1 )
{
for ( i = 0; i < v5; ++i )
{
v7 = *(_QWORD *)(*(_QWORD *)(a1 + 1520) + 8 * i);
if ( v7 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 16LL))(v7);
v5 = *(_DWORD *)(a1 + 972);
}
}
v4 = *(_QWORD *)(a1 + 1520);
}
sub_1004B1970(
*((_QWORD *)off_1008524C8 + 54),
v4,
"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_codec_it.cpp",
5814,
1);
*(_QWORD *)(a1 + 1520) = 0;
}
v8 = *(_QWORD *)(a1 + 2304);
if ( v8 )
{
sub_1004B1970(
*((_QWORD *)off_1008524C8 + 54),
v8,
"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_codec_it.cpp",
5820,
1);
*(_QWORD *)(a1 + 2304) = 0;
}
v9 = 0;
v10 = a1 + 17472;
do
{
v11 = *(_QWORD *)(v10 + v9);
if ( v11 )
{
result = sub_100509758(v11, 0, &v12);
if ( (_DWORD)result )
return result;
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 16LL))(v12);
if ( (_DWORD)result )
return result;
sub_1004B1970(
*((_QWORD *)off_1008524C8 + 54),
*(_QWORD *)(v10 + v9),
"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_codec_it.cpp",
5837,
1);
}
v9 += 8;
}
while ( v9 != 400 );
return 0;
}
return result;
}