//
// sub_180015FB0 from 0x180015fb0 to 0x18001606f (191 bytes)
//
// 6 xrefs:
// > sub_180016890 @ 0x180016906
// > sub_180016890 @ 0x180016a3d
// > ??> @ 0x18017f190
// > ??> @ 0x18017f1a0
// > ??> @ 0x18017f1b4
// > ??> @ 0x1801f7140
//
// 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:52:47 +0000
//
__int64 *__fastcall sub_180015FB0(__int64 a1, __int64 a2)
{
char v5; // dl
__int64 *v6; // rbx
if ( !*(_OWORD *)a2 )
return nullptr;
v5 = 0;
if ( a1 )
{
sub_1801021C0(a1, 18);
v5 = 1;
}
v6 = *(__int64 **)(a1 + 74184);
if ( v6 == (__int64 *)(a1 + 74184) )
{
LABEL_9:
v6 = nullptr;
}
else
{
while ( *(_QWORD *)a2 != v6[2] || *(_QWORD *)(a2 + 8) != v6[3] )
{
v6 = (__int64 *)*v6;
if ( v6 == (__int64 *)(a1 + 74184) )
goto LABEL_9;
}
++*((_DWORD *)v6 + 8);
}
if ( v5 )
{
if ( a1 )
sub_180102300(a1, 18);
}
return v6;
}