{"type": "func", "start": 6442784032, "end": 6442784127, "name": "cocos2d::CCLayer::create", "pseudocode": "// \n// cocos2d::CCLayer::create from 0x180051520 to 0x18005157f (95 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bc0ac\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:45 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nstruct cocos2d::CCLayer *__fastcall cocos2d::CCLayer::create()\n{\n  cocos2d::CCLayer *v0; // rax\n  cocos2d::CCLayer *v1; // rbx\n\n  v0 = (cocos2d::CCLayer *)sub_1800E4AC0(0x198u);\n  if ( v0 )\n    v1 = cocos2d::CCLayer::CCLayer(v0);\n  else\n    v1 = nullptr;\n  if ( v1 )\n  {\n    if ( (*(unsigned __int8 (__fastcall **)(cocos2d::CCLayer *))(*(_QWORD *)v1 + 72LL))(v1) )\n    {\n      cocos2d::CCObject::autorelease(v1);\n      return v1;\n    }\n    (*(void (__fastcall **)(cocos2d::CCLayer *, __int64))(*(_QWORD *)v1 + 8LL))(v1, 1);\n  }\n  return nullptr;\n}", "assembly": "; \n; cocos2d::CCLayer::create from 0x180051520 to 0x18005157f (95 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bc0ac\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:45 +0000\n; \npush    rbx                                                            ; +0x0, 0x180051520\nsub     rsp, 20h                                                       ; +0x2, 0x180051522\nmov     ecx, 198h; Size                                                ; +0x6, 0x180051526\ncall    sub_1800E4AC0                                                  ; +0xb, 0x18005152b\nmov     [rsp+28h+arg_0], rax                                           ; +0x10, 0x180051530\ntest    rax, rax                                                       ; +0x15, 0x180051535\njz      short loc_180051547                                            ; +0x18, 0x180051538\nmov     rcx, rax; this                                                 ; +0x1a, 0x18005153a\ncall    ??0CCLayer@cocos2d@@QEAA@XZ; cocos2d::CCLayer::CCLayer(void)   ; +0x1d, 0x18005153d\nmov     rbx, rax                                                       ; +0x22, 0x180051542\njmp     short loc_180051549                                            ; +0x25, 0x180051545\nxor     ebx, ebx                                                       ; +0x27, 0x180051547\ntest    rbx, rbx                                                       ; +0x29, 0x180051549\njz      short loc_180051577                                            ; +0x2c, 0x18005154c\nmov     rax, [rbx]                                                     ; +0x2e, 0x18005154e\nmov     rcx, rbx                                                       ; +0x31, 0x180051551\ncall    qword ptr [rax+48h]                                            ; +0x34, 0x180051554\nmov     rcx, rbx; this                                                 ; +0x37, 0x180051557\ntest    al, al                                                         ; +0x3a, 0x18005155a\njz      short loc_18005156C                                            ; +0x3c, 0x18005155c\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x3e, 0x18005155e\nmov     rax, rbx                                                       ; +0x43, 0x180051563\nadd     rsp, 20h                                                       ; +0x46, 0x180051566\npop     rbx                                                            ; +0x4a, 0x18005156a\nretn                                                                   ; +0x4b, 0x18005156b\nmov     rax, [rbx]                                                     ; +0x4c, 0x18005156c\nmov     edx, 1                                                         ; +0x4f, 0x18005156f\ncall    qword ptr [rax+8]                                              ; +0x54, 0x180051574\nxor     eax, eax                                                       ; +0x57, 0x180051577\nadd     rsp, 20h                                                       ; +0x59, 0x180051579\npop     rbx                                                            ; +0x5d, 0x18005157d\nretn                                                                   ; +0x5e, 0x18005157e", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bc0ac"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}