{"type": "func", "start": 6442794704, "end": 6442794928, "name": "cocos2d::CCTransitionSlideInT::create", "pseudocode": "// \n// cocos2d::CCTransitionSlideInT::create from 0x180053ed0 to 0x180053fb0 (224 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b2658\n// > <???> @ 0x1801b2664\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::CCTransitionSlideInT *__fastcall cocos2d::CCTransitionSlideInT::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(0x168u);\n  v4 = (cocos2d::CCTransitionScene *)v3;\n  if ( v3 )\n  {\n    cocos2d::CCScene::CCScene(v3);\n    v4->__vftable = (cocos2d::CCTransitionScene_vtbl *)&cocos2d::CCTransitionSlideInT::`vftable'{for `cocos2d::CCTransitionScene'};\n    *(_QWORD *)&v4[1].m_uAutoReleaseCount = &cocos2d::CCTransitionSlideInT::`vftable'{for `cocos2d::CCTransitionEaseScene'};\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::CCTransitionSlideInT *)v4;\n    }\n    v8 = (cocos2d::CCScene *(__fastcall *)(cocos2d::CCScene *, char))v4->~CCTransitionScene;\n    if ( v8 == sub_180052860 )\n    {\n      sub_180052860(v4, 1);\n      return nullptr;\n    }\n    v8(v4, 1);\n  }\n  return nullptr;\n}", "assembly": "; \n; cocos2d::CCTransitionSlideInT::create from 0x180053ed0 to 0x180053fb0 (224 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b2658\n; > <???> @ 0x1801b2664\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, 0x180053ed0\npush    rdi                                                            ; +0x5, 0x180053ed5\nsub     rsp, 30h                                                       ; +0x6, 0x180053ed6\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xa, 0x180053eda\nmov     rdi, rdx                                                       ; +0xf, 0x180053edf\nmovaps  xmm6, xmm0                                                     ; +0x12, 0x180053ee2\nmov     ecx, 168h; Size                                                ; +0x15, 0x180053ee5\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x180053eea\nmov     rbx, rax                                                       ; +0x1f, 0x180053eef\nmov     [rsp+38h+arg_10], rax                                          ; +0x22, 0x180053ef2\ntest    rax, rax                                                       ; +0x27, 0x180053ef7\njz      short loc_180053F1E                                            ; +0x2a, 0x180053efa\nmov     rcx, rax; this                                                 ; +0x2c, 0x180053efc\ncall    ??0CCScene@cocos2d@@QEAA@XZ; cocos2d::CCScene::CCScene(void)   ; +0x2f, 0x180053eff\nlea     rax, ??_7CCTransitionSlideInT@cocos2d@@6BCCTransitionScene@1@@; const cocos2d::CCTransitionSlideInT::`vftable'{for `cocos2d::CCTransitionScene'} ; +0x34, 0x180053f04\nmov     [rbx], rax                                                     ; +0x3b, 0x180053f0b\nlea     rax, ??_7CCTransitionSlideInT@cocos2d@@6BCCTransitionEaseScene@1@@; const cocos2d::CCTransitionSlideInT::`vftable'{for `cocos2d::CCTransitionEaseScene'} ; +0x3e, 0x180053f0e\nmov     [rbx+160h], rax                                                ; +0x45, 0x180053f15\njmp     short loc_180053F20                                            ; +0x4c, 0x180053f1c\nxor     ebx, ebx                                                       ; +0x4e, 0x180053f1e\ntest    rbx, rbx                                                       ; +0x50, 0x180053f20\njz      short loc_180053F9E                                            ; +0x53, 0x180053f23\nmov     rax, [rbx]                                                     ; +0x55, 0x180053f25\nmov     rdx, [rax+368h]                                                ; +0x58, 0x180053f28\nlea     rax, ?initWithDuration@CCTransitionScene@cocos2d@@UEAA_NMPEAVCCScene@2@@Z; cocos2d::CCTransitionScene::initWithDuration(float,cocos2d::CCScene *) ; +0x5f, 0x180053f2f\nmov     r8, rdi; struct cocos2d::CCScene *                             ; +0x66, 0x180053f36\nmovaps  xmm1, xmm6; float                                              ; +0x69, 0x180053f39\nmov     rcx, rbx; this                                                 ; +0x6c, 0x180053f3c\ncmp     rdx, rax                                                       ; +0x6f, 0x180053f3f\njnz     short loc_180053F4B                                            ; +0x72, 0x180053f42\ncall    ?initWithDuration@CCTransitionScene@cocos2d@@UEAA_NMPEAVCCScene@2@@Z; cocos2d::CCTransitionScene::initWithDuration(float,cocos2d::CCScene *) ; +0x74, 0x180053f44\njmp     short loc_180053F4D                                            ; +0x79, 0x180053f49\ncall    rdx                                                            ; +0x7b, 0x180053f4b\nmov     rcx, rbx; this                                                 ; +0x7d, 0x180053f4d\ntest    al, al                                                         ; +0x80, 0x180053f50\njz      short loc_180053F6C                                            ; +0x82, 0x180053f52\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x84, 0x180053f54\nmov     rax, rbx                                                       ; +0x89, 0x180053f59\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x8c, 0x180053f5c\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x91, 0x180053f61\nadd     rsp, 30h                                                       ; +0x96, 0x180053f66\npop     rdi                                                            ; +0x9a, 0x180053f6a\nretn                                                                   ; +0x9b, 0x180053f6b\nmov     rax, [rbx]                                                     ; +0x9c, 0x180053f6c\nmov     r8, [rax+8]                                                    ; +0x9f, 0x180053f6f\nlea     rax, sub_180052860                                             ; +0xa3, 0x180053f73\nmov     edx, 1                                                         ; +0xaa, 0x180053f7a\ncmp     r8, rax                                                        ; +0xaf, 0x180053f7f\njnz     short loc_180053F9B                                            ; +0xb2, 0x180053f82\ncall    sub_180052860                                                  ; +0xb4, 0x180053f84\nxor     eax, eax                                                       ; +0xb9, 0x180053f89\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xbb, 0x180053f8b\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xc0, 0x180053f90\nadd     rsp, 30h                                                       ; +0xc5, 0x180053f95\npop     rdi                                                            ; +0xc9, 0x180053f99\nretn                                                                   ; +0xca, 0x180053f9a\ncall    r8                                                             ; +0xcb, 0x180053f9b\nxor     eax, eax                                                       ; +0xce, 0x180053f9e\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xd0, 0x180053fa0\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xd5, 0x180053fa5\nadd     rsp, 30h                                                       ; +0xda, 0x180053faa\npop     rdi                                                            ; +0xde, 0x180053fae\nretn                                                                   ; +0xdf, 0x180053faf", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b2658", "<???> @ 0x1801b2664"], "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"}