{"type": "func", "start": 6442785600, "end": 6442785695, "name": "cocos2d::CCScene::create", "pseudocode": "// \n// cocos2d::CCScene::create from 0x180051b40 to 0x180051b9f (95 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCTransitionScene::initWithDuration @ 0x180054aa2\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b22bc\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 cocos2d::CCScene *__fastcall cocos2d::CCScene::create()\n{\n  cocos2d::CCScene *v0; // rax\n  cocos2d::CCScene *v1; // rbx\n\n  v0 = (cocos2d::CCScene *)operator new(0x148u);\n  if ( v0 )\n    v1 = cocos2d::CCScene::CCScene(v0);\n  else\n    v1 = nullptr;\n  if ( v1 )\n  {\n    if ( ((unsigned __int8 (__fastcall *)(cocos2d::CCScene *))v1->init)(v1) )\n    {\n      cocos2d::CCObject::autorelease(v1);\n      return v1;\n    }\n    ((void (__fastcall *)(cocos2d::CCScene *, __int64))v1->~CCScene)(v1, 1);\n  }\n  return nullptr;\n}", "assembly": "; \n; cocos2d::CCScene::create from 0x180051b40 to 0x180051b9f (95 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCTransitionScene::initWithDuration @ 0x180054aa2\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b22bc\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, 0x180051b40\nsub     rsp, 20h                                                       ; +0x2, 0x180051b42\nmov     ecx, 148h; Size                                                ; +0x6, 0x180051b46\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xb, 0x180051b4b\nmov     [rsp+28h+arg_0], rax                                           ; +0x10, 0x180051b50\ntest    rax, rax                                                       ; +0x15, 0x180051b55\njz      short loc_180051B67                                            ; +0x18, 0x180051b58\nmov     rcx, rax; this                                                 ; +0x1a, 0x180051b5a\ncall    ??0CCScene@cocos2d@@QEAA@XZ; cocos2d::CCScene::CCScene(void)   ; +0x1d, 0x180051b5d\nmov     rbx, rax                                                       ; +0x22, 0x180051b62\njmp     short loc_180051B69                                            ; +0x25, 0x180051b65\nxor     ebx, ebx                                                       ; +0x27, 0x180051b67\ntest    rbx, rbx                                                       ; +0x29, 0x180051b69\njz      short loc_180051B97                                            ; +0x2c, 0x180051b6c\nmov     rax, [rbx]                                                     ; +0x2e, 0x180051b6e\nmov     rcx, rbx                                                       ; +0x31, 0x180051b71\ncall    qword ptr [rax+48h]                                            ; +0x34, 0x180051b74\nmov     rcx, rbx; this                                                 ; +0x37, 0x180051b77\ntest    al, al                                                         ; +0x3a, 0x180051b7a\njz      short loc_180051B8C                                            ; +0x3c, 0x180051b7c\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x3e, 0x180051b7e\nmov     rax, rbx                                                       ; +0x43, 0x180051b83\nadd     rsp, 20h                                                       ; +0x46, 0x180051b86\npop     rbx                                                            ; +0x4a, 0x180051b8a\nretn                                                                   ; +0x4b, 0x180051b8b\nmov     rax, [rbx]                                                     ; +0x4c, 0x180051b8c\nmov     edx, 1                                                         ; +0x4f, 0x180051b8f\ncall    qword ptr [rax+8]                                              ; +0x54, 0x180051b94\nxor     eax, eax                                                       ; +0x57, 0x180051b97\nadd     rsp, 20h                                                       ; +0x59, 0x180051b99\npop     rbx                                                            ; +0x5d, 0x180051b9d\nretn                                                                   ; +0x5e, 0x180051b9e", "xrefs": ["cocos2d::CCTransitionScene::initWithDuration @ 0x180054aa2", "<???> @ 0x1801438a8", "<???> @ 0x1801b22bc"], "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"}