{"type": "func", "start": 6442797952, "end": 6442798092, "name": "cocos2d::CCTransitionFade::create", "pseudocode": "// \n// cocos2d::CCTransitionFade::create from 0x180054b80 to 0x180054c0c (140 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCDirector::popSceneWithTransition @ 0x1800c24fa\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bc7fc\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:46 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nstruct cocos2d::CCTransitionFade *__fastcall cocos2d::CCTransitionFade::create(float a1, struct cocos2d::CCScene *a2)\n{\n  cocos2d::CCScene *v3; // rax\n  cocos2d::CCTransitionFade *v4; // rbx\n  bool (__fastcall *v5)(cocos2d::CCTransitionFade *__hidden, float, struct cocos2d::CCScene *, const struct cocos2d::_ccColor3B *); // rdx\n\n  v3 = (cocos2d::CCScene *)sub_1800E4AC0(0x168u);\n  v4 = v3;\n  if ( v3 )\n  {\n    cocos2d::CCScene::CCScene(v3);\n    *(_QWORD *)v4 = &cocos2d::CCTransitionFade::`vftable';\n  }\n  else\n  {\n    v4 = nullptr;\n  }\n  v5 = *(bool (__fastcall **)(cocos2d::CCTransitionFade *__hidden, float, struct cocos2d::CCScene *, const struct cocos2d::_ccColor3B *))(*(_QWORD *)v4 + 904LL);\n  if ( v5 == cocos2d::CCTransitionFade::initWithDuration )\n    cocos2d::CCTransitionFade::initWithDuration(v4, a1, a2, (const struct cocos2d::_ccColor3B *)&unk_1800F4E50);\n  else\n    ((void (__fastcall *)(cocos2d::CCTransitionFade *, bool (__fastcall *)(cocos2d::CCTransitionFade *__hidden, float, struct cocos2d::CCScene *, const struct cocos2d::_ccColor3B *), struct cocos2d::CCScene *, void *))v5)(\n      v4,\n      v5,\n      a2,\n      &unk_1800F4E50);\n  cocos2d::CCObject::autorelease(v4);\n  return v4;\n}", "assembly": "; \n; cocos2d::CCTransitionFade::create from 0x180054b80 to 0x180054c0c (140 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCDirector::popSceneWithTransition @ 0x1800c24fa\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bc7fc\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:46 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180054b80\npush    rdi                                                            ; +0x5, 0x180054b85\nsub     rsp, 30h                                                       ; +0x6, 0x180054b86\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xa, 0x180054b8a\nmov     rdi, rdx                                                       ; +0xf, 0x180054b8f\nmovaps  xmm6, xmm0                                                     ; +0x12, 0x180054b92\nmov     ecx, 168h; Size                                                ; +0x15, 0x180054b95\ncall    sub_1800E4AC0                                                  ; +0x1a, 0x180054b9a\nmov     rbx, rax                                                       ; +0x1f, 0x180054b9f\nmov     [rsp+38h+arg_8], rax                                           ; +0x22, 0x180054ba2\ntest    rax, rax                                                       ; +0x27, 0x180054ba7\njz      short loc_180054BC0                                            ; +0x2a, 0x180054baa\nmov     rcx, rax; this                                                 ; +0x2c, 0x180054bac\ncall    ??0CCScene@cocos2d@@QEAA@XZ; cocos2d::CCScene::CCScene(void)   ; +0x2f, 0x180054baf\nlea     rax, ??_7CCTransitionFade@cocos2d@@6B@; const cocos2d::CCTransitionFade::`vftable' ; +0x34, 0x180054bb4\nmov     [rbx], rax                                                     ; +0x3b, 0x180054bbb\njmp     short loc_180054BC2                                            ; +0x3e, 0x180054bbe\nxor     ebx, ebx                                                       ; +0x40, 0x180054bc0\nmov     rax, [rbx]                                                     ; +0x42, 0x180054bc2\nmov     rdx, [rax+388h]                                                ; +0x45, 0x180054bc5\nlea     rax, ?initWithDuration@CCTransitionFade@cocos2d@@UEAA_NMPEAVCCScene@2@AEBU_ccColor3B@2@@Z; cocos2d::CCTransitionFade::initWithDuration(float,cocos2d::CCScene *,cocos2d::_ccColor3B const &) ; +0x4c, 0x180054bcc\nlea     r9, unk_1800F4E50; struct cocos2d::_ccColor3B *                ; +0x53, 0x180054bd3\nmov     r8, rdi; struct cocos2d::CCScene *                             ; +0x5a, 0x180054bda\nmovaps  xmm1, xmm6; float                                              ; +0x5d, 0x180054bdd\nmov     rcx, rbx; this                                                 ; +0x60, 0x180054be0\ncmp     rdx, rax                                                       ; +0x63, 0x180054be3\njnz     short loc_180054BEF                                            ; +0x66, 0x180054be6\ncall    ?initWithDuration@CCTransitionFade@cocos2d@@UEAA_NMPEAVCCScene@2@AEBU_ccColor3B@2@@Z; cocos2d::CCTransitionFade::initWithDuration(float,cocos2d::CCScene *,cocos2d::_ccColor3B const &) ; +0x68, 0x180054be8\njmp     short loc_180054BF1                                            ; +0x6d, 0x180054bed\ncall    rdx                                                            ; +0x6f, 0x180054bef\nmov     rcx, rbx; this                                                 ; +0x71, 0x180054bf1\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x74, 0x180054bf4\nmov     rax, rbx                                                       ; +0x79, 0x180054bf9\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x7c, 0x180054bfc\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x81, 0x180054c01\nadd     rsp, 30h                                                       ; +0x86, 0x180054c06\npop     rdi                                                            ; +0x8a, 0x180054c0a\nretn                                                                   ; +0x8b, 0x180054c0b", "xrefs": ["cocos2d::CCDirector::popSceneWithTransition @ 0x1800c24fa", "<???> @ 0x18014cf68", "<???> @ 0x1801bc7fc"], "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"}