//
// sub_18001C6A0 from 0x18001c6a0 to 0x18001c768 (200 bytes)
//
// 3 xrefs:
// > sub_180018570 @ 0x1800185ca
// > sub_1800188A0 @ 0x1800188fa
// > ??> @ 0x1801f7344
//
// 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:52:52 +0000
//
__int64 __fastcall sub_18001C6A0(__int64 a1, const void **a2)
{
unsigned __int16 v4; // bx
void *v5; // rax
char v7; // [rsp+28h] [rbp-20h]
char v8; // [rsp+30h] [rbp-18h]
v8 = 1;
v7 = 0;
v4 = *(unsigned __int8 *)*a2 | (unsigned __int16)(*((char *)*a2 + 1) << 8);
*a2 = (char *)*a2 + 2;
v5 = (void *)sub_1800B6530(
*((_QWORD *)off_1801AED20 + 52),
2 * (unsigned int)v4,
(unsigned int)"C:\\buildagent1\\work\\570ad728b1678096\\core_api\\src\\fmod_codec_it.cpp",
192,
0,
v7,
v8);
*(_QWORD *)(a1 + 17448) = v5;
if ( !v5 )
return 38;
memmove(v5, *a2, v4);
*a2 = (char *)*a2 + v4;
*(_QWORD *)(a1 + 17456) = *(_QWORD *)(a1 + 17448);
*(_BYTE *)(a1 + 17464) = 32;
return 0;
}