// // DS_Dictionary::setSubDictForKey from 0xdbb170 to 0xdbb34c (476 bytes) // // 7 xrefs: // > GameLevelManager::writePlatformerSaveJournal @ 0x83ce4c // > EditorSFXManager::encodeDataTo @ 0xcc72f8 // > EditorSFXManager::encodeDataTo @ 0xcc73f4 // > DS_Dictionary::setSubDictForKey @ 0xdbb354 // > DS_Dictionary::setArrayForKey @ 0xdbb4d0 // > DS_Dictionary::setObjectForKey @ 0xdbb6c8 // > @ 0xf66a0 // // This function is hookable on this platform (idp: arm, 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 13:08:44 +0000 // __int64 __fastcall DS_Dictionary::setSubDictForKey( DS_Dictionary *this, const char *a2, unsigned __int8 a3, unsigned __int8 a4) { int v6; // w19 int v7; // w26 const char *v8; // x1 const char *v9; // x1 __int64 v10; // x0 __int64 *v11; // x1 const char *v13; // x1 const char *v14; // x1 const char *v15; // x0 const char *v16; // x1 __int64 inserted; // [xsp+58h] [xbp+58h] BYREF __int64 i; // [xsp+60h] [xbp+60h] BYREF v6 = a3; v7 = a4; pugi::xml_node::xml_node((pugi::xml_node *)&inserted); if ( v6 ) { if ( *((_BYTE *)this + 232) ) v13 = "key"; else v13 = "k"; for ( i = pugi::xml_node::child((pugi::xml_node *)(*((_QWORD *)this + 27) - 8LL), v13); pugi::xml_node::operator void (*)(pugi::xml_node***)(&i); i = pugi::xml_node::next_sibling((pugi::xml_node *)&i, v14) ) { v15 = (const char *)pugi::xml_node::child_value((pugi::xml_node *)&i); if ( !(unsigned int)alphaNumericallyLessThan(v15, a2) ) { if ( *((_BYTE *)this + 232) ) v16 = "key"; else v16 = "k"; inserted = pugi::xml_node::insert_child_before( (pugi::xml_node *)(*((_QWORD *)this + 27) - 8LL), v16, (const pugi::xml_node *)&i); goto LABEL_5; } if ( *((_BYTE *)this + 232) ) v14 = "key"; else v14 = "k"; } } if ( *((_BYTE *)this + 232) ) v8 = "key"; else v8 = "k"; inserted = pugi::xml_node::append_child((pugi::xml_node *)(*((_QWORD *)this + 27) - 8LL), v8); LABEL_5: i = pugi::xml_node::append_child(&inserted, 3); pugi::xml_node::set_value((pugi::xml_node *)&i, a2); if ( *((_BYTE *)this + 232) ) v9 = "dict"; else v9 = &byte_11B7208; v10 = pugi::xml_node::insert_child_after( (pugi::xml_node *)(*((_QWORD *)this + 27) - 8LL), v9, (const pugi::xml_node *)&inserted); i = v10; if ( v7 ) { v11 = *((__int64 **)this + 27); if ( v11 == *((__int64 **)this + 28) ) { std::vector::__push_back_slow_path((char **)this + 26, &i); } else { if ( v11 ) { *v11 = v10; v11 = *((__int64 **)this + 27); } *((_QWORD *)this + 27) = v11 + 1; } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source