{"type": "func", "start": 6442556176, "end": 6442556302, "name": "DS_Dictionary::decodeObjectForKey", "pseudocode": "// \n// DS_Dictionary::decodeObjectForKey from 0x180019b10 to 0x180019b8e (126 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ae998\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\nstruct cocos2d::CCObject *__fastcall DS_Dictionary::decodeObjectForKey(\n        DS_Dictionary *this,\n        const char *a2,\n        char a3,\n        int IntegerForKey)\n{\n  struct cocos2d::CCObject *result; // rax\n  ObjectDecoder *v7; // rax\n\n  if ( !a3 && !DS_Dictionary::stepIntoSubDictWithKey(this, a2) )\n    return nullptr;\n  if ( IntegerForKey == -1 )\n    IntegerForKey = DS_Dictionary::getIntegerForKey(this, \"kCEK\");\n  v7 = ObjectDecoder::sharedDecoder();\n  result = ObjectDecoder::getDecodedObject(v7, IntegerForKey, this);\n  if ( (unsigned __int64)(this->dictTree._Mypair._Myval2._Mylast - this->dictTree._Mypair._Myval2._Myfirst) > 1 )\n    --this->dictTree._Mypair._Myval2._Mylast;\n  return result;\n}", "assembly": "; \n; DS_Dictionary::decodeObjectForKey from 0x180019b10 to 0x180019b8e (126 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ae998\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180019b10\npush    rdi                                                            ; +0x5, 0x180019b15\nsub     rsp, 20h                                                       ; +0x6, 0x180019b16\nmov     edi, r9d                                                       ; +0xa, 0x180019b1a\nmov     rbx, rcx                                                       ; +0xd, 0x180019b1d\ntest    r8b, r8b                                                       ; +0x10, 0x180019b20\njnz     short loc_180019B3B                                            ; +0x13, 0x180019b23\ncall    ?stepIntoSubDictWithKey@DS_Dictionary@@QEAA_NPEBD@Z; DS_Dictionary::stepIntoSubDictWithKey(char const *) ; +0x15, 0x180019b25\ntest    al, al                                                         ; +0x1a, 0x180019b2a\njnz     short loc_180019B3B                                            ; +0x1c, 0x180019b2c\nxor     eax, eax                                                       ; +0x1e, 0x180019b2e\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x20, 0x180019b30\nadd     rsp, 20h                                                       ; +0x25, 0x180019b35\npop     rdi                                                            ; +0x29, 0x180019b39\nretn                                                                   ; +0x2a, 0x180019b3a\ncmp     edi, 0FFFFFFFFh                                                ; +0x2b, 0x180019b3b\njnz     short loc_180019B51                                            ; +0x2e, 0x180019b3e\nlea     rdx, aKcek; \"kCEK\"                                             ; +0x30, 0x180019b40\nmov     rcx, rbx; this                                                 ; +0x37, 0x180019b47\ncall    ?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0x3a, 0x180019b4a\nmov     edi, eax                                                       ; +0x3f, 0x180019b4f\ncall    ?sharedDecoder@ObjectDecoder@@SAPEAV1@XZ; ObjectDecoder::sharedDecoder(void) ; +0x41, 0x180019b51\nmov     rcx, rax; this                                                 ; +0x46, 0x180019b56\nmov     r8, rbx; struct DS_Dictionary *                                ; +0x49, 0x180019b59\nmov     edx, edi; int                                                  ; +0x4c, 0x180019b5c\ncall    ?getDecodedObject@ObjectDecoder@@QEAAPEAVCCObject@cocos2d@@HPEAVDS_Dictionary@@@Z; ObjectDecoder::getDecodedObject(int,DS_Dictionary *) ; +0x4e, 0x180019b5e\nmov     rcx, [rbx+0D8h]                                                ; +0x53, 0x180019b63\nsub     rcx, [rbx+0D0h]                                                ; +0x5a, 0x180019b6a\nsar     rcx, 3                                                         ; +0x61, 0x180019b71\ncmp     rcx, 1                                                         ; +0x65, 0x180019b75\njbe     short loc_180019B83                                            ; +0x69, 0x180019b79\nadd     qword ptr [rbx+0D8h], 0FFFFFFFFFFFFFFF8h                       ; +0x6b, 0x180019b7b\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x73, 0x180019b83\nadd     rsp, 20h                                                       ; +0x78, 0x180019b88\npop     rdi                                                            ; +0x7c, 0x180019b8c\nretn                                                                   ; +0x7d, 0x180019b8d", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801ae998"], "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"}