//
// sub_100618CEC from 0x100618cec to 0x100618d38 (76 bytes)
//
// 3 xrefs:
// > sub_10053C0F0 @ 0x10053c508
// > sub_10053CD38 @ 0x10053cd80
// > sub_10053D4CC @ 0x10053d570
//
// 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_100618CEC(_QWORD *a1, _QWORD *a2)
{
_QWORD *v2; // x9
_QWORD *v3; // x8
_QWORD *v4; // x9
v2 = (_QWORD *)*a1;
if ( !*a1 )
return nullptr;
while ( 1 )
{
v3 = v2;
v2 = (_QWORD *)v2[2];
if ( !v2 )
break;
if ( *v3 == *a2 )
{
v4 = v3;
goto LABEL_7;
}
}
v4 = nullptr;
LABEL_7:
if ( *v3 == *a2 )
return v3;
else
return v4;
}