{"type": "func", "start": 5371346880, "end": 5371347028, "name": "GJObjectDecoder::sharedDecoder", "pseudocode": "// \n// GJObjectDecoder::sharedDecoder from 0x140283fc0 to 0x140284054 (148 bytes)\n// \n// 3 xrefs:\n// > AppDelegate::applicationDidFinishLaunching @ 0x140082b18\n// > GameManager::dataLoaded @ 0x140186ad1\n// > <???> @ 0x1406d14f0\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\nGJObjectDecoder *GJObjectDecoder::sharedDecoder()\n{\n  GJObjectDecoder *result; // rax\n  cocos2d::CCNode *v1; // [rsp+30h] [rbp+8h]\n\n  result = (GJObjectDecoder *)qword_1406C2F08;\n  if ( !qword_1406C2F08 )\n  {\n    v1 = (cocos2d::CCNode *)operator new(0x148u);\n    memset(v1, 0, 0x148u);\n    cocos2d::CCNode::CCNode(v1);\n    v1->__vftable = (cocos2d::CCNode_vtbl *)&GJObjectDecoder::`vftable';\n    v1[1].__vftable = (cocos2d::CCNode_vtbl *)&GJObjectDecoder::`vftable';\n    qword_1406C2F08 = (__int64)v1;\n    cocos2d::CCNode::init(v1);\n    return (GJObjectDecoder *)qword_1406C2F08;\n  }\n  return result;\n}", "assembly": "; \n; GJObjectDecoder::sharedDecoder from 0x140283fc0 to 0x140284054 (148 bytes)\n; \n; 3 xrefs:\n; > AppDelegate::applicationDidFinishLaunching @ 0x140082b18\n; > GameManager::dataLoaded @ 0x140186ad1\n; > <???> @ 0x1406d14f0\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, 0x140283fc0\nsub     rsp, 20h                                                       ; +0x2, 0x140283fc2\nmov     rax, cs:qword_1406C2F08                                        ; +0x6, 0x140283fc6\ntest    rax, rax                                                       ; +0xd, 0x140283fcd\njnz     short loc_14028404E                                            ; +0x10, 0x140283fd0\nmov     ecx, 148h; Size                                                ; +0x12, 0x140283fd2\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x17, 0x140283fd7\nmov     rbx, rax                                                       ; +0x1c, 0x140283fdc\nmov     [rsp+28h+arg_0], rax                                           ; +0x1f, 0x140283fdf\nxor     edx, edx; Val                                                  ; +0x24, 0x140283fe4\nmov     r8d, 148h; Size                                                ; +0x26, 0x140283fe6\nmov     rcx, rax; void *                                               ; +0x2c, 0x140283fec\ncall    memset                                                         ; +0x2f, 0x140283fef\nmov     rcx, rbx                                                       ; +0x34, 0x140283ff4\ncall    cs:??0CCNode@cocos2d@@QEAA@XZ; cocos2d::CCNode::CCNode(void)   ; +0x37, 0x140283ff7\nlea     rax, ??_7GJObjectDecoder@@6B@; const GJObjectDecoder::`vftable' ; +0x3d, 0x140283ffd\nmov     [rbx], rax                                                     ; +0x44, 0x140284004\nlea     rax, ??_7GJObjectDecoder@@6B@_0; const GJObjectDecoder::`vftable' ; +0x47, 0x140284007\nmov     [rbx+140h], rax                                                ; +0x4e, 0x14028400e\nmov     cs:qword_1406C2F08, rbx                                        ; +0x55, 0x140284015\nmov     rax, cs:off_14056D550                                          ; +0x5c, 0x14028401c\nlea     rcx, CCNodeContainer__init; Merged with: CCNodeContainer::init, CheckpointObject::init, GJFriendRequest::init, GJObjectDecoder::init, GJSmartBlockPreviewSprite::init, GJUserMessage::init ; +0x63, 0x140284023\ncmp     rax, rcx                                                       ; +0x6a, 0x14028402a\nmov     rcx, rbx                                                       ; +0x6d, 0x14028402d\njnz     short loc_140284045                                            ; +0x70, 0x140284030\ncall    cs:__imp_?init@CCNode@cocos2d@@UEAA_NXZ; cocos2d::CCNode::init(void) ; +0x72, 0x140284032\nmov     rax, cs:qword_1406C2F08                                        ; +0x78, 0x140284038\nadd     rsp, 20h                                                       ; +0x7f, 0x14028403f\npop     rbx                                                            ; +0x83, 0x140284043\nretn                                                                   ; +0x84, 0x140284044\ncall    rax ; CCNodeContainer__init; Merged with: CCNodeContainer::init, CheckpointObject::init, GJFriendRequest::init, GJObjectDecoder::init, GJSmartBlockPreviewSprite::init, GJUserMessage::init ; +0x85, 0x140284045\nmov     rax, cs:qword_1406C2F08                                        ; +0x87, 0x140284047\nadd     rsp, 20h                                                       ; +0x8e, 0x14028404e\npop     rbx                                                            ; +0x92, 0x140284052\nretn                                                                   ; +0x93, 0x140284053", "xrefs": ["AppDelegate::applicationDidFinishLaunching @ 0x140082b18", "GameManager::dataLoaded @ 0x140186ad1", "<???> @ 0x1406d14f0"], "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"}