//
// DS_Dictionary::getRectForKey from 0x5fe6d0 to 0x5fe7e0 (272 bytes)
//
// 0 xrefs:
//
// 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
//
cocos2d::CCRect *DS_Dictionary::getRectForKey(cocos2d::CCRect *__return_ptr retstr, DS_Dictionary *a2, const char *a3)
{
pugi::xml_node *v5; // r0
const char *v6; // r1
const char *v7; // r0
int v8; // r0
const char *v9; // r1
char *v10; // r0
_BOOL4 v11; // r4
cocos2d::CCRect *v12; // r0
const cocos2d::CCRect *v13; // r1
const char *v14; // r1
pugi::xml_node v17; // [sp+18h] [bp-24h] BYREF
pugi::xml_node v18; // [sp+1Ch] [bp-20h] BYREF
int v19; // [sp+20h] [bp-1Ch] BYREF
cocos2d::CCRect v20; // [sp+24h] [bp-18h] BYREF
v5 = (pugi::xml_node *)std::vector
::back((int)&a2->dictTree);
if ( a2->compatible )
v6 = "key";
else
v6 = "k";
for ( v17._root = (pugi::xml_node_struct *)pugi::xml_node::child(v5, v6);
;
v17._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v17, v14) )
{
if ( !pugi::xml_node::operator void (*)(pugi::xml_node***)(&v17) )
{
v12 = retstr;
goto LABEL_19;
}
v7 = (const char *)pugi::xml_node::child_value(&v17);
if ( !strcmp(v7, a3) )
{
v8 = pugi::xml_node::next_sibling(&v17);
v9 = a2->compatible ? "string" : (const char *)&aO1i2r3e45s7t89[9];
v19 = v8;
LODWORD(v20.origin.x) = pugi::xml_node::next_sibling(&v17, v9);
if ( pugi::xml_node::operator==(&v19, &v20) )
break;
}
if ( a2->compatible )
v14 = "key";
else
v14 = "k";
}
cocos2d::CCRect::CCRect(&v20);
v18._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v17);
v10 = (char *)pugi::xml_node::child_value(&v18);
sub_776584((int)&v19, v10);
v11 = DS_Dictionary::rectFromString(a2, (int)&v19, &v20);
sub_774008(&v19);
v12 = retstr;
if ( v11 )
{
v13 = &v20;
goto LABEL_20;
}
LABEL_19:
v13 = &stru_ACAD04;
LABEL_20:
cocos2d::CCRect::CCRect(v12, v13);
return retstr;
}