//
// sub_1800C4750 from 0x1800c4750 to 0x1800c47ae (94 bytes)
//
// 2 xrefs:
// > sub_1800C3960 @ 0x1800c3a00
// > ??> @ 0x1801fde6c
//
// 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:04 +0000
//
__int64 __fastcall sub_1800C4750(__int64 a1, __int64 a2, unsigned int *a3)
{
_QWORD *v3; // rax
__int64 v7; // [rsp+30h] [rbp+8h] BYREF
v7 = a1;
v3 = *(_QWORD **)(a2 + 40);
LODWORD(v7) = 0;
if ( (*(int (__fastcall **)(_QWORD, __int64 *))(*(_QWORD *)*v3 + 48LL))(*v3, &v7) < 0 )
return 49;
*a3 = (unsigned int)(v7 + *(_DWORD *)(a2 + 20)) % *(_DWORD *)(a2 + 36);
return 0;
}