//
// 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 (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
//
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;
}