//
// DS_Dictionary::stepBackToRootSubDict from 0x80cfe8 to 0x80d074 (140 bytes)
//
// 1 xrefs:
// > CCAnimateFrameCache::addDict @ 0x3c4458
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:01:33 +0000
//
int *__fastcall DS_Dictionary::stepBackToRootSubDict(int *this, int a2, int a3)
{
int *v3; // r4
int v4; // r1
int v5; // r3
_DWORD *v6; // r3
int v7; // r7
_DWORD v8[3]; // [sp+0h] [bp-Ch] BYREF
v8[0] = this;
v8[1] = a2;
v8[2] = a3;
v3 = this;
v4 = *(this + 50);
if ( (unsigned int)(*(this + 51) - v4) > 7 )
{
while ( 1 )
{
v5 = *(this + 51);
if ( v4 == v5 )
break;
*(this + 51) = v5 - 4;
}
pugi::xml_node::xml_node((pugi::xml_node *)v8);
v6 = (_DWORD *)v3[51];
if ( (unsigned int)v6 >= v3[52] )
{
std::vector
::__push_back_slow_path(v3 + 50, v8);
}
else
{
if ( v6 )
*v6 = v8[0];
v3[51] += 4;
}
v7 = v3[51];
v8[0] = pugi::xml_node::child((pugi::xml_node *)v3, "plist");
this = (int *)pugi::xml_node::child((pugi::xml_node *)v8, "dict");
*(_DWORD *)(v7 - 4) = this;
}
return this;
}