//
// DS_Dictionary::getVec2ForKey from 0xb4392c to 0xb43aa0 (372 bytes)
//
// 4 xrefs:
// > SpriteDescription::initDescription @ 0x571d1c
// > SpriteDescription::initDescription @ 0x571d3c
// > SpriteDescription::initDescription @ 0x571d5c
// > ??> @ 0x86a00
//
// 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::CCPoint DS_Dictionary::getVec2ForKey(DS_Dictionary *a1, const char *a2)
{
cocos2d::CCPoint *v2; // x8
_BOOL4 compatible; // w1
cocos2d::CCPoint *v5; // x27
pugi::xml_node *v7; // x0
const char *v8; // x1
const char *v9; // x1
const char *v10; // x0
const char *v11; // x1
const char *v12; // x0
pugi::xml_node v15; // [xsp+60h] [xbp+60h] BYREF
__int64 v16; // [xsp+68h] [xbp+68h] BYREF
pugi::xml_node v17; // [xsp+70h] [xbp+70h] BYREF
cocos2d::CCPoint v18; // 0:kr00_8.8
cocos2d::CCPoint result; // 0:s0.4,4:s1.4
compatible = a1->compatible;
v5 = v2;
v7 = a1->dictTree.m_finish - 1;
if ( compatible )
v8 = "key";
else
v8 = "k";
for ( v15._root = (pugi::xml_node_struct *)pugi::xml_node::child(v7, v8);
pugi::xml_node::operator void (*)(pugi::xml_node***)(&v15);
v15._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v15, v9) )
{
v10 = (const char *)pugi::xml_node::child_value(&v15);
if ( !strcmp(v10, a2) )
{
v16 = pugi::xml_node::next_sibling(&v15);
v11 = a1->compatible ? "string" : "s";
v17._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v15, v11);
if ( (unsigned __int8)pugi::xml_node::operator==(&v16, &v17) )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v16);
v17._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v15);
v12 = (const char *)pugi::xml_node::child_value(&v17);
v18 = cocos2d::CCPointFromString(v12);
result.x = v18.x;
result.y = v18.y;
return result;
}
}
if ( a1->compatible )
v9 = "key";
else
v9 = "k";
}
cocos2d::CCPoint::CCPoint(v5, &stru_1247630);
return result;
}