//
// sub_1800C7B30 from 0x1800c7b30 to 0x1800c7b5b (43 bytes)
//
// 4 xrefs:
// > sub_1800C8E40 @ 0x1800c8e49
// > sub_1800C9DD0 @ 0x1800c9e06
// > ??> @ 0x18016bb40
// > ??> @ 0x18016bc20
//
// 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_1800C7B30(__int64 a1, unsigned int a2, int a3)
{
__int64 v3; // rax
unsigned int v4; // r9d
v3 = *(_QWORD *)(a1 + 40);
if ( !v3 )
return 31;
v4 = *(_DWORD *)(v3 + 68);
if ( a2 >= v4 || a2 + a3 > v4 )
return 31;
*(_DWORD *)(a1 + 88) = a2;
*(_DWORD *)(a1 + 92) = a3;
return 0;
}