//
// sub_1800B21E0 from 0x1800b21e0 to 0x1800b22ae (206 bytes)
//
// 2 xrefs:
// > sub_1800FE610 @ 0x1801005ef
// > ??> @ 0x1801fcce4
//
// 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:57 +0000
//
__int64 __fastcall sub_1800B21E0(__int64 a1)
{
__int64 v1; // rdi
const void *v3; // rsi
void *v4; // rax
int v6; // [rsp+20h] [rbp-18h]
v1 = *(_QWORD *)(a1 + 488);
v3 = *(const void **)(a1 + 480);
v4 = (void *)sub_1800B6880(
*((_QWORD *)off_1801AED20 + 52),
*(_DWORD *)(a1 + 348) + 1,
(unsigned int)"C:\\buildagent1\\work\\570ad728b1678096\\core_api\\src\\fmod_file.cpp",
1744,
0);
*(_QWORD *)(a1 + 488) = v4;
if ( !v4 )
return 38;
*(_QWORD *)(a1 + 480) = v4;
if ( v3 )
memmove(v4, v3, *(unsigned int *)(a1 + 348));
if ( v1 )
{
LOBYTE(v6) = 1;
sub_1800B6AA0(
*((_QWORD *)off_1801AED20 + 52),
v1,
"C:\\buildagent1\\work\\570ad728b1678096\\core_api\\src\\fmod_file.cpp",
1759,
v6);
}
return 0;
}