{"type": "func", "start": 6442807792, "end": 6442808013, "name": "cocos2d::CCTransitionProgressOutIn::create", "pseudocode": "// \n// cocos2d::CCTransitionProgressOutIn::create from 0x1800571f0 to 0x1800572cd (221 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b2964\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::CCTransitionProgressOutIn *__fastcall cocos2d::CCTransitionProgressOutIn::create(\n        float a1,\n        struct cocos2d::CCScene *a2)\n{\n  cocos2d::CCTransitionScene *v3; // rax\n  cocos2d::CCTransitionScene *v4; // rbx\n  cocos2d::CCTransitionScene *(__fastcall *v6)(cocos2d::CCTransitionScene *, char); // r8\n\n  v3 = (cocos2d::CCTransitionScene *)operator new(0x170u);\n  v4 = v3;\n  if ( v3 )\n  {\n    memset(v3, 0, 0x170u);\n    cocos2d::CCTransitionScene::CCTransitionScene(v4);\n    *(_QWORD *)&v4[1].m_uAutoReleaseCount = 0;\n    *(_QWORD *)&v4[1].m_uIndexInArray = 0;\n    v4->__vftable = (cocos2d::CCTransitionScene_vtbl *)&cocos2d::CCTransitionProgressOutIn::`vftable';\n  }\n  else\n  {\n    v4 = nullptr;\n  }\n  if ( v4 )\n  {\n    if ( ((unsigned __int8 (__fastcall *)(cocos2d::CCTransitionScene *, cocos2d::CCTransitionScene_vtbl *, struct cocos2d::CCScene *))v4->initWithDuration)(\n           v4,\n           v4->__vftable,\n           a2) )\n    {\n      cocos2d::CCObject::autorelease(v4);\n      return (struct cocos2d::CCTransitionProgressOutIn *)v4;\n    }\n    v6 = (cocos2d::CCTransitionScene *(__fastcall *)(cocos2d::CCTransitionScene *, char))v4->~CCTransitionScene;\n    if ( v6 == sub_180056ED0 )\n    {\n      sub_180056ED0(v4, 1);\n      return nullptr;\n    }\n    v6(v4, 1);\n  }\n  return nullptr;\n}", "assembly": "; \n; cocos2d::CCTransitionProgressOutIn::create from 0x1800571f0 to 0x1800572cd (221 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b2964\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, 0x1800571f0\npush    rdi                                                            ; +0x5, 0x1800571f5\nsub     rsp, 30h                                                       ; +0x6, 0x1800571f6\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xa, 0x1800571fa\nmov     rdi, rdx                                                       ; +0xf, 0x1800571ff\nmovaps  xmm6, xmm0                                                     ; +0x12, 0x180057202\nmov     ecx, 170h; Size                                                ; +0x15, 0x180057205\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x18005720a\nmov     rbx, rax                                                       ; +0x1f, 0x18005720f\nmov     [rsp+38h+arg_10], rax                                          ; +0x22, 0x180057212\ntest    rax, rax                                                       ; +0x27, 0x180057217\njz      short loc_180057250                                            ; +0x2a, 0x18005721a\nxor     edx, edx; Val                                                  ; +0x2c, 0x18005721c\nmov     r8d, 170h; Size                                                ; +0x2e, 0x18005721e\nmov     rcx, rax; void *                                               ; +0x34, 0x180057224\ncall    memset                                                         ; +0x37, 0x180057227\nmov     rcx, rbx; this                                                 ; +0x3c, 0x18005722c\ncall    ??0CCTransitionScene@cocos2d@@QEAA@XZ; cocos2d::CCTransitionScene::CCTransitionScene(void) ; +0x3f, 0x18005722f\nxor     eax, eax                                                       ; +0x44, 0x180057234\nmov     [rbx+160h], rax                                                ; +0x46, 0x180057236\nmov     [rbx+168h], rax                                                ; +0x4d, 0x18005723d\nlea     rax, ??_7CCTransitionProgressOutIn@cocos2d@@6B@; const cocos2d::CCTransitionProgressOutIn::`vftable' ; +0x54, 0x180057244\nmov     [rbx], rax                                                     ; +0x5b, 0x18005724b\njmp     short loc_180057253                                            ; +0x5e, 0x18005724e\nmov     rbx, rax                                                       ; +0x60, 0x180057250\ntest    rbx, rbx                                                       ; +0x63, 0x180057253\njz      short loc_1800572BB                                            ; +0x66, 0x180057256\nmov     rdx, [rbx]                                                     ; +0x68, 0x180057258\nmov     r8, rdi                                                        ; +0x6b, 0x18005725b\nmovaps  xmm1, xmm6                                                     ; +0x6e, 0x18005725e\nmov     rcx, rbx                                                       ; +0x71, 0x180057261\ncall    qword ptr [rdx+368h]                                           ; +0x74, 0x180057264\nmov     rcx, rbx; Block                                                ; +0x7a, 0x18005726a\ntest    al, al                                                         ; +0x7d, 0x18005726d\njz      short loc_180057289                                            ; +0x7f, 0x18005726f\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x81, 0x180057271\nmov     rax, rbx                                                       ; +0x86, 0x180057276\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x89, 0x180057279\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x8e, 0x18005727e\nadd     rsp, 30h                                                       ; +0x93, 0x180057283\npop     rdi                                                            ; +0x97, 0x180057287\nretn                                                                   ; +0x98, 0x180057288\nmov     rax, [rbx]                                                     ; +0x99, 0x180057289\nmov     r8, [rax+8]                                                    ; +0x9c, 0x18005728c\nlea     rax, sub_180056ED0                                             ; +0xa0, 0x180057290\nmov     edx, 1                                                         ; +0xa7, 0x180057297\ncmp     r8, rax                                                        ; +0xac, 0x18005729c\njnz     short loc_1800572B8                                            ; +0xaf, 0x18005729f\ncall    sub_180056ED0                                                  ; +0xb1, 0x1800572a1\nxor     eax, eax                                                       ; +0xb6, 0x1800572a6\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xb8, 0x1800572a8\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xbd, 0x1800572ad\nadd     rsp, 30h                                                       ; +0xc2, 0x1800572b2\npop     rdi                                                            ; +0xc6, 0x1800572b6\nretn                                                                   ; +0xc7, 0x1800572b7\ncall    r8                                                             ; +0xc8, 0x1800572b8\nxor     eax, eax                                                       ; +0xcb, 0x1800572bb\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xcd, 0x1800572bd\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xd2, 0x1800572c2\nadd     rsp, 30h                                                       ; +0xd7, 0x1800572c7\npop     rdi                                                            ; +0xdb, 0x1800572cb\nretn                                                                   ; +0xdc, 0x1800572cc", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b2964"], "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"}