//
// DS_Dictionary::setVec2ForKey from 0x80eb74 to 0x80ed5e (490 bytes)
//
// 1 xrefs:
// > DS_Dictionary::setVec2ForKey @ 0x80eda6
//
// 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:35 +0000
//
_DWORD *__fastcall DS_Dictionary::setVec2ForKey(
DS_Dictionary *this,
const char *a2,
const cocos2d::CCPoint *a3,
int a4)
{
const char *v7; // r1
const char *v8; // r1
const char *v9; // r0
const char *v10; // r1
int inserted; // r0
const char *v12; // r1
const char *v13; // r1
char *v14; // r1
int v17; // [sp+Ch] [bp-24h] BYREF
int v18; // [sp+10h] [bp-20h] BYREF
int i; // [sp+14h] [bp-1Ch] BYREF
int v20[2]; // [sp+18h] [bp-18h] BYREF
char *v21; // [sp+20h] [bp-10h]
_DWORD v22[2]; // [sp+24h] [bp-Ch] BYREF
_UNKNOWN **v23; // [sp+2Ch] [bp-4h] BYREF
_DWORD v24[13]; // [sp+30h] [bp+0h] BYREF
_DWORD v25[20]; // [sp+64h] [bp+34h] BYREF
v22[1] = 0;
v25[0] = &unk_C99358;
std::ios_base::init((std::ios_base *)v25, v24);
v25[18] = 0;
v25[19] = -1;
v22[0] = &off_C993D4;
v25[0] = &off_C993FC;
v23 = &off_C993E8;
std::streambuf::basic_streambuf(v24);
memset(&v24[8], 0, 16);
v24[0] = &off_C992D8;
v24[12] = 24;
v20[0] = 0;
v20[1] = 0;
v21 = nullptr;
std::stringbuf::str((int)v24, (unsigned __int8 *)v20);
std::string::~string((int)v20);
std::operator<<>(&v23, "{");
std::ostream::operator<<(&v23, *(float *)a3);
std::operator<<>(&v23, ",");
std::ostream::operator<<(&v23, *((float *)a3 + 1));
std::operator<<>(&v23, "}");
DS_Dictionary::removeKey(this, a2);
pugi::xml_node::xml_node((pugi::xml_node *)&v17);
if ( a4 )
{
if ( *((_BYTE *)this + 212) )
v8 = "key";
else
v8 = "k";
for ( i = pugi::xml_node::child((pugi::xml_node *)(*((_DWORD *)this + 51) - 4), v8);
pugi::xml_node::operator void (*)(pugi::xml_node***)(&i);
i = pugi::xml_node::next_sibling((pugi::xml_node *)&i, v12) )
{
v9 = (const char *)pugi::xml_node::child_value((pugi::xml_node *)&i);
if ( !alphaNumericallyLessThan(v9, a2) )
{
if ( *((_BYTE *)this + 212) )
v10 = "key";
else
v10 = "k";
inserted = pugi::xml_node::insert_child_before(
(pugi::xml_node *)(*((_DWORD *)this + 51) - 4),
v10,
(const pugi::xml_node *)&i);
goto LABEL_20;
}
if ( *((_BYTE *)this + 212) )
v12 = "key";
else
v12 = "k";
}
}
if ( *((_BYTE *)this + 212) )
v7 = "key";
else
v7 = "k";
inserted = pugi::xml_node::append_child((pugi::xml_node *)(*((_DWORD *)this + 51) - 4), v7);
LABEL_20:
v17 = inserted;
i = pugi::xml_node::append_child(&v17, 3);
pugi::xml_node::set_value((pugi::xml_node *)&i, a2);
if ( *((_BYTE *)this + 212) )
v13 = "string";
else
v13 = (const char *)&a1i2r3e45s789g[8];
v18 = pugi::xml_node::insert_child_after(
(pugi::xml_node *)(*((_DWORD *)this + 51) - 4),
v13,
(const pugi::xml_node *)&v17);
i = pugi::xml_node::append_child(&v18, 3);
std::stringbuf::str(v20, v24);
if ( (v20[0] & 1) != 0 )
v14 = v21;
else
v14 = (char *)v20 + 1;
pugi::xml_node::set_value((pugi::xml_node *)&i, v14);
std::string::~string((int)v20);
return std::basic_stringstream,std::allocator>::~basic_stringstream(v22);
}