{"type": "func", "start": 6442793200, "end": 6442793410, "name": "cocos2d::CCTransitionRotoZoom::create", "pseudocode": "// \n// cocos2d::CCTransitionRotoZoom::create from 0x1800538f0 to 0x1800539c2 (210 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b2604\n// > <???> @ 0x1801b2610\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\nstruct cocos2d::CCTransitionRotoZoom *__fastcall cocos2d::CCTransitionRotoZoom::create(\n        float a1,\n        struct cocos2d::CCScene *a2)\n{\n  cocos2d::CCScene *v3; // rax\n  cocos2d::CCTransitionScene *v4; // rbx\n  bool (__stdcall *initWithDuration)(cocos2d::CCTransitionScene *__hidden, float, cocos2d::CCScene *); // rdx\n  char v6; // al\n  cocos2d::CCScene *(__fastcall *v8)(cocos2d::CCScene *, char); // r8\n\n  v3 = (cocos2d::CCScene *)operator new(0x160u);\n  v4 = (cocos2d::CCTransitionScene *)v3;\n  if ( v3 )\n  {\n    cocos2d::CCScene::CCScene(v3);\n    v4->__vftable = (cocos2d::CCTransitionScene_vtbl *)&cocos2d::CCTransitionRotoZoom::`vftable';\n  }\n  else\n  {\n    v4 = nullptr;\n  }\n  if ( v4 )\n  {\n    initWithDuration = v4->initWithDuration;\n    if ( (char *)initWithDuration == (char *)cocos2d::CCTransitionScene::initWithDuration )\n      v6 = cocos2d::CCTransitionScene::initWithDuration(v4, a1, a2);\n    else\n      v6 = ((__int64 (__fastcall *)(cocos2d::CCTransitionScene *, bool (__stdcall *)(cocos2d::CCTransitionScene *__hidden, float, cocos2d::CCScene *), struct cocos2d::CCScene *))initWithDuration)(\n             v4,\n             initWithDuration,\n             a2);\n    if ( v6 )\n    {\n      cocos2d::CCObject::autorelease(v4);\n      return (struct cocos2d::CCTransitionRotoZoom *)v4;\n    }\n    v8 = (cocos2d::CCScene *(__fastcall *)(cocos2d::CCScene *, char))v4->~CCTransitionScene;\n    if ( v8 == sub_180052410 )\n    {\n      sub_180052410(v4, 1);\n      return nullptr;\n    }\n    v8(v4, 1);\n  }\n  return nullptr;\n}", "assembly": "; \n; cocos2d::CCTransitionRotoZoom::create from 0x1800538f0 to 0x1800539c2 (210 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b2604\n; > <???> @ 0x1801b2610\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, 0x1800538f0\npush    rdi                                                            ; +0x5, 0x1800538f5\nsub     rsp, 30h                                                       ; +0x6, 0x1800538f6\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xa, 0x1800538fa\nmov     rdi, rdx                                                       ; +0xf, 0x1800538ff\nmovaps  xmm6, xmm0                                                     ; +0x12, 0x180053902\nmov     ecx, 160h; Size                                                ; +0x15, 0x180053905\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x18005390a\nmov     rbx, rax                                                       ; +0x1f, 0x18005390f\nmov     [rsp+38h+arg_10], rax                                          ; +0x22, 0x180053912\ntest    rax, rax                                                       ; +0x27, 0x180053917\njz      short loc_180053930                                            ; +0x2a, 0x18005391a\nmov     rcx, rax; this                                                 ; +0x2c, 0x18005391c\ncall    ??0CCScene@cocos2d@@QEAA@XZ; cocos2d::CCScene::CCScene(void)   ; +0x2f, 0x18005391f\nlea     rax, ??_7CCTransitionRotoZoom@cocos2d@@6B@; const cocos2d::CCTransitionRotoZoom::`vftable' ; +0x34, 0x180053924\nmov     [rbx], rax                                                     ; +0x3b, 0x18005392b\njmp     short loc_180053932                                            ; +0x3e, 0x18005392e\nxor     ebx, ebx                                                       ; +0x40, 0x180053930\ntest    rbx, rbx                                                       ; +0x42, 0x180053932\njz      short loc_1800539B0                                            ; +0x45, 0x180053935\nmov     rax, [rbx]                                                     ; +0x47, 0x180053937\nmov     rdx, [rax+368h]                                                ; +0x4a, 0x18005393a\nlea     rax, ?initWithDuration@CCTransitionScene@cocos2d@@UEAA_NMPEAVCCScene@2@@Z; cocos2d::CCTransitionScene::initWithDuration(float,cocos2d::CCScene *) ; +0x51, 0x180053941\nmov     r8, rdi; struct cocos2d::CCScene *                             ; +0x58, 0x180053948\nmovaps  xmm1, xmm6; float                                              ; +0x5b, 0x18005394b\nmov     rcx, rbx; this                                                 ; +0x5e, 0x18005394e\ncmp     rdx, rax                                                       ; +0x61, 0x180053951\njnz     short loc_18005395D                                            ; +0x64, 0x180053954\ncall    ?initWithDuration@CCTransitionScene@cocos2d@@UEAA_NMPEAVCCScene@2@@Z; cocos2d::CCTransitionScene::initWithDuration(float,cocos2d::CCScene *) ; +0x66, 0x180053956\njmp     short loc_18005395F                                            ; +0x6b, 0x18005395b\ncall    rdx                                                            ; +0x6d, 0x18005395d\nmov     rcx, rbx; this                                                 ; +0x6f, 0x18005395f\ntest    al, al                                                         ; +0x72, 0x180053962\njz      short loc_18005397E                                            ; +0x74, 0x180053964\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x76, 0x180053966\nmov     rax, rbx                                                       ; +0x7b, 0x18005396b\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x7e, 0x18005396e\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x83, 0x180053973\nadd     rsp, 30h                                                       ; +0x88, 0x180053978\npop     rdi                                                            ; +0x8c, 0x18005397c\nretn                                                                   ; +0x8d, 0x18005397d\nmov     rax, [rbx]                                                     ; +0x8e, 0x18005397e\nmov     r8, [rax+8]                                                    ; +0x91, 0x180053981\nlea     rax, sub_180052410                                             ; +0x95, 0x180053985\nmov     edx, 1                                                         ; +0x9c, 0x18005398c\ncmp     r8, rax                                                        ; +0xa1, 0x180053991\njnz     short loc_1800539AD                                            ; +0xa4, 0x180053994\ncall    sub_180052410                                                  ; +0xa6, 0x180053996\nxor     eax, eax                                                       ; +0xab, 0x18005399b\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xad, 0x18005399d\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xb2, 0x1800539a2\nadd     rsp, 30h                                                       ; +0xb7, 0x1800539a7\npop     rdi                                                            ; +0xbb, 0x1800539ab\nretn                                                                   ; +0xbc, 0x1800539ac\ncall    r8                                                             ; +0xbd, 0x1800539ad\nxor     eax, eax                                                       ; +0xc0, 0x1800539b0\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xc2, 0x1800539b2\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xc7, 0x1800539b7\nadd     rsp, 30h                                                       ; +0xcc, 0x1800539bc\npop     rdi                                                            ; +0xd0, 0x1800539c0\nretn                                                                   ; +0xd1, 0x1800539c1", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b2604", "<???> @ 0x1801b2610"], "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"}