//
// DS_Dictionary::stepBackToRootSubDict from 0x1800215d0 to 0x180021661 (145 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b8e90
//
// 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 11:21:28 +0000
//
void __fastcall DS_Dictionary::stepBackToRootSubDict(DS_Dictionary *this)
{
__int64 v2; // rdx
__int64 *v3; // rax
__int64 v4; // rbx
__int64 v5; // rax
char v6; // [rsp+30h] [rbp+8h] BYREF
char v7; // [rsp+38h] [rbp+10h] BYREF
v2 = *((_QWORD *)this + 26);
if ( (unsigned __int64)((*((_QWORD *)this + 27) - v2) >> 3) > 1 )
{
if ( v2 != *((_QWORD *)this + 27) )
*((_QWORD *)this + 27) = v2;
v3 = (__int64 *)cocos2d::CCThread::CCThread((cocos2d::CCThread *)&v6);
sub_18001C710((const void **)this + 26, v3);
v4 = *((_QWORD *)this + 27);
v5 = sub_180082A40(this, &v6, "plist");
*(_QWORD *)(v4 - 8) = *(_QWORD *)sub_180082A40(v5, &v7, "dict");
}
}