{"type": "func", "start": 6442847984, "end": 6442848120, "name": "ObjectDecoder::sharedDecoder", "pseudocode": "// \n// ObjectDecoder::sharedDecoder from 0x180060ef0 to 0x180060f78 (136 bytes)\n// \n// 5 xrefs:\n// > DS_Dictionary::decodeObjectForKey @ 0x180019b51\n// > DS_Dictionary::getDictForKey @ 0x18001a0e5\n// > DS_Dictionary::getObjectForKey @ 0x18001abd6\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b3594\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\n// Hidden C++ exception states: #wind=1\nstruct ObjectDecoder *__fastcall ObjectDecoder::sharedDecoder()\n{\n  struct ObjectDecoder *result; // rax\n  cocos2d::CCNode *v1; // rax\n  cocos2d::CCComponent *v2; // rbx\n  bool (__stdcall *init)(cocos2d::CCComponent *__hidden); // rdx\n\n  result = (struct ObjectDecoder *)qword_1801A8400;\n  if ( !qword_1801A8400 )\n  {\n    v1 = (cocos2d::CCNode *)operator new(0x148u);\n    v2 = (cocos2d::CCComponent *)v1;\n    if ( v1 )\n    {\n      cocos2d::CCNode::CCNode(v1);\n      v2->__vftable = (cocos2d::CCComponent_vtbl *)&ObjectDecoder::`vftable';\n      *(_QWORD *)&v2[3].m_uID = 0;\n    }\n    else\n    {\n      v2 = nullptr;\n    }\n    qword_1801A8400 = (__int64)v2;\n    init = v2->init;\n    if ( (char *)init == (char *)ObjectDecoder::init )\n      cocos2d::CCComponent::serialize(v2, init);\n    else\n      ((void (__fastcall *)(cocos2d::CCComponent *))init)(v2);\n    return (struct ObjectDecoder *)qword_1801A8400;\n  }\n  return result;\n}", "assembly": "; \n; ObjectDecoder::sharedDecoder from 0x180060ef0 to 0x180060f78 (136 bytes)\n; \n; 5 xrefs:\n; > DS_Dictionary::decodeObjectForKey @ 0x180019b51\n; > DS_Dictionary::getDictForKey @ 0x18001a0e5\n; > DS_Dictionary::getObjectForKey @ 0x18001abd6\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b3594\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    rbx                                                            ; +0x0, 0x180060ef0\nsub     rsp, 20h                                                       ; +0x2, 0x180060ef2\nmov     rax, cs:qword_1801A8400                                        ; +0x6, 0x180060ef6\ntest    rax, rax                                                       ; +0xd, 0x180060efd\njnz     short loc_180060F72                                            ; +0x10, 0x180060f00\nmov     ecx, 148h; Size                                                ; +0x12, 0x180060f02\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x17, 0x180060f07\nmov     rbx, rax                                                       ; +0x1c, 0x180060f0c\nmov     [rsp+28h+arg_0], rax                                           ; +0x1f, 0x180060f0f\ntest    rax, rax                                                       ; +0x24, 0x180060f14\njz      short loc_180060F38                                            ; +0x27, 0x180060f17\nmov     rcx, rax; this                                                 ; +0x29, 0x180060f19\ncall    ??0CCNode@cocos2d@@QEAA@XZ; cocos2d::CCNode::CCNode(void)      ; +0x2c, 0x180060f1c\nlea     rax, ??_7ObjectDecoder@@6B@; const ObjectDecoder::`vftable'    ; +0x31, 0x180060f21\nmov     [rbx], rax                                                     ; +0x38, 0x180060f28\nmov     qword ptr [rbx+140h], 0                                        ; +0x3b, 0x180060f2b\njmp     short loc_180060F3A                                            ; +0x46, 0x180060f36\nxor     ebx, ebx                                                       ; +0x48, 0x180060f38\nmov     cs:qword_1801A8400, rbx                                        ; +0x4a, 0x180060f3a\nmov     rax, [rbx]                                                     ; +0x51, 0x180060f41\nmov     rdx, [rax+48h]; void *                                         ; +0x54, 0x180060f44\nlea     rax, ?init@ObjectDecoder@@UEAA_NXZ; ObjectDecoder::init(void)  ; +0x58, 0x180060f48\nmov     rcx, rbx; this                                                 ; +0x5f, 0x180060f4f\ncmp     rdx, rax                                                       ; +0x62, 0x180060f52\njnz     short loc_180060F69                                            ; +0x65, 0x180060f55\ncall    ?serialize@CCComponent@cocos2d@@UEAA_NPEAX@Z; cocos2d::CCComponent::serialize(void *) ; +0x67, 0x180060f57\nmov     rax, cs:qword_1801A8400                                        ; +0x6c, 0x180060f5c\nadd     rsp, 20h                                                       ; +0x73, 0x180060f63\npop     rbx                                                            ; +0x77, 0x180060f67\nretn                                                                   ; +0x78, 0x180060f68\ncall    rdx                                                            ; +0x79, 0x180060f69\nmov     rax, cs:qword_1801A8400                                        ; +0x7b, 0x180060f6b\nadd     rsp, 20h                                                       ; +0x82, 0x180060f72\npop     rbx                                                            ; +0x86, 0x180060f76\nretn                                                                   ; +0x87, 0x180060f77", "xrefs": ["DS_Dictionary::decodeObjectForKey @ 0x180019b51", "DS_Dictionary::getDictForKey @ 0x18001a0e5", "DS_Dictionary::getObjectForKey @ 0x18001abd6", "<???> @ 0x1801438a8", "<???> @ 0x1801b3594"], "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"}