{"type": "func", "start": 8442916, "end": 8443012, "name": "DS_Dictionary::setArrayForKey", "pseudocode": "// \n// DS_Dictionary::setArrayForKey from 0x80d424 to 0x80d484 (96 bytes)\n// \n// 6 xrefs:\n// > GameLevelManager::encodeDataTo @ 0x4ae3cc\n// > GameLevelManager::encodeDataTo @ 0x4ae4a2\n// > GJRewardItem::encodeWithCoder @ 0x5157da\n// > LocalLevelManager::encodeDataTo @ 0x542452\n// > LocalLevelManager::encodeDataTo @ 0x542470\n// > DS_Dictionary::setObjectForKey @ 0x80d4ee\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:01:33 +0000\n// \n\nDS_Dictionary *__fastcall DS_Dictionary::setArrayForKey(DS_Dictionary *this, const char *a2, cocos2d::CCArray *a3)\n{\n  DS_Dictionary *v3; // r5\n  unsigned int v5; // r4\n  int v6; // r0\n  const char *v7; // r1\n  cocos2d::CCObject *v8; // r8\n  cocos2d::CCObject *v9; // r0\n  char *CString; // r0\n\n  v3 = this;\n  if ( a3 )\n  {\n    DS_Dictionary::setSubDictForKey(this, a2, 0, 1);\n    DS_Dictionary::setBoolForKey(v3, \"_isArr\", 1);\n    v5 = 0;\n    while ( v5 < cocos2d::CCArray::count(a3) )\n    {\n      v6 = cocos2d::CCArray::objectAtIndex(a3, v5);\n      v7 = (const char *)v5++;\n      v8 = (cocos2d::CCObject *)v6;\n      v9 = cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"k_%i\", v7);\n      CString = cocos2d::CCString::getCString(v9);\n      DS_Dictionary::setObjectForKey(v3, CString, v8);\n    }\n    return (DS_Dictionary *)DS_Dictionary::stepOutOfSubDict((int)v3);\n  }\n  return this;\n}", "assembly": "; \n; DS_Dictionary::setArrayForKey from 0x80d424 to 0x80d484 (96 bytes)\n; \n; 6 xrefs:\n; > GameLevelManager::encodeDataTo @ 0x4ae3cc\n; > GameLevelManager::encodeDataTo @ 0x4ae4a2\n; > GJRewardItem::encodeWithCoder @ 0x5157da\n; > LocalLevelManager::encodeDataTo @ 0x542452\n; > LocalLevelManager::encodeDataTo @ 0x542470\n; > DS_Dictionary::setObjectForKey @ 0x80d4ee\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:01:33 +0000\n; \nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x80d424\nMOV             R5, R0                                                 ; +0x4, 0x80d428\nMOV             R6, R2                                                 ; +0x6, 0x80d42a\nCBZ             R2, locret_80D480                                      ; +0x8, 0x80d42c\nMOVS            R2, #0; bool                                           ; +0xa, 0x80d42e\nMOVS            R3, #1; bool                                           ; +0xc, 0x80d430\nBL              _ZN13DS_Dictionary16setSubDictForKeyEPKcbb; DS_Dictionary::setSubDictForKey(char const*,bool,bool) ; +0xe, 0x80d432\nLDR             R1, =(aIsarr - 0x80D440); \"_isArr\"                     ; +0x12, 0x80d436\nMOV             R0, R5; this                                           ; +0x14, 0x80d438\nMOVS            R2, #1; bool                                           ; +0x16, 0x80d43a\nADD             R1, PC; \"_isArr\"                                       ; +0x18, 0x80d43c\nLDR             R7, =(aKI - 0x80D44A); \"k_%i\"                          ; +0x1a, 0x80d43e\nBL              _ZN13DS_Dictionary13setBoolForKeyEPKcb; DS_Dictionary::setBoolForKey(char const*,bool) ; +0x1c, 0x80d440\nMOVS            R4, #0                                                 ; +0x20, 0x80d444\nADD             R7, PC; \"k_%i\"                                         ; +0x22, 0x80d446\nMOV             R0, R6; this                                           ; +0x24, 0x80d448\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x26, 0x80d44a\nCMP             R4, R0                                                 ; +0x2a, 0x80d44e\nBCS             loc_80D476                                             ; +0x2c, 0x80d450\nMOV             R1, R4; unsigned int                                   ; +0x2e, 0x80d452\nMOV             R0, R6; this                                           ; +0x30, 0x80d454\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x32, 0x80d456\nMOV             R1, R4; char *                                         ; +0x36, 0x80d45a\nADDS            R4, #1                                                 ; +0x38, 0x80d45c\nMOV             R8, R0                                                 ; +0x3a, 0x80d45e\nMOV             R0, R7; this                                           ; +0x3c, 0x80d460\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x3e, 0x80d462\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x42, 0x80d466\nMOV             R2, R8; lpsrc                                          ; +0x46, 0x80d46a\nMOV             R1, R0; char *                                         ; +0x48, 0x80d46c\nMOV             R0, R5; this                                           ; +0x4a, 0x80d46e\nBL              _ZN13DS_Dictionary15setObjectForKeyEPKcPN7cocos2d8CCObjectE; DS_Dictionary::setObjectForKey(char const*,cocos2d::CCObject *) ; +0x4c, 0x80d470\nB               loc_80D448                                             ; +0x50, 0x80d474\nMOV             R0, R5; this                                           ; +0x52, 0x80d476\nPOP.W           {R4-R8,LR}                                             ; +0x54, 0x80d478\nB.W             _ZN13DS_Dictionary16stepOutOfSubDictEv; DS_Dictionary::stepOutOfSubDict(void) ; +0x58, 0x80d47c\nPOP.W           {R4-R8,PC}                                             ; +0x5c, 0x80d480", "xrefs": ["GameLevelManager::encodeDataTo @ 0x4ae3cc", "GameLevelManager::encodeDataTo @ 0x4ae4a2", "GJRewardItem::encodeWithCoder @ 0x5157da", "LocalLevelManager::encodeDataTo @ 0x542452", "LocalLevelManager::encodeDataTo @ 0x542470", "DS_Dictionary::setObjectForKey @ 0x80d4ee"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}