//
// sub_1800C7E70 from 0x1800c7e70 to 0x1800c7ef9 (137 bytes)
//
// 2 xrefs:
// > sub_1800C9120 @ 0x1800c91a3
// > ??> @ 0x1801fe154
//
// 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:06 +0000
//
__int64 __fastcall sub_1800C7E70(__int64 a1, __int64 a2, int a3)
{
__int64 result; // rax
__int64 v5; // rcx
__int64 v6; // rdi
__int64 v7; // [rsp+48h] [rbp+10h] BYREF
if ( !a2 )
return 31;
v5 = *(_QWORD *)(*(_QWORD *)(a1 + 8) + 24LL * a3 + 73784);
if ( v5 )
{
v6 = 8LL * a3 + 336;
v7 = *(_QWORD *)(v6 + *(_QWORD *)(a1 + 24));
if ( !v7 )
{
result = sub_1800923A0(v5, a2, &v7, 2, 0, nullptr);
if ( (_DWORD)result )
return result;
*(_QWORD *)(v6 + *(_QWORD *)(a1 + 24)) = v7;
}
}
return 0;
}