//
// sub_10046F2E0 from 0x10046f2e0 to 0x10046f3a4 (196 bytes)
//
// 1 xrefs:
// > sub_10046F1D8 @ 0x10046f234
//
// 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_10046F2E0(__int64 a1, __int64 a2, __int64 a3)
{
int v3; // w8
__int64 v6; // x21
__int64 v7; // x22
v3 = *(_DWORD *)(a1 + 448);
if ( v3 && *(_QWORD *)(a1 + 440) )
{
if ( v3 >= 1 )
{
v6 = 0;
v7 = 0;
do
{
(*(void (__fastcall **)(__int64, _QWORD, __int64, _QWORD, _QWORD, _QWORD, _QWORD))(*(_QWORD *)a3 + 264LL))(
a3,
*(unsigned int *)(*(_QWORD *)(a1 + 440) + v6 + 44),
2,
*(_QWORD *)(*(_QWORD *)(a1 + 440) + v6 + 28),
0,
0,
0);
++v7;
v6 += 312;
}
while ( v7 < *(int *)(a1 + 448) );
}
sub_1004C62C4(a3);
sub_1004B1970(
*((_QWORD *)off_1008524C8 + 54),
*(_QWORD *)(a1 + 440),
"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_codec_mpeg.cpp",
1170,
1);
*(_QWORD *)(a1 + 440) = 0;
}
return 0;
}