// // DS_Dictionary::setFloatForKey from 0x18001ee00 to 0x18001f09b (667 bytes) // // 3 xrefs: // > DS_Dictionary::setFloatForKey @ 0x18001edf3 // > @ 0x1801438a8 // > @ 0x1801aecd4 // // 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 // // Hidden C++ exception states: #wind=1 void __fastcall DS_Dictionary::setFloatForKey(DS_Dictionary *this, char *a2, float a3, char a4) { const char *v7; // rdi const char *v8; // r8 char *v9; // rax const char *v10; // r8 __int64 *v11; // rax __int64 v12; // rax size_t v13; // rdi size_t v14; // rcx void *v15; // rbx void *v16; // rbx const char *v17; // r8 __int64 v18; // rax __int64 v19; // rax __int64 v20; // [rsp+20h] [rbp-E0h] BYREF _BYTE v21[8]; // [rsp+28h] [rbp-D8h] BYREF __int64 v22; // [rsp+30h] [rbp-D0h] BYREF int v23; // [rsp+38h] [rbp-C8h] BYREF __int16 v24; // [rsp+3Ch] [rbp-C4h] __int64 v25; // [rsp+40h] [rbp-C0h] int v26; // [rsp+48h] [rbp-B8h] char v27; // [rsp+4Ch] [rbp-B4h] size_t Size; // [rsp+50h] [rbp-B0h] BYREF size_t v29; // [rsp+58h] [rbp-A8h] void *Src; // [rsp+60h] [rbp-A0h] _BYTE v31[504]; // [rsp+68h] [rbp-98h] BYREF Size = 0; v29 = 500; Src = v31; v23 = 0; v24 = 32; v25 = 0; v26 = -1; v27 = 0; sub_18003D560(&Size, a2, &v23); pugi::xml_node::xml_node((cocos2d::CCThread *)&v22); v7 = "k"; if ( !a4 ) goto LABEL_9; v8 = "k"; if ( this->compatible ) v8 = "key"; sub_18007FB10(&this->dictTree._Mypair._Myval2._Mylast[-1], &v20, v8); if ( sub_18007F4E0(&v20) ) { while ( 1 ) { v9 = (char *)sub_18007FB70(&v20); if ( !sub_1800190E0(v9, a2) ) break; v10 = "k"; if ( this->compatible ) v10 = "key"; v20 = *(_QWORD *)sub_180081A50(&v20, v21, v10); if ( !sub_18007F4E0(&v20) ) goto LABEL_9; } if ( this->compatible ) v7 = "key"; v11 = (__int64 *)sub_180081070(&this->dictTree._Mypair._Myval2._Mylast[-1], v21, v7, &v20); } else { LABEL_9: if ( this->compatible ) v7 = "key"; v11 = (__int64 *)sub_18007F870(&this->dictTree._Mypair._Myval2._Mylast[-1], v21, v7); } v22 = *v11; v12 = sub_18007F910(&v22, v21, 3); sub_180085410(v12, a2); v13 = Size; v14 = Size + 1; if ( Size + 1 <= v29 ) { v15 = Src; } else { if ( v14 < (v29 >> 1) + v29 ) v14 = (v29 >> 1) + v29; v29 = v14; v15 = operator new(v14); memmove(v15, Src, Size); if ( Src != v31 ) j_j_free_0(Src); Src = v15; } *((_BYTE *)v15 + v13) = 0; v16 = Src; v17 = "r"; if ( this->compatible ) v17 = "real"; v18 = sub_180080EE0(&this->dictTree._Mypair._Myval2._Mylast[-1], v21, v17, &v22); v19 = sub_18007F910(v18, &v20, 3); sub_180085410(v19, v16); if ( Src != v31 ) j_j_free_0(Src); }