{"type": "func", "start": 4296422040, "end": 4296422164, "name": "DS_Dictionary::decodeObjectForKey", "pseudocode": "// \n// DS_Dictionary::decodeObjectForKey from 0x100163298 to 0x100163314 (124 bytes)\n// \n// 2 xrefs:\n// > DS_Dictionary::getObjectForKey @ 0x1001629a0\n// > DS_Dictionary::getDictForKey @ 0x100163160\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::CCObject *__fastcall DS_Dictionary::decodeObjectForKey(\n        DS_Dictionary *a1,\n        const char *a2,\n        bool a3,\n        int IntegerForKey)\n{\n  ObjectDecoder *v6; // x0\n  cocos2d::CCObject *result; // x0\n  std::__vector_base<pugi::xml_node>::pointer end; // x8\n\n  if ( !a3 && !DS_Dictionary::stepIntoSubDictWithKey(a1, a2) )\n    return nullptr;\n  if ( IntegerForKey == -1 )\n    IntegerForKey = DS_Dictionary::getIntegerForKey(a1, \"kCEK\");\n  v6 = ObjectDecoder::sharedDecoder();\n  result = ObjectDecoder::getDecodedObject(v6, IntegerForKey, a1);\n  end = a1->dictTree.__end_;\n  if ( (unsigned __int64)((char *)end - (char *)a1->dictTree.__begin_) >= 9 )\n    a1->dictTree.__end_ = end - 1;\n  return result;\n}", "assembly": "; \n; DS_Dictionary::decodeObjectForKey from 0x100163298 to 0x100163314 (124 bytes)\n; \n; 2 xrefs:\n; > DS_Dictionary::getObjectForKey @ 0x1001629a0\n; > DS_Dictionary::getDictForKey @ 0x100163160\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100163298\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10016329c\nADD             X29, SP, #0x10                                         ; +0x8, 0x1001632a0\nMOV             X20, X3                                                ; +0xc, 0x1001632a4\nMOV             X19, X0                                                ; +0x10, 0x1001632a8\nTBNZ            W2, #0, loc_1001632BC                                  ; +0x14, 0x1001632ac\nMOV             X0, X19                                                ; +0x18, 0x1001632b0\nBL              DS_Dictionary__stepIntoSubDictWithKey                  ; +0x1c, 0x1001632b4\nCBZ             W0, loc_100163304                                      ; +0x20, 0x1001632b8\nCMN             W20, #1                                                ; +0x24, 0x1001632bc\nB.NE            loc_1001632D8                                          ; +0x28, 0x1001632c0\nADRL            X1, aKcek; \"kCEK\"                                      ; +0x2c, 0x1001632c4\nMOV             X0, X19                                                ; +0x34, 0x1001632cc\nBL              DS_Dictionary__getIntegerForKey                        ; +0x38, 0x1001632d0\nMOV             X20, X0                                                ; +0x3c, 0x1001632d4\nBL              ObjectDecoder__sharedDecoder                           ; +0x40, 0x1001632d8\nMOV             X1, X20                                                ; +0x44, 0x1001632dc\nMOV             X2, X19                                                ; +0x48, 0x1001632e0\nBL              ObjectDecoder__getDecodedObject                        ; +0x4c, 0x1001632e4\nLDP             X9, X8, [X19,#0xD0]                                    ; +0x50, 0x1001632e8\nSUB             X9, X8, X9                                             ; +0x54, 0x1001632ec\nCMP             X9, #9                                                 ; +0x58, 0x1001632f0\nB.CC            loc_100163308                                          ; +0x5c, 0x1001632f4\nSUB             X8, X8, #8                                             ; +0x60, 0x1001632f8\nSTR             X8, [X19,#0xD8]                                        ; +0x64, 0x1001632fc\nB               loc_100163308                                          ; +0x68, 0x100163300\nMOV             X0, #0                                                 ; +0x6c, 0x100163304\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x70, 0x100163308\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x74, 0x10016330c\nRET                                                                    ; +0x78, 0x100163310", "xrefs": ["DS_Dictionary::getObjectForKey @ 0x1001629a0", "DS_Dictionary::getDictForKey @ 0x100163160"], "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"}