{"type": "func", "start": 6442662400, "end": 6442662569, "name": "cocos2d::CCFadeTo::create", "pseudocode": "// \n// cocos2d::CCFadeTo::create from 0x180033a00 to 0x180033aa9 (169 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCTransitionCrossFade::onEnter @ 0x180054e38\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b0588\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::CCFadeTo *__fastcall cocos2d::CCFadeTo::create(float a1, char a2)\n{\n  cocos2d::CCAction *v3; // rbx\n\n  v3 = (cocos2d::CCAction *)operator new(0x68u);\n  if ( v3 )\n  {\n    *(_OWORD *)&v3->__vftable = 0;\n    *(_OWORD *)&v3->cocos2d::CCObject::m_nTag = 0;\n    *(_OWORD *)&v3->m_uIndexInArray = 0;\n    *(_OWORD *)&v3->m_uOrderOfArrival = 0;\n    *(_OWORD *)&v3->m_pTarget = 0;\n    *(_OWORD *)&v3[1].__vftable = 0;\n    *(_QWORD *)&v3[1].cocos2d::CCObject::m_nTag = 0;\n    cocos2d::CCAction::CCAction(v3);\n    LODWORD(v3[1].__vftable) = 0;\n    v3->__vftable = (cocos2d::CCAction_vtbl *)&cocos2d::CCFadeTo::`vftable';\n  }\n  else\n  {\n    v3 = nullptr;\n  }\n  *(float *)&v3[1].__vftable = a1;\n  if ( a1 == 0.0 )\n    LODWORD(v3[1].__vftable) = 872415232;\n  v3[1].m_uID = 0;\n  LOBYTE(v3[1].m_nLuaID) = 1;\n  LOBYTE(v3[1].cocos2d::CCObject::m_nTag) = a2;\n  cocos2d::CCObject::autorelease(v3);\n  return (struct cocos2d::CCFadeTo *)v3;\n}", "assembly": "; \n; cocos2d::CCFadeTo::create from 0x180033a00 to 0x180033aa9 (169 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCTransitionCrossFade::onEnter @ 0x180054e38\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b0588\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180033a00\npush    rdi                                                            ; +0x5, 0x180033a05\nsub     rsp, 30h                                                       ; +0x6, 0x180033a06\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xa, 0x180033a0a\nmovzx   edi, dl                                                        ; +0xf, 0x180033a0f\nmovaps  xmm6, xmm0                                                     ; +0x12, 0x180033a12\nmov     ecx, 68h ; 'h'; Size                                           ; +0x15, 0x180033a15\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x180033a1a\nmov     rbx, rax                                                       ; +0x1f, 0x180033a1f\nmov     [rsp+38h+arg_10], rax                                          ; +0x22, 0x180033a22\ntest    rax, rax                                                       ; +0x27, 0x180033a27\njz      short loc_180033A67                                            ; +0x2a, 0x180033a2a\nxorps   xmm1, xmm1                                                     ; +0x2c, 0x180033a2c\nxor     eax, eax                                                       ; +0x2f, 0x180033a2f\nmovups  xmmword ptr [rbx], xmm1                                        ; +0x31, 0x180033a31\nmovups  xmmword ptr [rbx+10h], xmm1                                    ; +0x34, 0x180033a34\nmovups  xmmword ptr [rbx+20h], xmm1                                    ; +0x38, 0x180033a38\nmovups  xmmword ptr [rbx+30h], xmm1                                    ; +0x3c, 0x180033a3c\nmovups  xmmword ptr [rbx+40h], xmm1                                    ; +0x40, 0x180033a40\nmovups  xmmword ptr [rbx+50h], xmm1                                    ; +0x44, 0x180033a44\nmov     [rbx+60h], rax                                                 ; +0x48, 0x180033a48\nmov     rcx, rbx; this                                                 ; +0x4c, 0x180033a4c\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x4f, 0x180033a4f\nmov     dword ptr [rbx+50h], 0                                         ; +0x54, 0x180033a54\nlea     rax, ??_7CCFadeTo@cocos2d@@6B@; const cocos2d::CCFadeTo::`vftable' ; +0x5b, 0x180033a5b\nmov     [rbx], rax                                                     ; +0x62, 0x180033a62\njmp     short loc_180033A69                                            ; +0x65, 0x180033a65\nxor     ebx, ebx                                                       ; +0x67, 0x180033a67\nmovss   dword ptr [rbx+50h], xmm6                                      ; +0x69, 0x180033a69\nxorps   xmm0, xmm0                                                     ; +0x6e, 0x180033a6e\nucomiss xmm6, xmm0                                                     ; +0x71, 0x180033a71\njp      short loc_180033A7F                                            ; +0x74, 0x180033a74\njnz     short loc_180033A7F                                            ; +0x76, 0x180033a76\nmov     dword ptr [rbx+50h], 34000000h                                 ; +0x78, 0x180033a78\nmov     dword ptr [rbx+58h], 0                                         ; +0x7f, 0x180033a7f\nmov     byte ptr [rbx+5Ch], 1                                          ; +0x86, 0x180033a86\nmov     [rbx+60h], dil                                                 ; +0x8a, 0x180033a8a\nmov     rcx, rbx; this                                                 ; +0x8e, 0x180033a8e\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x91, 0x180033a91\nmov     rax, rbx                                                       ; +0x96, 0x180033a96\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x99, 0x180033a99\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x9e, 0x180033a9e\nadd     rsp, 30h                                                       ; +0xa3, 0x180033aa3\npop     rdi                                                            ; +0xa7, 0x180033aa7\nretn                                                                   ; +0xa8, 0x180033aa8", "xrefs": ["cocos2d::CCTransitionCrossFade::onEnter @ 0x180054e38", "<???> @ 0x1801438a8", "<???> @ 0x1801b0588"], "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"}