{"type": "func", "start": 6288128, "end": 6288224, "name": "DS_Dictionary::setArrayForKey", "pseudocode": "// \n// DS_Dictionary::setArrayForKey from 0x5ff300 to 0x5ff360 (96 bytes)\n// \n// 6 xrefs:\n// > GameLevelManager::encodeDataTo @ 0x3c7b9a\n// > GameLevelManager::encodeDataTo @ 0x3c7c70\n// > GJRewardItem::encodeWithCoder @ 0x40c39a\n// > LocalLevelManager::encodeDataTo @ 0x432974\n// > LocalLevelManager::encodeDataTo @ 0x432992\n// > DS_Dictionary::setObjectForKey @ 0x5ff3c8\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid DS_Dictionary::setArrayForKey(DS_Dictionary *a1, const char *a2, cocos2d::CCArray *a3)\n{\n  unsigned int v5; // r4\n  cocos2d::CCObject *v6; // r0\n  const char *v7; // r1\n  cocos2d::CCObject *v8; // r8\n  int v9; // r2\n  int v10; // r3\n  cocos2d::CCString *v11; // r0\n  const char *CString; // r0\n\n  if ( a3 )\n  {\n    DS_Dictionary::setSubDictForKey(a1, a2, 0, 1);\n    DS_Dictionary::setBoolForKey(a1, \"_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 = v6;\n      v11 = cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"k_%i\", v7, v9, v10);\n      CString = cocos2d::CCString::getCString(v11);\n      DS_Dictionary::setObjectForKey(a1, CString, v8);\n    }\n    DS_Dictionary::stepOutOfSubDict(a1);\n  }\n}", "assembly": "; \n; DS_Dictionary::setArrayForKey from 0x5ff300 to 0x5ff360 (96 bytes)\n; \n; 6 xrefs:\n; > GameLevelManager::encodeDataTo @ 0x3c7b9a\n; > GameLevelManager::encodeDataTo @ 0x3c7c70\n; > GJRewardItem::encodeWithCoder @ 0x40c39a\n; > LocalLevelManager::encodeDataTo @ 0x432974\n; > LocalLevelManager::encodeDataTo @ 0x432992\n; > DS_Dictionary::setObjectForKey @ 0x5ff3c8\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x5ff300\nMOV             R5, R0                                                 ; +0x4, 0x5ff304\nMOV             R6, R2                                                 ; +0x6, 0x5ff306\nCBZ             R2, locret_5FF35C                                      ; +0x8, 0x5ff308\nMOVS            R2, #0; bool                                           ; +0xa, 0x5ff30a\nMOVS            R3, #1; bool                                           ; +0xc, 0x5ff30c\nBL              _ZN13DS_Dictionary16setSubDictForKeyEPKcbb; DS_Dictionary::setSubDictForKey(char const*,bool,bool) ; +0xe, 0x5ff30e\nLDR             R1, =(aIsarr - 0x5FF31C); \"_isArr\"                     ; +0x12, 0x5ff312\nMOV             R0, R5; this                                           ; +0x14, 0x5ff314\nMOVS            R2, #1; bool                                           ; +0x16, 0x5ff316\nADD             R1, PC; \"_isArr\"                                       ; +0x18, 0x5ff318\nLDR             R7, =(aKI - 0x5FF326); \"k_%i\"                          ; +0x1a, 0x5ff31a\nBL              _ZN13DS_Dictionary13setBoolForKeyEPKcb; DS_Dictionary::setBoolForKey(char const*,bool) ; +0x1c, 0x5ff31c\nMOVS            R4, #0                                                 ; +0x20, 0x5ff320\nADD             R7, PC; \"k_%i\"                                         ; +0x22, 0x5ff322\nMOV             R0, R6; this                                           ; +0x24, 0x5ff324\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x26, 0x5ff326\nCMP             R4, R0                                                 ; +0x2a, 0x5ff32a\nBCS             loc_5FF352                                             ; +0x2c, 0x5ff32c\nMOV             R1, R4; unsigned int                                   ; +0x2e, 0x5ff32e\nMOV             R0, R6; this                                           ; +0x30, 0x5ff330\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x32, 0x5ff332\nMOV             R1, R4; char *                                         ; +0x36, 0x5ff336\nADDS            R4, #1                                                 ; +0x38, 0x5ff338\nMOV             R8, R0                                                 ; +0x3a, 0x5ff33a\nMOV             R0, R7; this                                           ; +0x3c, 0x5ff33c\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x3e, 0x5ff33e\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x42, 0x5ff342\nMOV             R2, R8; lpsrc                                          ; +0x46, 0x5ff346\nMOV             R1, R0; char *                                         ; +0x48, 0x5ff348\nMOV             R0, R5; this                                           ; +0x4a, 0x5ff34a\nBL              _ZN13DS_Dictionary15setObjectForKeyEPKcPN7cocos2d8CCObjectE; DS_Dictionary::setObjectForKey(char const*,cocos2d::CCObject *) ; +0x4c, 0x5ff34c\nB               loc_5FF324                                             ; +0x50, 0x5ff350\nMOV             R0, R5; this                                           ; +0x52, 0x5ff352\nPOP.W           {R4-R8,LR}                                             ; +0x54, 0x5ff354\nB.W             _ZN13DS_Dictionary16stepOutOfSubDictEv; DS_Dictionary::stepOutOfSubDict(void) ; +0x58, 0x5ff358\nPOP.W           {R4-R8,PC}                                             ; +0x5c, 0x5ff35c", "xrefs": ["GameLevelManager::encodeDataTo @ 0x3c7b9a", "GameLevelManager::encodeDataTo @ 0x3c7c70", "GJRewardItem::encodeWithCoder @ 0x40c39a", "LocalLevelManager::encodeDataTo @ 0x432974", "LocalLevelManager::encodeDataTo @ 0x432992", "DS_Dictionary::setObjectForKey @ 0x5ff3c8"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}