//
// sub_1800DBCE0 from 0x1800dbce0 to 0x1800dbdeb (267 bytes)
//
// 3 xrefs:
// > sub_1800D8740 @ 0x1800d87d2
// > ??> @ 0x1801bad4c
// > ??> @ 0x1801bad58
//
// 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
//
void sub_1800DBCE0()
{
DWORD *v0; // rbx
__int64 v1; // rcx
int v2; // eax
_OWORD v3[5]; // [rsp+20h] [rbp-78h] BYREF
XINPUT_STATE v4; // [rsp+70h] [rbp-28h] BYREF
v0 = (DWORD *)&unk_1801AA078;
do
{
if ( !*(v0 - 63) )
goto LABEL_11;
v1 = *(_QWORD *)v0;
if ( !*(_QWORD *)v0 )
{
if ( XInputGetState(v0[2], &v4) != 1167 )
goto LABEL_11;
LABEL_10:
sub_1800DC150(v0 - 64);
goto LABEL_11;
}
memset(v3, 0, sizeof(v3));
(*(void (__fastcall **)(__int64))(*(_QWORD *)v1 + 200LL))(v1);
v2 = (*(__int64 (__fastcall **)(_QWORD, __int64, _OWORD *))(**(_QWORD **)v0 + 72LL))(*(_QWORD *)v0, 80, v3);
if ( v2 == -2147024884 || v2 == -2147024866 )
{
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)v0 + 56LL))(*(_QWORD *)v0);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)v0 + 200LL))(*(_QWORD *)v0);
v2 = (*(__int64 (__fastcall **)(_QWORD, __int64, _OWORD *))(**(_QWORD **)v0 + 72LL))(*(_QWORD *)v0, 80, v3);
}
if ( v2 < 0 )
goto LABEL_10;
LABEL_11:
v0 += 72;
}
while ( (__int64)v0 <= (__int64)dword_1801AB158 );
}