{"type": "func", "start": 6289428, "end": 6289556, "name": "DS_Dictionary::getArrayForKey", "pseudocode": "// \n// DS_Dictionary::getArrayForKey from 0x5ff814 to 0x5ff894 (128 bytes)\n// \n// 7 xrefs:\n// > GameLevelManager::dataLoaded @ 0x3d8aa6\n// > GameLevelManager::dataLoaded @ 0x3d8f48\n// > GJRewardItem::dataLoaded @ 0x412a72\n// > LocalLevelManager::dataLoaded @ 0x433080\n// > LocalLevelManager::dataLoaded @ 0x433294\n// > DS_Dictionary::getDictForKey @ 0x5ff5d2\n// > DS_Dictionary::getObjectForKey @ 0x5ff75e\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\ncocos2d::CCArray *DS_Dictionary::getArrayForKey(DS_Dictionary *a1, const char *a2, bool a3)\n{\n  DS_Dictionary *v3; // r4\n  int v5; // r6\n  cocos2d::CCArray *v6; // r5\n  signed int NumKeys; // r9\n  cocos2d::CCObject *ObjectForKey; // r1\n  cocos2d::CCObject *v9; // r2\n  char *v10[3]; // [sp+0h] [bp-Ch] BYREF\n\n  v10[0] = (char *)a1;\n  v10[1] = (char *)a2;\n  v10[2] = (char *)a3;\n  v3 = a1;\n  if ( !a3 )\n  {\n    a1 = (DS_Dictionary *)DS_Dictionary::stepIntoSubDictWithKey(a1, a2);\n    if ( !a1 )\n      return cocos2d::CCArray::create(nullptr);\n  }\n  v5 = 0;\n  v6 = cocos2d::CCArray::create((cocos2d::CCArray *)a1);\n  DS_Dictionary::removeKey(v3, \"_isArr\");\n  NumKeys = DS_Dictionary::getNumKeys(v3);\n  while ( v5 < NumKeys )\n  {\n    DS_Dictionary::getKey((DS_Dictionary *)v10, (unsigned int)v3, v5);\n    ObjectForKey = DS_Dictionary::getObjectForKey(v3, v10[0]);\n    if ( ObjectForKey )\n      cocos2d::CCArray::addObject(v6, (cocos2d::_ccArray *)ObjectForKey, v9);\n    ++v5;\n    sub_774008(v10);\n  }\n  DS_Dictionary::stepOutOfSubDict(v3);\n  return v6;\n}", "assembly": "; \n; DS_Dictionary::getArrayForKey from 0x5ff814 to 0x5ff894 (128 bytes)\n; \n; 7 xrefs:\n; > GameLevelManager::dataLoaded @ 0x3d8aa6\n; > GameLevelManager::dataLoaded @ 0x3d8f48\n; > GJRewardItem::dataLoaded @ 0x412a72\n; > LocalLevelManager::dataLoaded @ 0x433080\n; > LocalLevelManager::dataLoaded @ 0x433294\n; > DS_Dictionary::getDictForKey @ 0x5ff5d2\n; > DS_Dictionary::getObjectForKey @ 0x5ff75e\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x5FF81E)                ; +0x0, 0x5ff814\nPUSH.W          {R0-R2,R4-R9,LR}                                       ; +0x2, 0x5ff816\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x5ff81a\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x5ff81c\nMOV             R4, R0                                                 ; +0xa, 0x5ff81e\nLDR             R5, [R3]                                               ; +0xc, 0x5ff820\nMOV             R7, R3                                                 ; +0xe, 0x5ff822\nSTR             R5, [SP,#0xC+var_8]                                    ; +0x10, 0x5ff824\nCBNZ            R2, loc_5FF83E                                         ; +0x12, 0x5ff826\nBL              _ZN13DS_Dictionary22stepIntoSubDictWithKeyEPKc; DS_Dictionary::stepIntoSubDictWithKey(char const*) ; +0x14, 0x5ff828\nCBNZ            R0, loc_5FF83E                                         ; +0x18, 0x5ff82c\nBL              _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x1a, 0x5ff82e\nLDR             R2, [SP,#0xC+var_8]                                    ; +0x1e, 0x5ff832\nLDR             R3, [R7]                                               ; +0x20, 0x5ff834\nCMP             R2, R3                                                 ; +0x22, 0x5ff836\nBEQ             loc_5FF88E                                             ; +0x24, 0x5ff838\nBLX             __stack_chk_fail                                       ; +0x26, 0x5ff83a\nBL              _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x2a, 0x5ff83e\nLDR             R1, =(aIsarr - 0x5FF84C); \"_isArr\"                     ; +0x2e, 0x5ff842\nMOVS            R6, #0                                                 ; +0x30, 0x5ff844\nMOV             R8, SP                                                 ; +0x32, 0x5ff846\nADD             R1, PC; \"_isArr\"                                       ; +0x34, 0x5ff848\nMOV             R5, R0                                                 ; +0x36, 0x5ff84a\nMOV             R0, R4; this                                           ; +0x38, 0x5ff84c\nBL              _ZN13DS_Dictionary9removeKeyEPKc; DS_Dictionary::removeKey(char const*) ; +0x3a, 0x5ff84e\nMOV             R0, R4; this                                           ; +0x3e, 0x5ff852\nBL              _ZN13DS_Dictionary10getNumKeysEv; DS_Dictionary::getNumKeys(void) ; +0x40, 0x5ff854\nMOV             R9, R0                                                 ; +0x44, 0x5ff858\nCMP             R6, R9                                                 ; +0x46, 0x5ff85a\nBGE             loc_5FF884                                             ; +0x48, 0x5ff85c\nMOV             R0, R8; this                                           ; +0x4a, 0x5ff85e\nMOV             R1, R4; unsigned int                                   ; +0x4c, 0x5ff860\nMOV             R2, R6                                                 ; +0x4e, 0x5ff862\nBL              _ZN13DS_Dictionary6getKeyEj; DS_Dictionary::getKey(uint) ; +0x50, 0x5ff864\nLDR             R1, [SP,#0xC+var_C]; char *                            ; +0x54, 0x5ff868\nMOV             R0, R4; this                                           ; +0x56, 0x5ff86a\nBL              _ZN13DS_Dictionary15getObjectForKeyEPKc; DS_Dictionary::getObjectForKey(char const*) ; +0x58, 0x5ff86c\nMOV             R1, R0; cocos2d::CCObject *                            ; +0x5c, 0x5ff870\nCBZ             R0, loc_5FF87A                                         ; +0x5e, 0x5ff872\nMOV             R0, R5; this                                           ; +0x60, 0x5ff874\nBL              _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x62, 0x5ff876\nMOV             R0, R8                                                 ; +0x66, 0x5ff87a\nADDS            R6, #1                                                 ; +0x68, 0x5ff87c\nBL              sub_774008                                             ; +0x6a, 0x5ff87e\nB               loc_5FF85A                                             ; +0x6e, 0x5ff882\nMOV             R0, R4; this                                           ; +0x70, 0x5ff884\nBL              _ZN13DS_Dictionary16stepOutOfSubDictEv; DS_Dictionary::stepOutOfSubDict(void) ; +0x72, 0x5ff886\nMOV             R0, R5                                                 ; +0x76, 0x5ff88a\nB               loc_5FF832                                             ; +0x78, 0x5ff88c\nADD             SP, SP, #0xC                                           ; +0x7a, 0x5ff88e\nPOP.W           {R4-R9,PC}                                             ; +0x7c, 0x5ff890", "xrefs": ["GameLevelManager::dataLoaded @ 0x3d8aa6", "GameLevelManager::dataLoaded @ 0x3d8f48", "GJRewardItem::dataLoaded @ 0x412a72", "LocalLevelManager::dataLoaded @ 0x433080", "LocalLevelManager::dataLoaded @ 0x433294", "DS_Dictionary::getDictForKey @ 0x5ff5d2", "DS_Dictionary::getObjectForKey @ 0x5ff75e"], "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"}