//
// sub_1800DA180 from 0x1800da180 to 0x1800da1ff (127 bytes)
//
// 2 xrefs:
// > sub_1801125B0 @ 0x18011263f
// > ??> @ 0x1801ff204
//
// 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
//
_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;
}