{"type": "func", "start": 11821156, "end": 11821300, "name": "DS_Dictionary::decodeObjectForKey", "pseudocode": "// \n// DS_Dictionary::decodeObjectForKey from 0xb46064 to 0xb460f4 (144 bytes)\n// \n// 3 xrefs:\n// > DS_Dictionary::getDictForKey @ 0xb46b58\n// > DS_Dictionary::getObjectForKey @ 0xb46e90\n// > <???> @ 0x8ba88\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 *DS_Dictionary::decodeObjectForKey(DS_Dictionary *a1, const char *a2, bool a3, int IntegerForKey)\n{\n  ObjectDecoder *v5; // x0\n  cocos2d::CCObject *DecodedObject; // x19\n  bool v8; // w0\n  int v9; // [xsp+28h] [xbp+28h]\n  int v10; // [xsp+28h] [xbp+28h]\n\n  if ( !a3 )\n  {\n    v10 = IntegerForKey;\n    v8 = DS_Dictionary::stepIntoSubDictWithKey(a1, a2);\n    IntegerForKey = v10;\n    if ( !v8 )\n      return nullptr;\n  }\n  if ( IntegerForKey == -1 )\n    IntegerForKey = DS_Dictionary::getIntegerForKey(a1, \"kCEK\");\n  v9 = IntegerForKey;\n  v5 = ObjectDecoder::sharedDecoder();\n  DecodedObject = ObjectDecoder::getDecodedObject(v5, v9, a1);\n  DS_Dictionary::stepOutOfSubDict(a1);\n  return DecodedObject;\n}", "assembly": "; \n; DS_Dictionary::decodeObjectForKey from 0xb46064 to 0xb460f4 (144 bytes)\n; \n; 3 xrefs:\n; > DS_Dictionary::getDictForKey @ 0xb46b58\n; > DS_Dictionary::getObjectForKey @ 0xb46e90\n; > <???> @ 0x8ba88\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             X29, X30, [SP,#var_30]!                                ; +0x0, 0xb46064\nUXTB            W2, W2                                                 ; +0x4, 0xb46068\nMOV             X29, SP                                                ; +0x8, 0xb4606c\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0xc, 0xb46070\nMOV             X20, X0                                                ; +0x10, 0xb46074\nCBZ             W2, loc_B460B8                                         ; +0x14, 0xb46078\nCMN             W3, #1                                                 ; +0x18, 0xb4607c\nB.EQ            loc_B460DC                                             ; +0x1c, 0xb46080\nSTR             X3, [X29,#0x30+var_8]                                  ; +0x20, 0xb46084\nBL              _ZN13ObjectDecoder13sharedDecoderEv; ObjectDecoder::sharedDecoder(void) ; +0x24, 0xb46088\nLDR             X3, [X29,#0x30+var_8]                                  ; +0x28, 0xb4608c\nMOV             X2, X20; DS_Dictionary *                               ; +0x2c, 0xb46090\nMOV             W1, W3; int                                            ; +0x30, 0xb46094\nBL              _ZN13ObjectDecoder16getDecodedObjectEiP13DS_Dictionary; ObjectDecoder::getDecodedObject(int,DS_Dictionary *) ; +0x34, 0xb46098\nMOV             X19, X0                                                ; +0x38, 0xb4609c\nMOV             X0, X20; this                                          ; +0x3c, 0xb460a0\nBL              _ZN13DS_Dictionary16stepOutOfSubDictEv; DS_Dictionary::stepOutOfSubDict(void) ; +0x40, 0xb460a4\nMOV             X0, X19; this                                          ; +0x44, 0xb460a8\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x48, 0xb460ac\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x4c, 0xb460b0\nRET                                                                    ; +0x50, 0xb460b4\nSTR             X3, [X29,#0x30+var_8]                                  ; +0x54, 0xb460b8\nBL              _ZN13DS_Dictionary22stepIntoSubDictWithKeyEPKc; DS_Dictionary::stepIntoSubDictWithKey(char const*) ; +0x58, 0xb460bc\nUXTB            W0, W0                                                 ; +0x5c, 0xb460c0\nLDR             X3, [X29,#0x30+var_8]                                  ; +0x60, 0xb460c4\nCBNZ            W0, loc_B4607C                                         ; +0x64, 0xb460c8\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x68, 0xb460cc\nMOV             X0, #0                                                 ; +0x6c, 0xb460d0\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x70, 0xb460d4\nRET                                                                    ; +0x74, 0xb460d8\nADRP            X1, #aKcek@PAGE; \"kCEK\"                                ; +0x78, 0xb460dc\nMOV             X0, X20; this                                          ; +0x7c, 0xb460e0\nADD             X1, X1, #aKcek@PAGEOFF; \"kCEK\"                         ; +0x80, 0xb460e4\nBL              _ZN13DS_Dictionary16getIntegerForKeyEPKc; DS_Dictionary::getIntegerForKey(char const*) ; +0x84, 0xb460e8\nMOV             W3, W0                                                 ; +0x88, 0xb460ec\nB               loc_B46084                                             ; +0x8c, 0xb460f0", "xrefs": ["DS_Dictionary::getDictForKey @ 0xb46b58", "DS_Dictionary::getObjectForKey @ 0xb46e90", "<???> @ 0x8ba88"], "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"}