// // DS_Dictionary::addBoolValuesToMapForKeySpecial from 0xdbc63c to 0xdbc980 (836 bytes) // // 2 xrefs: // > GameLevelManager::dataLoaded @ 0x86090c // > @ 0x411a0 // // 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::addBoolValuesToMapForKeySpecial( DS_Dictionary *a1, __int64 a2, char *a3, char a4, int a5, int a6, int a7, int a8, char a9) { char *v12; // x4 unsigned __int8 v13; // w21 int v14; // w23 char *v15; // x25 const char *v16; // x0 const char *v17; // x21 size_t v18; // x0 size_t v19; // x23 unsigned __int64 v20; // x25 char *v21; // x0 unsigned __int64 v22; // x0 char *v23; // x21 __int64 v24; // x0 unsigned __int64 v25; // x0 char *v26; // x25 char *v27; // x21 __int64 v28; // x0 unsigned __int64 v29; // x21 char *v30; // x23 __int64 v31; // x21 __int64 v32; // x0 __int64 *v33; // x0 char v34; // w1 __int64 i; // [xsp+80h] [xbp+80h] BYREF __int64 *sibling; // [xsp+88h] [xbp+88h] BYREF __int64 v38; // [xsp+90h] [xbp+90h] BYREF unsigned __int64 v39; // [xsp+98h] [xbp+98h] char *v40; // [xsp+A0h] [xbp+A0h] if ( a3 && !a4 && !(unsigned __int8)DS_Dictionary::stepIntoSubDictWithKey(a1, a3) ) return _stack_chk_guard; for ( i = pugi::xml_node::first_child((pugi::xml_node *)(*((_QWORD *)a1 + 27) - 8LL)); pugi::xml_node::operator void (*)(pugi::xml_node***)(&i); i = pugi::xml_node::next_sibling((pugi::xml_node *)&sibling) ) { v16 = (const char *)pugi::xml_node::child_value((pugi::xml_node *)&i); v38 = 0; v17 = v16; v39 = 0; v40 = nullptr; v18 = strlen(v16); v19 = v18; if ( v18 <= 0x16 ) { LOBYTE(v38) = 2 * v18; v12 = (char *)&v38 + 1; if ( !v18 ) { BYTE1(v38) = 0; v13 = v38; v14 = v38 & 1; if ( (v38 & 1) != 0 ) goto LABEL_6; goto LABEL_13; } } else { v20 = (v18 + 16) & 0xFFFFFFFFFFFFFFF0LL; v21 = (char *)operator new(v20); v39 = v19; v12 = v21; v40 = v21; v38 = v20 | 1; } *((_BYTE *)memcpy(v12, v17, v19) + v19) = 0; v13 = v38; v14 = v38 & 1; if ( (v38 & 1) != 0 ) { LABEL_6: v15 = v40; if ( atoi(v40) > 0 ) goto LABEL_7; v22 = v39; if ( v39 <= 3 ) goto LABEL_20; goto LABEL_15; } LABEL_13: v15 = (char *)&v38 + 1; if ( atoi((const char *)&v38 + 1) > 0 ) goto LABEL_8; v22 = v13 >> 1; if ( v22 <= 3 ) { LABEL_20: if ( !v14 ) goto LABEL_21; goto LABEL_37; } LABEL_15: v23 = &v15[v22]; v24 = std::__search( (__int64)v15, (__int64)&v15[v22], (unsigned __int8 *)"Rate", (unsigned __int8 *)"", (unsigned __int8 (__fastcall *)(__int64, _QWORD))std::char_traits::eq); if ( v23 != (char *)v24 && v24 - (_QWORD)v15 != -1 ) goto LABEL_17; v13 = v38; v14 = v38 & 1; if ( (v38 & 1) == 0 ) { LABEL_21: v25 = v13 >> 1; v26 = (char *)&v38 + 1; goto LABEL_22; } LABEL_37: v26 = v40; v25 = v39; LABEL_22: if ( v25 > 3 ) { v27 = &v26[v25]; v28 = std::__search( (__int64)v26, (__int64)&v26[v25], "like", (unsigned __int8 *)"", (unsigned __int8 (__fastcall *)(__int64, _QWORD))std::char_traits::eq); if ( v27 != (char *)v28 && v28 - (_QWORD)v26 != -1 ) goto LABEL_17; v13 = v38; v14 = v38 & 1; } if ( v14 ) { v30 = v40; v29 = v39; } else { v29 = v13 >> 1; v30 = (char *)&v38 + 1; } if ( v29 > 5 ) { v31 = (__int64)&v30[v29]; v32 = std::__search( (__int64)v30, v31, "report", (unsigned __int8 *)"", (unsigned __int8 (__fastcall *)(__int64, _QWORD))std::char_traits::eq); if ( v31 != v32 && v32 - (_QWORD)v30 != -1 ) { LABEL_17: if ( (v38 & 1) != 0 ) goto LABEL_7; goto LABEL_8; } } sibling = &v38; v33 = std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>( a2, (__int64)&v38, (__int64)&unk_11AE340, (__int64 *)&sibling); v34 = v38; *((_BYTE *)v33 + 56) = 1; if ( (v34 & 1) != 0 ) LABEL_7: operator delete(v40); LABEL_8: sibling = (__int64 *)pugi::xml_node::next_sibling((pugi::xml_node *)&i); } if ( a3 ) DS_Dictionary::stepOutOfSubDict((__int64)a1); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source