// // DS_Dictionary::setIntegerForKey from 0xdbc2dc to 0xdbc518 (572 bytes) // // 2 xrefs: // > DS_Dictionary::setIntegerForKey @ 0xdbc51c // > @ 0x68500 // // 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:45 +0000 // __int64 __fastcall DS_Dictionary::setIntegerForKey( DS_Dictionary *this, const char *a2, unsigned int a3, unsigned __int8 a4) { int v6; // w24 const char *v8; // x1 const char *v9; // x1 __int64 appended; // x0 size_t v11; // x22 const char *v12; // x1 const char *v13; // x0 const char *v14; // x1 const char *v15; // x1 __int64 inserted; // [xsp+50h] [xbp+50h] BYREF __int64 v17; // [xsp+58h] [xbp+58h] BYREF __int64 i; // [xsp+60h] [xbp+60h] BYREF size_t v19; // [xsp+68h] [xbp+68h] BYREF unsigned __int64 v20; // [xsp+70h] [xbp+70h] char *v21; // [xsp+78h] [xbp+78h] _BYTE v22[504]; // [xsp+80h] [xbp+80h] BYREF v6 = a4; if ( a3 ) { v19 = 0; v20 = 500; v21 = v22; LODWORD(i) = a3; fmt::BasicWriter::FormatInt,char>>(&v19, a3); pugi::xml_node::xml_node((pugi::xml_node *)&inserted); if ( v6 ) { if ( *((_BYTE *)this + 232) ) v12 = "key"; else v12 = "k"; for ( i = pugi::xml_node::child((pugi::xml_node *)(*((_QWORD *)this + 27) - 8LL), v12); pugi::xml_node::operator void (*)(pugi::xml_node***)(&i); i = pugi::xml_node::next_sibling((pugi::xml_node *)&i, v14) ) { v13 = (const char *)pugi::xml_node::child_value((pugi::xml_node *)&i); if ( !(unsigned int)alphaNumericallyLessThan(v13, a2) ) { if ( *((_BYTE *)this + 232) ) v15 = "key"; else v15 = "k"; inserted = pugi::xml_node::insert_child_before( (pugi::xml_node *)(*((_QWORD *)this + 27) - 8LL), v15, (const pugi::xml_node *)&i); goto LABEL_7; } 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_7: i = pugi::xml_node::append_child(&inserted, 3); pugi::xml_node::set_value((pugi::xml_node *)&i, a2); if ( *((_BYTE *)this + 232) ) v9 = "integer"; else v9 = "i"; v17 = pugi::xml_node::insert_child_after( (pugi::xml_node *)(*((_QWORD *)this + 27) - 8LL), v9, (const pugi::xml_node *)&inserted); appended = pugi::xml_node::append_child(&v17, 3); v11 = v19; i = appended; if ( v19 + 1 > v20 ) fmt::internal::Array::grow(&v19, v19 + 1); v21[v11] = 0; pugi::xml_node::set_value((pugi::xml_node *)&i, v21); if ( v21 != v22 && v21 ) operator delete[](v21); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source