{"type": "func", "start": 6442801408, "end": 6442801632, "name": "cocos2d::CCTransitionShrinkGrow::create", "pseudocode": "// \n// cocos2d::CCTransitionShrinkGrow::create from 0x180055900 to 0x1800559e0 (224 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bc8c8\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:47 +0000\n// \n\nstruct cocos2d::CCTransitionShrinkGrow *__fastcall cocos2d::CCTransitionShrinkGrow::create(\n        float a1,\n        struct cocos2d::CCScene *a2)\n{\n  cocos2d::CCScene *v3; // rax\n  cocos2d::CCTransitionScene *v4; // rbx\n  bool (__fastcall *v5)(cocos2d::CCTransitionScene *__hidden, float, struct cocos2d::CCScene *); // rdx\n  char v6; // al\n  cocos2d::CCScene *(__fastcall *v8)(cocos2d::CCObject **, char); // r8\n\n  v3 = (cocos2d::CCScene *)sub_1800E4AC0(0x168u);\n  v4 = v3;\n  if ( v3 )\n  {\n    cocos2d::CCScene::CCScene(v3);\n    *(_QWORD *)v4 = &cocos2d::CCTransitionShrinkGrow::`vftable'{for `cocos2d::CCTransitionScene'};\n    *((_QWORD *)v4 + 44) = &cocos2d::CCTransitionShrinkGrow::`vftable'{for `cocos2d::CCTransitionEaseScene'};\n  }\n  else\n  {\n    v4 = nullptr;\n  }\n  if ( v4 )\n  {\n    v5 = *(bool (__fastcall **)(cocos2d::CCTransitionScene *__hidden, float, struct cocos2d::CCScene *))(*(_QWORD *)v4 + 888LL);\n    if ( v5 == cocos2d::CCTransitionScene::initWithDuration )\n      v6 = cocos2d::CCTransitionScene::initWithDuration(v4, a1, a2);\n    else\n      v6 = ((__int64 (__fastcall *)(cocos2d::CCTransitionScene *, bool (__fastcall *)(cocos2d::CCTransitionScene *__hidden, float, struct cocos2d::CCScene *), struct cocos2d::CCScene *))v5)(\n             v4,\n             v5,\n             a2);\n    if ( v6 )\n    {\n      cocos2d::CCObject::autorelease(v4);\n      return v4;\n    }\n    v8 = *(cocos2d::CCScene *(__fastcall **)(cocos2d::CCObject **, char))(*(_QWORD *)v4 + 8LL);\n    if ( v8 == sub_180054520 )\n    {\n      sub_180054520((cocos2d::CCObject **)v4, 1);\n      return nullptr;\n    }\n    v8((cocos2d::CCObject **)v4, 1);\n  }\n  return nullptr;\n}", "assembly": "; \n; cocos2d::CCTransitionShrinkGrow::create from 0x180055900 to 0x1800559e0 (224 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bc8c8\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:47 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180055900\npush    rdi                                                            ; +0x5, 0x180055905\nsub     rsp, 30h                                                       ; +0x6, 0x180055906\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xa, 0x18005590a\nmov     rdi, rdx                                                       ; +0xf, 0x18005590f\nmovaps  xmm6, xmm0                                                     ; +0x12, 0x180055912\nmov     ecx, 168h; Size                                                ; +0x15, 0x180055915\ncall    sub_1800E4AC0                                                  ; +0x1a, 0x18005591a\nmov     rbx, rax                                                       ; +0x1f, 0x18005591f\nmov     [rsp+38h+arg_10], rax                                          ; +0x22, 0x180055922\ntest    rax, rax                                                       ; +0x27, 0x180055927\njz      short loc_18005594E                                            ; +0x2a, 0x18005592a\nmov     rcx, rax; this                                                 ; +0x2c, 0x18005592c\ncall    ??0CCScene@cocos2d@@QEAA@XZ; cocos2d::CCScene::CCScene(void)   ; +0x2f, 0x18005592f\nlea     rax, ??_7CCTransitionShrinkGrow@cocos2d@@6BCCTransitionScene@1@@; const cocos2d::CCTransitionShrinkGrow::`vftable'{for `cocos2d::CCTransitionScene'} ; +0x34, 0x180055934\nmov     [rbx], rax                                                     ; +0x3b, 0x18005593b\nlea     rax, ??_7CCTransitionShrinkGrow@cocos2d@@6BCCTransitionEaseScene@1@@; const cocos2d::CCTransitionShrinkGrow::`vftable'{for `cocos2d::CCTransitionEaseScene'} ; +0x3e, 0x18005593e\nmov     [rbx+160h], rax                                                ; +0x45, 0x180055945\njmp     short loc_180055950                                            ; +0x4c, 0x18005594c\nxor     ebx, ebx                                                       ; +0x4e, 0x18005594e\ntest    rbx, rbx                                                       ; +0x50, 0x180055950\njz      short loc_1800559CE                                            ; +0x53, 0x180055953\nmov     rax, [rbx]                                                     ; +0x55, 0x180055955\nmov     rdx, [rax+378h]                                                ; +0x58, 0x180055958\nlea     rax, ?initWithDuration@CCTransitionScene@cocos2d@@UEAA_NMPEAVCCScene@2@@Z; cocos2d::CCTransitionScene::initWithDuration(float,cocos2d::CCScene *) ; +0x5f, 0x18005595f\nmov     r8, rdi; struct cocos2d::CCScene *                             ; +0x66, 0x180055966\nmovaps  xmm1, xmm6; float                                              ; +0x69, 0x180055969\nmov     rcx, rbx; this                                                 ; +0x6c, 0x18005596c\ncmp     rdx, rax                                                       ; +0x6f, 0x18005596f\njnz     short loc_18005597B                                            ; +0x72, 0x180055972\ncall    ?initWithDuration@CCTransitionScene@cocos2d@@UEAA_NMPEAVCCScene@2@@Z; cocos2d::CCTransitionScene::initWithDuration(float,cocos2d::CCScene *) ; +0x74, 0x180055974\njmp     short loc_18005597D                                            ; +0x79, 0x180055979\ncall    rdx                                                            ; +0x7b, 0x18005597b\nmov     rcx, rbx; this                                                 ; +0x7d, 0x18005597d\ntest    al, al                                                         ; +0x80, 0x180055980\njz      short loc_18005599C                                            ; +0x82, 0x180055982\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x84, 0x180055984\nmov     rax, rbx                                                       ; +0x89, 0x180055989\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x8c, 0x18005598c\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x91, 0x180055991\nadd     rsp, 30h                                                       ; +0x96, 0x180055996\npop     rdi                                                            ; +0x9a, 0x18005599a\nretn                                                                   ; +0x9b, 0x18005599b\nmov     rax, [rbx]                                                     ; +0x9c, 0x18005599c\nmov     r8, [rax+8]                                                    ; +0x9f, 0x18005599f\nlea     rax, sub_180054520                                             ; +0xa3, 0x1800559a3\nmov     edx, 1                                                         ; +0xaa, 0x1800559aa\ncmp     r8, rax                                                        ; +0xaf, 0x1800559af\njnz     short loc_1800559CB                                            ; +0xb2, 0x1800559b2\ncall    sub_180054520                                                  ; +0xb4, 0x1800559b4\nxor     eax, eax                                                       ; +0xb9, 0x1800559b9\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xbb, 0x1800559bb\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xc0, 0x1800559c0\nadd     rsp, 30h                                                       ; +0xc5, 0x1800559c5\npop     rdi                                                            ; +0xc9, 0x1800559c9\nretn                                                                   ; +0xca, 0x1800559ca\ncall    r8                                                             ; +0xcb, 0x1800559cb\nxor     eax, eax                                                       ; +0xce, 0x1800559ce\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xd0, 0x1800559d0\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xd5, 0x1800559d5\nadd     rsp, 30h                                                       ; +0xda, 0x1800559da\npop     rdi                                                            ; +0xde, 0x1800559de\nretn                                                                   ; +0xdf, 0x1800559df", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bc8c8"], "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"}