{"type": "func", "start": 4296547936, "end": 4296548054, "name": "DS_Dictionary::decodeObjectForKey", "pseudocode": "// \n// DS_Dictionary::decodeObjectForKey from 0x100181e60 to 0x100181ed6 (118 bytes)\n// \n// 0 xrefs:\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 *v5; // rax\n  cocos2d::CCObject *result; // rax\n\n  if ( !a3 && !DS_Dictionary::stepIntoSubDictWithKey(a1, a2) )\n    return nullptr;\n  if ( IntegerForKey == -1 )\n    IntegerForKey = DS_Dictionary::getIntegerForKey(a1, \"kCEK\");\n  v5 = ObjectDecoder::sharedDecoder();\n  result = ObjectDecoder::getDecodedObject(v5, IntegerForKey, a1);\n  if ( (std::__vector_base<pugi::xml_node>::pointer)((char *)a1->dictTree.__end_ - (char *)a1->dictTree.__begin_) >= (std::__vector_base<pugi::xml_node>::pointer)9 )\n    --a1->dictTree.__end_;\n  return result;\n}", "assembly": "; \n; DS_Dictionary::decodeObjectForKey from 0x100181e60 to 0x100181ed6 (118 bytes)\n; \n; 0 xrefs:\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\npush    rbp                                                            ; +0x0, 0x100181e60\nmov     rbp, rsp                                                       ; +0x1, 0x100181e61\npush    r14                                                            ; +0x4, 0x100181e64\npush    rbx                                                            ; +0x6, 0x100181e66\nmov     r14d, ecx                                                      ; +0x7, 0x100181e67\nmov     rbx, rdi                                                       ; +0xa, 0x100181e6a\ntest    edx, edx                                                       ; +0xd, 0x100181e6d\njnz     short loc_100181E7D                                            ; +0xf, 0x100181e6f\nmov     rdi, rbx                                                       ; +0x11, 0x100181e71\ncall    DS_Dictionary__stepIntoSubDictWithKey                          ; +0x14, 0x100181e74\ntest    al, al                                                         ; +0x19, 0x100181e79\njz      short loc_100181ECF                                            ; +0x1b, 0x100181e7b\ncmp     r14d, 0FFFFFFFFh                                               ; +0x1d, 0x100181e7d\njnz     short loc_100181E95                                            ; +0x21, 0x100181e81\nlea     rsi, aKcek; \"kCEK\"                                             ; +0x23, 0x100181e83\nmov     rdi, rbx                                                       ; +0x2a, 0x100181e8a\ncall    DS_Dictionary__getIntegerForKey                                ; +0x2d, 0x100181e8d\nmov     r14d, eax                                                      ; +0x32, 0x100181e92\ncall    ObjectDecoder__sharedDecoder                                   ; +0x35, 0x100181e95\nmov     rdi, rax                                                       ; +0x3a, 0x100181e9a\nmov     esi, r14d                                                      ; +0x3d, 0x100181e9d\nmov     rdx, rbx                                                       ; +0x40, 0x100181ea0\ncall    ObjectDecoder__getDecodedObject                                ; +0x43, 0x100181ea3\nmov     rcx, [rbx+0D8h]                                                ; +0x48, 0x100181ea8\nmov     rdx, rcx                                                       ; +0x4f, 0x100181eaf\nsub     rdx, [rbx+0D0h]                                                ; +0x52, 0x100181eb2\ncmp     rdx, 9                                                         ; +0x59, 0x100181eb9\njb      short loc_100181ECA                                            ; +0x5d, 0x100181ebd\nadd     rcx, 0FFFFFFFFFFFFFFF8h                                        ; +0x5f, 0x100181ebf\nmov     [rbx+0D8h], rcx                                                ; +0x63, 0x100181ec3\npop     rbx                                                            ; +0x6a, 0x100181eca\npop     r14                                                            ; +0x6b, 0x100181ecb\npop     rbp                                                            ; +0x6d, 0x100181ecd\nretn                                                                   ; +0x6e, 0x100181ece\nxor     eax, eax                                                       ; +0x6f, 0x100181ecf\npop     rbx                                                            ; +0x71, 0x100181ed1\npop     r14                                                            ; +0x72, 0x100181ed2\npop     rbp                                                            ; +0x74, 0x100181ed4\nretn                                                                   ; +0x75, 0x100181ed5", "xrefs": [], "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"}