//
// sub_1800DA200 from 0x1800da200 to 0x1800da272 (114 bytes)
//
// 4 xrefs:
// > sub_180113200 @ 0x180113237
// > sub_180113270 @ 0x1801132c1
// > sub_180113300 @ 0x18011335d
// > ??> @ 0x1801ff210
//
// 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
//
unsigned __int8 (__fastcall ***__fastcall sub_1800DA200(__int64 a1, char a2))(_QWORD)
{
_QWORD *v2; // rbx
_QWORD *v3; // rsi
unsigned __int8 (__fastcall ***v5)(_QWORD); // rdi
v2 = *(_QWORD **)(a1 + 40);
v3 = (_QWORD *)(a1 + 40);
if ( v2 == (_QWORD *)(a1 + 40) )
return nullptr;
while ( 1 )
{
v5 = (unsigned __int8 (__fastcall ***)(_QWORD))(v2 - 1);
if ( !v2 )
v5 = nullptr;
if ( (**v5)(v5) == a2 )
break;
v2 = (_QWORD *)*v2;
if ( v2 == v3 )
return nullptr;
}
return v5;
}