//
// sub_18002A220 from 0x18002a220 to 0x18002a30a (234 bytes)
//
// 4 xrefs:
// > sub_180028B10 @ 0x180028b60
// > ??> @ 0x18017fc78
// > ??> @ 0x18017fcac
// > ??> @ 0x1801f7770
//
// 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:01 +0000
//
__int64 __fastcall sub_18002A220(__int64 a1, __int64 a2, __int64 a3)
{
int v3; // eax
int v6; // edi
__int64 v7; // rsi
int v9; // [rsp+20h] [rbp-28h]
int v10; // [rsp+30h] [rbp-18h]
v3 = *(_DWORD *)(a1 + 448);
if ( v3 && *(_QWORD *)(a1 + 440) )
{
v6 = 0;
if ( v3 > 0 )
{
v7 = 0;
do
{
LOBYTE(v10) = 0;
(*(void (__fastcall **)(__int64, _QWORD, __int64, _QWORD, _QWORD, _DWORD, int))(*(_QWORD *)a3 + 264LL))(
a3,
*(unsigned int *)(v7 + *(_QWORD *)(a1 + 440) + 48),
2,
*(_QWORD *)(v7 + *(_QWORD *)(a1 + 440) + 32),
0,
0,
v10);
++v6;
v7 += 316;
}
while ( v6 < *(_DWORD *)(a1 + 448) );
}
sub_1800E12D0(a3);
LOBYTE(v9) = 1;
sub_1800B6AA0(
*((_QWORD *)off_1801AED20 + 52),
*(_QWORD *)(a1 + 440),
"C:\\buildagent1\\work\\570ad728b1678096\\core_api\\src\\fmod_codec_mpeg.cpp",
1170,
v9);
*(_QWORD *)(a1 + 440) = 0;
}
return 0;
}