//
// sub_18001D990 from 0x18001d990 to 0x18001da1b (139 bytes)
//
// 5 xrefs:
// > cocos2d::extension::CCControl::operator= @ 0x18001b27f
// > cocos2d::extension::CCScrollView::operator= @ 0x18001c62c
// > ??> @ 0x18002f95c
// > ??> @ 0x18002f96c
// > ??> @ 0x18004b04c
//
// 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_18001D990(_QWORD *a1, _QWORD *a2)
{
_QWORD *v4; // rsi
_QWORD *v5; // rdi
void *v6; // rcx
if ( a1 != a2 )
{
v4 = (_QWORD *)*a1;
v5 = *(_QWORD **)(*a1 + 8LL);
while ( !*((_BYTE *)v5 + 25) )
{
sub_180005580((__int64)a1, (__int64)a1, v5[2]);
v6 = v5;
v5 = (_QWORD *)*v5;
j_j_free(v6);
}
v4[1] = v4;
*v4 = v4;
v4[2] = v4;
a1[1] = 0;
sub_18001DD80(a1, a2);
}
return a1;
}