// // DS_Dictionary::setIntegerForKey from 0x80dd20 to 0x80de70 (336 bytes) // // 1 xrefs: // > DS_Dictionary::setIntegerForKey @ 0x80de9e // // 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:34 +0000 // void __fastcall DS_Dictionary::setIntegerForKey(DS_Dictionary *this, const char *a2, int 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 int appended; // r0 unsigned int v15; // r6 int v16; // [sp+0h] [bp-214h] BYREF int v17; // [sp+4h] [bp-210h] BYREF int i; // [sp+8h] [bp-20Ch] BYREF unsigned int v19; // [sp+Ch] [bp-208h] BYREF unsigned int v20; // [sp+10h] [bp-204h] const char *v21; // [sp+14h] [bp-200h] char v22; // [sp+18h] [bp-1FCh] BYREF if ( a3 ) { i = a3; v19 = 0; v20 = 500; v21 = &v22; fmt::BasicWriter::FormatInt,char>>(&v19, a3); pugi::xml_node::xml_node((pugi::xml_node *)&v16); 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_21; } 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_21: v16 = inserted; i = pugi::xml_node::append_child(&v16, 3); pugi::xml_node::set_value((pugi::xml_node *)&i, a2); if ( *((_BYTE *)this + 212) ) v13 = "integer"; else v13 = (const char *)&a1i2r3e45s789g[1]; v17 = pugi::xml_node::insert_child_after( (pugi::xml_node *)(*((_DWORD *)this + 51) - 4), v13, (const pugi::xml_node *)&v16); appended = pugi::xml_node::append_child(&v17, 3); v15 = v19; i = appended; if ( v19 + 1 > v20 ) fmt::internal::Array::grow((int)&v19, v19 + 1); v21[v15] = 0; pugi::xml_node::set_value((pugi::xml_node *)&i, v21); fmt::internal::Array::free((int)&v19); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source