{"type": "func", "start": 5371104416, "end": 5371104553, "name": "CCNodeContainer::create", "pseudocode": "// \n// CCNodeContainer::create from 0x140248ca0 to 0x140248d29 (137 bytes)\n// \n// 11 xrefs:\n// > GJBaseGameLayer::setupLayers @ 0x140209b5b\n// > GJBaseGameLayer::setupLayers @ 0x140209b81\n// > GJBaseGameLayer::setupLayers @ 0x140209ba7\n// > GJBaseGameLayer::setupLayers @ 0x140209bcd\n// > GJBaseGameLayer::setupLayers @ 0x140209bf3\n// > GJBaseGameLayer::setupLayers @ 0x140209c19\n// > GJBaseGameLayer::setupLayers @ 0x140209c3f\n// > GJBaseGameLayer::setupLayers @ 0x140209c65\n// > GJBaseGameLayer::setupLayers @ 0x140209c8b\n// > GJBaseGameLayer::parentForZLayer @ 0x14020f1f6\n// > <???> @ 0x1406ce7a8\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\nCCNodeContainer *CCNodeContainer::create()\n{\n  CCNodeContainer *v0; // rbx\n\n  v0 = (CCNodeContainer *)operator new(0x140u);\n  memset(v0, 0, sizeof(CCNodeContainer));\n  cocos2d::CCNode::CCNode(v0);\n  v0->__vftable = (CCNodeContainer_vtbl *)&CCNodeContainer::`vftable';\n  if ( cocos2d::CCNode::init(v0) )\n  {\n    cocos2d::CCObject::autorelease(v0);\n    return v0;\n  }\n  else\n  {\n    ((void (__fastcall *)(CCNodeContainer *, __int64))v0->~CCNodeContainer)(v0, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; CCNodeContainer::create from 0x140248ca0 to 0x140248d29 (137 bytes)\n; \n; 11 xrefs:\n; > GJBaseGameLayer::setupLayers @ 0x140209b5b\n; > GJBaseGameLayer::setupLayers @ 0x140209b81\n; > GJBaseGameLayer::setupLayers @ 0x140209ba7\n; > GJBaseGameLayer::setupLayers @ 0x140209bcd\n; > GJBaseGameLayer::setupLayers @ 0x140209bf3\n; > GJBaseGameLayer::setupLayers @ 0x140209c19\n; > GJBaseGameLayer::setupLayers @ 0x140209c3f\n; > GJBaseGameLayer::setupLayers @ 0x140209c65\n; > GJBaseGameLayer::setupLayers @ 0x140209c8b\n; > GJBaseGameLayer::parentForZLayer @ 0x14020f1f6\n; > <???> @ 0x1406ce7a8\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, 0x140248ca0\nsub     rsp, 20h                                                       ; +0x2, 0x140248ca2\nmov     ecx, 140h; Size                                                ; +0x6, 0x140248ca6\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xb, 0x140248cab\nmov     rbx, rax                                                       ; +0x10, 0x140248cb0\nmov     [rsp+28h+arg_0], rax                                           ; +0x13, 0x140248cb3\nxor     edx, edx; Val                                                  ; +0x18, 0x140248cb8\nmov     r8d, 140h; Size                                                ; +0x1a, 0x140248cba\nmov     rcx, rax; void *                                               ; +0x20, 0x140248cc0\ncall    memset                                                         ; +0x23, 0x140248cc3\nmov     rcx, rbx                                                       ; +0x28, 0x140248cc8\ncall    cs:??0CCNode@cocos2d@@QEAA@XZ; cocos2d::CCNode::CCNode(void)   ; +0x2b, 0x140248ccb\nlea     rax, ??_7CCNodeContainer@@6B@; const CCNodeContainer::`vftable' ; +0x31, 0x140248cd1\nmov     [rbx], rax                                                     ; +0x38, 0x140248cd8\nmov     rax, cs:off_1405663B0                                          ; +0x3b, 0x140248cdb\nlea     rcx, CCNodeContainer__init; Merged with: CCNodeContainer::init, CheckpointObject::init, GJFriendRequest::init, GJObjectDecoder::init, GJSmartBlockPreviewSprite::init, GJUserMessage::init ; +0x42, 0x140248ce2\ncmp     rax, rcx                                                       ; +0x49, 0x140248ce9\nmov     rcx, rbx                                                       ; +0x4c, 0x140248cec\njnz     short loc_140248D11                                            ; +0x4f, 0x140248cef\ncall    cs:__imp_?init@CCNode@cocos2d@@UEAA_NXZ; cocos2d::CCNode::init(void) ; +0x51, 0x140248cf1\ntest    al, al                                                         ; +0x57, 0x140248cf7\njnz     short loc_140248D17                                            ; +0x59, 0x140248cf9\nmov     rax, [rbx]                                                     ; +0x5b, 0x140248cfb\nmov     edx, 1                                                         ; +0x5e, 0x140248cfe\nmov     rcx, rbx                                                       ; +0x63, 0x140248d03\ncall    qword ptr [rax+8]                                              ; +0x66, 0x140248d06\nxor     eax, eax                                                       ; +0x69, 0x140248d09\nadd     rsp, 20h                                                       ; +0x6b, 0x140248d0b\npop     rbx                                                            ; +0x6f, 0x140248d0f\nretn                                                                   ; +0x70, 0x140248d10\ncall    rax ; CCNodeContainer__init; Merged with: CCNodeContainer::init, CheckpointObject::init, GJFriendRequest::init, GJObjectDecoder::init, GJSmartBlockPreviewSprite::init, GJUserMessage::init ; +0x71, 0x140248d11\ntest    al, al                                                         ; +0x73, 0x140248d13\njz      short loc_140248CFB                                            ; +0x75, 0x140248d15\nmov     rcx, rbx                                                       ; +0x77, 0x140248d17\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x7a, 0x140248d1a\nmov     rax, rbx                                                       ; +0x80, 0x140248d20\nadd     rsp, 20h                                                       ; +0x83, 0x140248d23\npop     rbx                                                            ; +0x87, 0x140248d27\nretn                                                                   ; +0x88, 0x140248d28", "xrefs": ["GJBaseGameLayer::setupLayers @ 0x140209b5b", "GJBaseGameLayer::setupLayers @ 0x140209b81", "GJBaseGameLayer::setupLayers @ 0x140209ba7", "GJBaseGameLayer::setupLayers @ 0x140209bcd", "GJBaseGameLayer::setupLayers @ 0x140209bf3", "GJBaseGameLayer::setupLayers @ 0x140209c19", "GJBaseGameLayer::setupLayers @ 0x140209c3f", "GJBaseGameLayer::setupLayers @ 0x140209c65", "GJBaseGameLayer::setupLayers @ 0x140209c8b", "GJBaseGameLayer::parentForZLayer @ 0x14020f1f6", "<???> @ 0x1406ce7a8"], "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"}