{"type": "func", "start": 6442798096, "end": 6442798245, "name": "cocos2d::CCTransitionFade::create", "pseudocode": "// \n// cocos2d::CCTransitionFade::create from 0x180054c10 to 0x180054ca5 (149 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bc808\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(\n        float a1,\n        struct cocos2d::CCScene *a2,\n        const struct cocos2d::_ccColor3B *a3)\n{\n  cocos2d::CCScene *v5; // rax\n  cocos2d::CCTransitionFade *v6; // rbx\n  bool (__fastcall *v7)(cocos2d::CCTransitionFade *__hidden, float, struct cocos2d::CCScene *, const struct cocos2d::_ccColor3B *); // rdx\n\n  v5 = (cocos2d::CCScene *)sub_1800E4AC0(0x168u);\n  v6 = v5;\n  if ( v5 )\n  {\n    cocos2d::CCScene::CCScene(v5);\n    *(_QWORD *)v6 = &cocos2d::CCTransitionFade::`vftable';\n  }\n  else\n  {\n    v6 = nullptr;\n  }\n  v7 = *(bool (__fastcall **)(cocos2d::CCTransitionFade *__hidden, float, struct cocos2d::CCScene *, const struct cocos2d::_ccColor3B *))(*(_QWORD *)v6 + 904LL);\n  if ( v7 == cocos2d::CCTransitionFade::initWithDuration )\n    cocos2d::CCTransitionFade::initWithDuration(v6, a1, a2, a3);\n  else\n    ((void (__fastcall *)(cocos2d::CCTransitionFade *, bool (__fastcall *)(cocos2d::CCTransitionFade *__hidden, float, struct cocos2d::CCScene *, const struct cocos2d::_ccColor3B *), struct cocos2d::CCScene *, const struct cocos2d::_ccColor3B *))v7)(\n      v6,\n      v7,\n      a2,\n      a3);\n  cocos2d::CCObject::autorelease(v6);\n  return v6;\n}", "assembly": "; \n; cocos2d::CCTransitionFade::create from 0x180054c10 to 0x180054ca5 (149 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bc808\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, 0x180054c10\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x180054c15\npush    rdi                                                            ; +0xa, 0x180054c1a\nsub     rsp, 30h                                                       ; +0xb, 0x180054c1b\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xf, 0x180054c1f\nmov     rdi, r8                                                        ; +0x14, 0x180054c24\nmov     rsi, rdx                                                       ; +0x17, 0x180054c27\nmovaps  xmm6, xmm0                                                     ; +0x1a, 0x180054c2a\nmov     ecx, 168h; Size                                                ; +0x1d, 0x180054c2d\ncall    sub_1800E4AC0                                                  ; +0x22, 0x180054c32\nmov     rbx, rax                                                       ; +0x27, 0x180054c37\nmov     [rsp+38h+arg_8], rax                                           ; +0x2a, 0x180054c3a\ntest    rax, rax                                                       ; +0x2f, 0x180054c3f\njz      short loc_180054C58                                            ; +0x32, 0x180054c42\nmov     rcx, rax; this                                                 ; +0x34, 0x180054c44\ncall    ??0CCScene@cocos2d@@QEAA@XZ; cocos2d::CCScene::CCScene(void)   ; +0x37, 0x180054c47\nlea     rax, ??_7CCTransitionFade@cocos2d@@6B@; const cocos2d::CCTransitionFade::`vftable' ; +0x3c, 0x180054c4c\nmov     [rbx], rax                                                     ; +0x43, 0x180054c53\njmp     short loc_180054C5A                                            ; +0x46, 0x180054c56\nxor     ebx, ebx                                                       ; +0x48, 0x180054c58\nmov     rax, [rbx]                                                     ; +0x4a, 0x180054c5a\nmov     rdx, [rax+388h]                                                ; +0x4d, 0x180054c5d\nlea     rax, ?initWithDuration@CCTransitionFade@cocos2d@@UEAA_NMPEAVCCScene@2@AEBU_ccColor3B@2@@Z; cocos2d::CCTransitionFade::initWithDuration(float,cocos2d::CCScene *,cocos2d::_ccColor3B const &) ; +0x54, 0x180054c64\nmov     r9, rdi; struct cocos2d::_ccColor3B *                          ; +0x5b, 0x180054c6b\nmov     r8, rsi; struct cocos2d::CCScene *                             ; +0x5e, 0x180054c6e\nmovaps  xmm1, xmm6; float                                              ; +0x61, 0x180054c71\nmov     rcx, rbx; this                                                 ; +0x64, 0x180054c74\ncmp     rdx, rax                                                       ; +0x67, 0x180054c77\njnz     short loc_180054C83                                            ; +0x6a, 0x180054c7a\ncall    ?initWithDuration@CCTransitionFade@cocos2d@@UEAA_NMPEAVCCScene@2@AEBU_ccColor3B@2@@Z; cocos2d::CCTransitionFade::initWithDuration(float,cocos2d::CCScene *,cocos2d::_ccColor3B const &) ; +0x6c, 0x180054c7c\njmp     short loc_180054C85                                            ; +0x71, 0x180054c81\ncall    rdx                                                            ; +0x73, 0x180054c83\nmov     rcx, rbx; this                                                 ; +0x75, 0x180054c85\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x78, 0x180054c88\nmov     rax, rbx                                                       ; +0x7d, 0x180054c8d\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x80, 0x180054c90\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x85, 0x180054c95\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x8a, 0x180054c9a\nadd     rsp, 30h                                                       ; +0x8f, 0x180054c9f\npop     rdi                                                            ; +0x93, 0x180054ca3\nretn                                                                   ; +0x94, 0x180054ca4", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bc808"], "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"}