{"type": "func", "start": 6442813904, "end": 6442814062, "name": "cocos2d::CCTransitionPageTurn::create", "pseudocode": "// \n// cocos2d::CCTransitionPageTurn::create from 0x1800589d0 to 0x180058a6e (158 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bcb38\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:48 +0000\n// \n\n// Hidden C++ exception states: #wind=1\ncocos2d::CCObject **__fastcall cocos2d::CCTransitionPageTurn::create(\n        float a1,\n        struct cocos2d::CCScene *a2,\n        unsigned __int8 a3)\n{\n  cocos2d::CCTransitionScene *v5; // rax\n  cocos2d::CCObject **v6; // rbx\n  bool (__fastcall *v7)(cocos2d::CCTransitionPageTurn *__hidden, float, struct cocos2d::CCScene *, bool); // rdx\n\n  v5 = (cocos2d::CCTransitionScene *)sub_1800E4AC0(0x168u);\n  v6 = (cocos2d::CCObject **)v5;\n  if ( v5 )\n  {\n    cocos2d::CCTransitionScene::CCTransitionScene(v5);\n    *v6 = (cocos2d::CCObject *)&cocos2d::CCTransitionPageTurn::`vftable';\n  }\n  else\n  {\n    v6 = nullptr;\n  }\n  v7 = *((bool (__fastcall **)(cocos2d::CCTransitionPageTurn *__hidden, float, struct cocos2d::CCScene *, bool))*v6 + 113);\n  if ( v7 == cocos2d::CCTransitionPageTurn::initWithDuration )\n  {\n    *((_BYTE *)v6 + 352) = a3;\n    cocos2d::CCTransitionScene::initWithDuration(v6, a1, a2);\n  }\n  else\n  {\n    ((void (__fastcall *)(cocos2d::CCObject **, bool (__fastcall *)(cocos2d::CCTransitionPageTurn *__hidden, float, struct cocos2d::CCScene *, bool), struct cocos2d::CCScene *, _QWORD))v7)(\n      v6,\n      v7,\n      a2,\n      a3);\n  }\n  cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);\n  return v6;\n}", "assembly": "; \n; cocos2d::CCTransitionPageTurn::create from 0x1800589d0 to 0x180058a6e (158 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bcb38\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:48 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800589d0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1800589d5\npush    rdi                                                            ; +0xa, 0x1800589da\nsub     rsp, 30h                                                       ; +0xb, 0x1800589db\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xf, 0x1800589df\nmovzx   edi, r8b                                                       ; +0x14, 0x1800589e4\nmov     rsi, rdx                                                       ; +0x18, 0x1800589e8\nmovaps  xmm6, xmm0                                                     ; +0x1b, 0x1800589eb\nmov     ecx, 168h; Size                                                ; +0x1e, 0x1800589ee\ncall    sub_1800E4AC0                                                  ; +0x23, 0x1800589f3\nmov     rbx, rax                                                       ; +0x28, 0x1800589f8\nmov     [rsp+38h+arg_8], rax                                           ; +0x2b, 0x1800589fb\ntest    rax, rax                                                       ; +0x30, 0x180058a00\njz      short loc_180058A19                                            ; +0x33, 0x180058a03\nmov     rcx, rax; this                                                 ; +0x35, 0x180058a05\ncall    ??0CCTransitionScene@cocos2d@@QEAA@XZ; cocos2d::CCTransitionScene::CCTransitionScene(void) ; +0x38, 0x180058a08\nlea     rax, ??_7CCTransitionPageTurn@cocos2d@@6B@; const cocos2d::CCTransitionPageTurn::`vftable' ; +0x3d, 0x180058a0d\nmov     [rbx], rax                                                     ; +0x44, 0x180058a14\njmp     short loc_180058A1B                                            ; +0x47, 0x180058a17\nxor     ebx, ebx                                                       ; +0x49, 0x180058a19\nmov     rax, [rbx]                                                     ; +0x4b, 0x180058a1b\nmov     rdx, [rax+388h]                                                ; +0x4e, 0x180058a1e\nlea     rax, ?initWithDuration@CCTransitionPageTurn@cocos2d@@UEAA_NMPEAVCCScene@2@_N@Z; cocos2d::CCTransitionPageTurn::initWithDuration(float,cocos2d::CCScene *,bool) ; +0x55, 0x180058a25\nmov     r8, rsi; struct cocos2d::CCScene *                             ; +0x5c, 0x180058a2c\nmovaps  xmm1, xmm6; float                                              ; +0x5f, 0x180058a2f\nmov     rcx, rbx; this                                                 ; +0x62, 0x180058a32\ncmp     rdx, rax                                                       ; +0x65, 0x180058a35\njnz     short loc_180058A48                                            ; +0x68, 0x180058a38\nmov     [rbx+160h], dil                                                ; +0x6a, 0x180058a3a\ncall    ?initWithDuration@CCTransitionScene@cocos2d@@UEAA_NMPEAVCCScene@2@@Z; cocos2d::CCTransitionScene::initWithDuration(float,cocos2d::CCScene *) ; +0x71, 0x180058a41\njmp     short loc_180058A4E                                            ; +0x76, 0x180058a46\nmovzx   r9d, dil                                                       ; +0x78, 0x180058a48\ncall    rdx                                                            ; +0x7c, 0x180058a4c\nmov     rcx, rbx; this                                                 ; +0x7e, 0x180058a4e\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x81, 0x180058a51\nmov     rax, rbx                                                       ; +0x86, 0x180058a56\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x89, 0x180058a59\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x8e, 0x180058a5e\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x93, 0x180058a63\nadd     rsp, 30h                                                       ; +0x98, 0x180058a68\npop     rdi                                                            ; +0x9c, 0x180058a6c\nretn                                                                   ; +0x9d, 0x180058a6d", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bcb38"], "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"}