// // DS_Dictionary::setBoolMapForKey from 0x100181200 to 0x100181422 (546 bytes) // // 1 xrefs: // > GameLevelManager::encodeDataTo @ 0x10053b060 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall DS_Dictionary::setBoolMapForKey(DS_Dictionary *a1, const char *a2, std::map *a3) { __int128 v3; // xmm0 std::__vector_base::pointer v7; // rdi const char *v8; // rsi const char *v9; // rsi std::__tree, std::__map_value_compare, std::less, true>, std::allocator>>::__iter_pointer begin_node; // r13 std::__compressed_pair *>> *p_pair1; // r14 char *v12; // r12 char v13; // al const char *v14; // rsi const char *v15; // rsi std::__tree_end_node *> *left; // rcx std::__tree_end_node *> *v17; // rax bool v18; // zf __int64 v19; // [rsp+0h] [rbp-50h] BYREF __int64 v20; // [rsp+8h] [rbp-48h] BYREF __int128 v21; // [rsp+10h] [rbp-40h] BYREF void *__p; // [rsp+20h] [rbp-30h] pugi::xml_node::xml_node(&v21); v7 = a1->dictTree.__end_ - 1; v8 = "k"; if ( a1->compatible ) v8 = "key"; *(_QWORD *)&v21 = sub_10063C660(v7, v8); v20 = sub_10063C150(&v21, 3); sub_10063BA40(&v20, a2); v9 = "d"; if ( a1->compatible ) v9 = "dict"; sub_10063C7D0(&a1->dictTree.__end_[-1], v9, &v21); if ( DS_Dictionary::stepIntoSubDictWithKey(a1, a2) ) { begin_node = a3->__tree_.__begin_node_; p_pair1 = &a3->__tree_.__pair1_; if ( begin_node != (std::__tree, std::__map_value_compare, std::less, true>, std::allocator>>::__iter_pointer)p_pair1 ) { do { if ( ((__int64)begin_node[4].__left_ & 1) != 0 ) { sub_100006B70(&v21, begin_node[6].__left_, (unsigned __int64)begin_node[5].__left_, *(double *)&v3); } else { __p = begin_node[6].__left_; v3 = *(_OWORD *)&begin_node[4].__left_; v21 = v3; } v12 = (char *)&v21 + 1; v13 = v21 & 1; if ( (v21 & 1) != 0 ) v12 = (char *)__p; if ( LOBYTE(begin_node[7].__left_) == 1 ) { pugi::xml_node::xml_node(&v20); v14 = "k"; if ( a1->compatible ) v14 = "key"; v20 = sub_10063C660(&a1->dictTree.__end_[-1], v14); v19 = sub_10063C150(&v20, 3); sub_10063BA40(&v19, v12); v15 = "t"; if ( a1->compatible ) v15 = "true"; sub_10063C7D0(&a1->dictTree.__end_[-1], v15, &v20); v13 = v21 & 1; } if ( v13 ) operator delete(__p); left = (std::__tree_end_node *> *)begin_node[1].__left_; if ( left ) { do { v17 = left; left = (std::__tree_end_node *> *)left->__left_; } while ( left ); } else { do { v17 = (std::__tree_end_node *> *)begin_node[2].__left_; v18 = v17->__left_ == (std::__tree_end_node *>::pointer)begin_node; begin_node = v17; } while ( !v18 ); } begin_node = v17; } while ( v17 != (std::__tree_end_node *> *)p_pair1 ); } if ( (std::__vector_base::pointer)((char *)a1->dictTree.__end_ - (char *)a1->dictTree.__begin_) >= (std::__vector_base::pointer)9 ) --a1->dictTree.__end_; } }