// // DS_Dictionary::setStringForKey from 0xdb6c3c to 0xdb6e1c (480 bytes) // // 2 xrefs: // > DS_Dictionary::setStringForKey @ 0xdb6e20 // > @ 0xc31a8 // // 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:42 +0000 // __int64 __fastcall DS_Dictionary::setStringForKey(__int64 a1, const char *a2, __int64 a3, unsigned __int8 a4) { int v4; // w19 __int64 v8; // x1 const char *v10; // x1 const char *v11; // x1 const char *v12; // x1 const char *v13; // x1 const char *v14; // x1 const char *v15; // x0 const char *v16; // x1 __int64 inserted; // [xsp+50h] [xbp+50h] BYREF __int64 appended; // [xsp+58h] [xbp+58h] BYREF __int64 i; // [xsp+60h] [xbp+60h] BYREF v4 = a4; v8 = *(_BYTE *)a3 >> 1; if ( (*(_BYTE *)a3 & 1) != 0 ) v8 = *(_QWORD *)(a3 + 8); if ( v8 ) { pugi::xml_node::xml_node((pugi::xml_node *)&inserted); if ( v4 ) { if ( *(_BYTE *)(a1 + 232) ) v13 = "key"; else v13 = "k"; for ( i = pugi::xml_node::child((pugi::xml_node *)(*(_QWORD *)(a1 + 216) - 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 *)(a1 + 232) ) v16 = "key"; else v16 = "k"; inserted = pugi::xml_node::insert_child_before( (pugi::xml_node *)(*(_QWORD *)(a1 + 216) - 8LL), v16, (const pugi::xml_node *)&i); goto LABEL_9; } if ( *(_BYTE *)(a1 + 232) ) v14 = "key"; else v14 = "k"; } } if ( *(_BYTE *)(a1 + 232) ) v10 = "key"; else v10 = "k"; inserted = pugi::xml_node::append_child((pugi::xml_node *)(*(_QWORD *)(a1 + 216) - 8LL), v10); LABEL_9: i = pugi::xml_node::append_child(&inserted, 3); pugi::xml_node::set_value((pugi::xml_node *)&i, a2); if ( *(_BYTE *)(a1 + 232) ) v11 = "string"; else v11 = "s"; i = pugi::xml_node::insert_child_after( (pugi::xml_node *)(*(_QWORD *)(a1 + 216) - 8LL), v11, (const pugi::xml_node *)&inserted); appended = pugi::xml_node::append_child(&i, 3); v12 = (const char *)(a3 + 1); if ( (*(_BYTE *)a3 & 1) != 0 ) v12 = *(const char **)(a3 + 16); pugi::xml_node::set_value((pugi::xml_node *)&appended, v12); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source