//
// sub_1800C0650 from 0x1800c0650 to 0x1800c0736 (230 bytes)
//
// 4 xrefs:
// > sub_1800BF8E0 @ 0x1800bf930
// > ??> @ 0x18018a574
// > ??> @ 0x18018a5a8
// > ??> @ 0x1801fda1c
//
// 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:03 +0000
//
__int64 __fastcall sub_1800C0650(__int64 a1, __int64 a2, __int64 a3)
{
int v3; // eax
_DWORD *v6; // rdx
int v7; // esi
__int64 v8; // rdi
int v10; // [rsp+30h] [rbp-18h]
v3 = *(_DWORD *)(a1 + 412);
if ( v3 )
{
v6 = *(_DWORD **)(a1 + 416);
if ( v6 )
{
v7 = 0;
if ( v3 > 0 )
{
v8 = 0;
do
{
LOBYTE(v10) = 1;
(*(void (__fastcall **)(__int64, _QWORD, __int64, _QWORD, _QWORD, int, int))(*(_QWORD *)a3 + 264LL))(
a3,
*(unsigned int *)(*(_QWORD *)(a1 + 416) + v8 + 48),
2,
*(_QWORD *)(*(_QWORD *)(a1 + 416) + v8 + 32),
0,
-1,
v10);
++v7;
v8 += 316;
}
while ( v7 < *(_DWORD *)(a1 + 412) );
v6 = *(_DWORD **)(a1 + 416);
}
sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), v6);
*(_QWORD *)(a1 + 416) = 0;
}
}
return 0;
}