{"type": "func", "start": 8444352, "end": 8444494, "name": "DS_Dictionary::getArrayForKey", "pseudocode": "// \n// DS_Dictionary::getArrayForKey from 0x80d9c0 to 0x80da4e (142 bytes)\n// \n// 7 xrefs:\n// > GameLevelManager::dataLoaded @ 0x4dd0ee\n// > GameLevelManager::dataLoaded @ 0x4dd6c2\n// > GJRewardItem::dataLoaded @ 0x516786\n// > LocalLevelManager::dataLoaded @ 0x544778\n// > LocalLevelManager::dataLoaded @ 0x544b8c\n// > DS_Dictionary::getDictForKey @ 0x80d72a\n// > DS_Dictionary::getObjectForKey @ 0x80d8f8\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:34 +0000\n// \n\ncocos2d::CCArray *__fastcall DS_Dictionary::getArrayForKey(DS_Dictionary *this, const char *a2, int a3)\n{\n  DS_Dictionary *v3; // r7\n  int v5; // r5\n  cocos2d::CCArray *v6; // r4\n  int NumKeys; // r9\n  char *v8; // r1\n  cocos2d::CCObject *ObjectForKey; // r1\n  char v10; // [sp+0h] [bp-14h] BYREF\n  char v11; // [sp+1h] [bp-13h] BYREF\n  char *v12; // [sp+8h] [bp-Ch]\n\n  v3 = this;\n  if ( !a3 )\n  {\n    this = (DS_Dictionary *)DS_Dictionary::stepIntoSubDictWithKey(this, a2);\n    if ( !this )\n      return cocos2d::CCArray::create(nullptr);\n  }\n  v5 = 0;\n  v6 = cocos2d::CCArray::create(this);\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    if ( (v10 & 1) != 0 )\n      v8 = v12;\n    else\n      v8 = &v11;\n    ObjectForKey = DS_Dictionary::getObjectForKey(v3, v8);\n    if ( ObjectForKey )\n      cocos2d::CCArray::addObject(v6, ObjectForKey);\n    ++v5;\n    std::string::~string((int)&v10);\n  }\n  DS_Dictionary::stepOutOfSubDict((int)v3);\n  return v6;\n}", "assembly": "; \n; DS_Dictionary::getArrayForKey from 0x80d9c0 to 0x80da4e (142 bytes)\n; \n; 7 xrefs:\n; > GameLevelManager::dataLoaded @ 0x4dd0ee\n; > GameLevelManager::dataLoaded @ 0x4dd6c2\n; > GJRewardItem::dataLoaded @ 0x516786\n; > LocalLevelManager::dataLoaded @ 0x544778\n; > LocalLevelManager::dataLoaded @ 0x544b8c\n; > DS_Dictionary::getDictForKey @ 0x80d72a\n; > DS_Dictionary::getObjectForKey @ 0x80d8f8\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:34 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x80D9CA)                ; +0x0, 0x80d9c0\nPUSH.W          {R4-R9,LR}                                             ; +0x2, 0x80d9c2\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x80d9c6\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x80d9c8\nSUB             SP, SP, #0x14                                          ; +0xa, 0x80d9ca\nMOV             R7, R0                                                 ; +0xc, 0x80d9cc\nLDR             R4, [R3]                                               ; +0xe, 0x80d9ce\nMOV             R6, R3                                                 ; +0x10, 0x80d9d0\nSTR             R4, [SP,#0x14+var_8]                                   ; +0x12, 0x80d9d2\nCBNZ            R2, loc_80D9EC                                         ; +0x14, 0x80d9d4\nBL              _ZN13DS_Dictionary22stepIntoSubDictWithKeyEPKc; DS_Dictionary::stepIntoSubDictWithKey(char const*) ; +0x16, 0x80d9d6\nCBNZ            R0, loc_80D9EC                                         ; +0x1a, 0x80d9da\nBL              _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x1c, 0x80d9dc\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x20, 0x80d9e0\nLDR             R3, [R6]                                               ; +0x22, 0x80d9e2\nCMP             R2, R3                                                 ; +0x24, 0x80d9e4\nBEQ             loc_80DA48                                             ; +0x26, 0x80d9e6\nBLX             __stack_chk_fail                                       ; +0x28, 0x80d9e8\nBL              _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x2c, 0x80d9ec\nLDR             R1, =(aIsarr - 0x80D9FA); \"_isArr\"                     ; +0x30, 0x80d9f0\nMOVS            R5, #0                                                 ; +0x32, 0x80d9f2\nMOV             R8, SP                                                 ; +0x34, 0x80d9f4\nADD             R1, PC; \"_isArr\"                                       ; +0x36, 0x80d9f6\nMOV             R4, R0                                                 ; +0x38, 0x80d9f8\nMOV             R0, R7; this                                           ; +0x3a, 0x80d9fa\nBL              _ZN13DS_Dictionary9removeKeyEPKc; DS_Dictionary::removeKey(char const*) ; +0x3c, 0x80d9fc\nMOV             R0, R7; this                                           ; +0x40, 0x80da00\nBL              _ZN13DS_Dictionary10getNumKeysEv; DS_Dictionary::getNumKeys(void) ; +0x42, 0x80da02\nMOV             R9, R0                                                 ; +0x46, 0x80da06\nCMP             R5, R9                                                 ; +0x48, 0x80da08\nBGE             loc_80DA3E                                             ; +0x4a, 0x80da0a\nMOV             R1, R7; unsigned int                                   ; +0x4c, 0x80da0c\nMOV             R0, R8; this                                           ; +0x4e, 0x80da0e\nMOV             R2, R5                                                 ; +0x50, 0x80da10\nBL              _ZN13DS_Dictionary6getKeyEj; DS_Dictionary::getKey(uint) ; +0x52, 0x80da12\nLDRB.W          R3, [SP,#0x14+var_14]                                  ; +0x56, 0x80da16\nMOV             R0, R7; this                                           ; +0x5a, 0x80da1a\nLSLS            R3, R3, #0x1F                                          ; +0x5c, 0x80da1c\nITE PL                                                                 ; +0x5e, 0x80da1e\nADDPL.W         R1, SP, #0x14+var_13                                   ; +0x60, 0x80da20\nLDRMI           R1, [SP,#0x14+var_C]; char *                           ; +0x64, 0x80da24\nBL              _ZN13DS_Dictionary15getObjectForKeyEPKc; DS_Dictionary::getObjectForKey(char const*) ; +0x66, 0x80da26\nMOV             R1, R0; cocos2d::CCObject *                            ; +0x6a, 0x80da2a\nCBZ             R0, loc_80DA34                                         ; +0x6c, 0x80da2c\nMOV             R0, R4; this                                           ; +0x6e, 0x80da2e\nBL              _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x70, 0x80da30\nMOV             R0, R8                                                 ; +0x74, 0x80da34\nADDS            R5, #1                                                 ; +0x76, 0x80da36\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x78, 0x80da38\nB               loc_80DA08                                             ; +0x7c, 0x80da3c\nMOV             R0, R7; this                                           ; +0x7e, 0x80da3e\nBL              _ZN13DS_Dictionary16stepOutOfSubDictEv; DS_Dictionary::stepOutOfSubDict(void) ; +0x80, 0x80da40\nMOV             R0, R4                                                 ; +0x84, 0x80da44\nB               loc_80D9E0                                             ; +0x86, 0x80da46\nADD             SP, SP, #0x14                                          ; +0x88, 0x80da48\nPOP.W           {R4-R9,PC}                                             ; +0x8a, 0x80da4a", "xrefs": ["GameLevelManager::dataLoaded @ 0x4dd0ee", "GameLevelManager::dataLoaded @ 0x4dd6c2", "GJRewardItem::dataLoaded @ 0x516786", "LocalLevelManager::dataLoaded @ 0x544778", "LocalLevelManager::dataLoaded @ 0x544b8c", "DS_Dictionary::getDictForKey @ 0x80d72a", "DS_Dictionary::getObjectForKey @ 0x80d8f8"], "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"}