//
// sub_1800A5EB0 from 0x1800a5eb0 to 0x1800a5f09 (89 bytes)
//
// 2 xrefs:
// > sub_1800A6260 @ 0x1800a6379
// > ??> @ 0x1801fb7cc
//
// 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:53:54 +0000
//
__int64 __fastcall sub_1800A5EB0(__int64 a1, __int64 a2, unsigned int *a3)
{
_QWORD *v3; // rax
int v7; // [rsp+38h] [rbp+10h] BYREF
v3 = *(_QWORD **)(a2 + 40);
v7 = 0;
if ( (*(int (__fastcall **)(_QWORD, int *))(*(_QWORD *)*v3 + 48LL))(*v3, &v7) < 0 )
return 49;
*a3 = (unsigned int)(v7 + *(_DWORD *)(a2 + 20)) % *(_DWORD *)(a2 + 36);
return 0;
}