//
// sub_1800DA180 from 0x1800da180 to 0x1800da1ff (127 bytes)
//
// 2 xrefs:
// > sub_1801125B0 @ 0x18011263f
// > ??> @ 0x1801ff204
//
// 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:13 +0000
//
_QWORD *__fastcall sub_1800DA180(__int64 a1, __int64 a2)
{
_QWORD *v2; // rbx
_QWORD *v3; // rsi
_QWORD *v5; // rdi
v2 = *(_QWORD **)(a1 + 40);
v3 = (_QWORD *)(a1 + 40);
if ( v2 == (_QWORD *)(a1 + 40) )
return nullptr;
while ( 1 )
{
v5 = v2 - 1;
if ( !v2 )
v5 = nullptr;
if ( (*(unsigned __int8 (__fastcall **)(_QWORD *))*v5)(v5) == *(_BYTE *)(a2 + 8)
&& (*(unsigned __int8 (__fastcall **)(_QWORD *))(*v5 + 8LL))(v5) )
{
break;
}
v2 = (_QWORD *)*v2;
if ( v2 == v3 )
return nullptr;
}
return v5;
}