//
// sub_1800C4620 from 0x1800c4620 to 0x1800c46bc (156 bytes)
//
// 2 xrefs:
// > sub_1800C3960 @ 0x1800c39ac
// > ??> @ 0x1801fde54
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_1800C4620(__int64 a1, int a2, _BYTE *a3, int a4, __int64 a5, _DWORD *a6, int a7, _DWORD *a8)
{
__int64 v8; // rdi
__int64 v9; // rbx
__int64 result; // rax
__int64 v11; // r8
v8 = a2;
v9 = a1 - 8;
if ( !a1 )
v9 = 0;
if ( a3 && a4 >= 1 )
sub_1800B7D20(a3, *(char **)(v9 + 24LL * a2 + 1904), a4);
if ( !a5 || (result = sub_1800C4280(v9, *(_QWORD *)(v9 + 24 * v8 + 1896), a5), !(_DWORD)result) )
{
v11 = v9 + 24 * v8;
*a8 = *(_DWORD *)(v11 + 1912);
*a6 = *(_DWORD *)(v11 + 1916);
return 0;
}
return result;
}