// // DS_Dictionary::setArrayForKey from 0x18001e830 to 0x18001ea17 (487 bytes) // // 5 xrefs: // > DS_Dictionary::setObjectForKey @ 0x18001f63b // > @ 0x18013c4f0 // > @ 0x18013c524 // > @ 0x18014cf68 // > @ 0x1801b8d28 // // This function is hookable on this platform (idp: pc, 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 11:21:27 +0000 // void __fastcall DS_Dictionary::setArrayForKey(DS_Dictionary *this, const char *a2, struct cocos2d::CCArray *a3) { const char *v6; // rbx const char *v7; // r8 __int64 v8; // rax const char *v9; // r8 __int64 v10; // rax const char *v11; // r8 unsigned int i; // ebx struct cocos2d::CCObject *v13; // rdi cocos2d::CCString *v14; // rax const char *CString; // rax _BYTE v16[16]; // [rsp+20h] [rbp-38h] BYREF __int64 v17; // [rsp+70h] [rbp+18h] BYREF __int64 v18; // [rsp+78h] [rbp+20h] BYREF if ( a3 ) { cocos2d::CCThread::CCThread((cocos2d::CCThread *)&v17); v6 = "k"; v7 = "k"; if ( *((_BYTE *)this + 232) ) v7 = "key"; v17 = *(_QWORD *)sub_180082790(*((_QWORD *)this + 27) - 8LL, v16, v7); v8 = sub_180082820(&v17, v16, 3); sub_180088520(v8, a2); v9 = "d"; if ( *((_BYTE *)this + 232) ) v9 = "dict"; sub_180083ED0(*((_QWORD *)this + 27) - 8LL, &v18, v9, &v17); sub_18001C710((const void **)this + 26, &v18); cocos2d::CCThread::CCThread((cocos2d::CCThread *)&v17); if ( *((_BYTE *)this + 232) ) v6 = "key"; v17 = *(_QWORD *)sub_180082790(*((_QWORD *)this + 27) - 8LL, &v18, v6); v10 = sub_180082820(&v17, &v18, 3); sub_180088520(v10, "_isArr"); v11 = "t"; if ( *((_BYTE *)this + 232) ) v11 = "true"; sub_180083ED0(*((_QWORD *)this + 27) - 8LL, &v18, v11, &v17); for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(a3); ++i ) { v13 = cocos2d::CCArray::stringAtIndex(a3, i); v14 = cocos2d::CCString::createWithFormat("k_%i", i); CString = cocos2d::CCString::getCString(v14); DS_Dictionary::setObjectForKey(this, CString, v13); } if ( (unsigned __int64)((__int64)(*((_QWORD *)this + 27) - *((_QWORD *)this + 26)) >> 3) > 1 ) *((_QWORD *)this + 27) -= 8LL; } }