//
// sub_1800885B0 from 0x1800885b0 to 0x1800886a0 (240 bytes)
//
// 5 xrefs:
// > sub_1800882F0 @ 0x1800883fc
// > sub_1800886A0 @ 0x1800886e5
// > ??> @ 0x18018499c
// > ??> @ 0x1801849b0
// > ??> @ 0x1801fa35c
//
// 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:41 +0000
//
__int64 __fastcall sub_1800885B0(_QWORD *a1, int a2)
{
void *v5; // rsi
int v6; // edx
__int64 v7; // rax
int v8; // [rsp+20h] [rbp-28h]
char v9; // [rsp+28h] [rbp-20h]
char v10; // [rsp+30h] [rbp-18h]
if ( a2 < *((_DWORD *)a1 + 2) )
return 28;
v5 = nullptr;
if ( a2 )
{
v6 = 16 * a2;
if ( (unsigned int)(v6 - 1) > 0x3FFFFFFE )
return 38;
v10 = 1;
v9 = 0;
v5 = (void *)sub_1800B6530(
*((_QWORD *)off_1801AED20 + 52),
v6,
(unsigned int)"C:\\buildagent1\\work\\570ad728b1678096\\core_api\\src\\fmod_memory.h",
243,
0,
v9,
v10);
if ( !v5 )
return 38;
v7 = *((int *)a1 + 2);
if ( (_DWORD)v7 )
memmove(v5, (const void *)*a1, 16 * v7);
}
if ( *((int *)a1 + 3) > 0 )
{
if ( *a1 )
{
LOBYTE(v8) = 1;
sub_1800B6AA0(
*((_QWORD *)off_1801AED20 + 52),
*a1,
"C:\\buildagent1\\work\\570ad728b1678096\\core_api\\src\\fmod_memory.h",
255,
v8);
}
}
*a1 = v5;
*((_DWORD *)a1 + 3) = a2;
return 0;
}