//
// sub_1800DEB00 from 0x1800deb00 to 0x1800deb4c (76 bytes)
//
// 2 xrefs:
// > sub_1800CDCB0 @ 0x1800cdcd0
// > ??> @ 0x1801ff78c
//
// 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:14 +0000
//
__int64 __fastcall sub_1800DEB00(__int64 a1, _DWORD *a2)
{
__int64 v3; // rdx
__int64 v4; // rcx
__int64 result; // rax
_OWORD v6[3]; // [rsp+20h] [rbp-48h] BYREF
__int64 v7; // [rsp+50h] [rbp-18h]
v3 = *(unsigned int *)(a1 + 192);
v7 = 0;
v4 = *(_QWORD *)(a1 + 96);
memset(v6, 0, sizeof(v6));
result = (*(__int64 (__fastcall **)(__int64, __int64, _OWORD *))(v4 + 136))(v4, v3, v6);
if ( !(_DWORD)result )
{
*a2 = HIDWORD(v6[0]);
return 0;
}
return result;
}