// // DS_Dictionary::setStringForKey from 0x80b594 to 0x80b6b8 (292 bytes) // // 1 xrefs: // > DS_Dictionary::setStringForKey @ 0x80b6e6 // // 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:30 +0000 // int __fastcall DS_Dictionary::setStringForKey(int result, const char *a2, unsigned __int8 *a3, int a4) { int v6; // r1 int v8; // r5 int v9; // r1 const char *v10; // r1 const char *v11; // r1 const char *v12; // r0 const char *v13; // r1 int inserted; // r0 const char *v15; // r1 const char *v16; // r1 int appended; // r0 const char *v18; // r1 int v19; // [sp+0h] [bp-14h] BYREF int v20; // [sp+4h] [bp-10h] BYREF int i; // [sp+8h] [bp-Ch] BYREF v6 = *a3; v8 = result; if ( (v6 & 1) != 0 ) v9 = *((_DWORD *)a3 + 1); else v9 = v6 >> 1; if ( v9 ) { pugi::xml_node::xml_node((pugi::xml_node *)&v19); if ( a4 ) { if ( *(_BYTE *)(v8 + 212) ) v11 = "key"; else v11 = "k"; for ( i = pugi::xml_node::child((pugi::xml_node *)(*(_DWORD *)(v8 + 204) - 4), v11); pugi::xml_node::operator void (*)(pugi::xml_node***)(&i); i = pugi::xml_node::next_sibling((pugi::xml_node *)&i, v15) ) { v12 = (const char *)pugi::xml_node::child_value((pugi::xml_node *)&i); if ( !alphaNumericallyLessThan(v12, a2) ) { if ( *(_BYTE *)(v8 + 212) ) v13 = "key"; else v13 = "k"; inserted = pugi::xml_node::insert_child_before( (pugi::xml_node *)(*(_DWORD *)(v8 + 204) - 4), v13, (const pugi::xml_node *)&i); goto LABEL_24; } if ( *(_BYTE *)(v8 + 212) ) v15 = "key"; else v15 = "k"; } } if ( *(_BYTE *)(v8 + 212) ) v10 = "key"; else v10 = "k"; inserted = pugi::xml_node::append_child((pugi::xml_node *)(*(_DWORD *)(v8 + 204) - 4), v10); LABEL_24: v19 = inserted; i = pugi::xml_node::append_child(&v19, 3); pugi::xml_node::set_value((pugi::xml_node *)&i, a2); if ( *(_BYTE *)(v8 + 212) ) v16 = "string"; else v16 = (const char *)&a1i2r3e45s789g[8]; i = pugi::xml_node::insert_child_after( (pugi::xml_node *)(*(_DWORD *)(v8 + 204) - 4), v16, (const pugi::xml_node *)&v19); appended = pugi::xml_node::append_child(&i, 3); if ( (*a3 & 1) != 0 ) v18 = *((const char **)a3 + 2); else v18 = (const char *)(a3 + 1); v20 = appended; return pugi::xml_node::set_value((pugi::xml_node *)&v20, v18); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source