//
// sub_1801078A0 from 0x1801078a0 to 0x180107917 (119 bytes)
//
// 4 xrefs:
// > ??> @ 0x180190120
// > ??> @ 0x180190130
// > ??> @ 0x1801b0370
// > ??> @ 0x180201550
//
// 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:54:32 +0000
//
__int64 __fastcall sub_1801078A0(__int64 a1, unsigned int a2, __int64 a3, __int64 a4, int a5, int a6)
{
__int64 v7; // rbp
__int64 v8; // rbx
const void *v9; // rdi
void *v10; // rax
v7 = a2;
if ( a6 != 1 )
{
v8 = *(_QWORD *)(a1 + 8);
v9 = **(const void ***)(a3 + 24);
v10 = (void *)sub_1800BE090(v8);
memmove(v10, v9, *(int *)(v8 + 12));
memmove(**(void ***)(a4 + 24), v9, 4 * v7 * **(int **)(a4 + 8));
}
return 0;
}