{"type": "func", "start": 6442816144, "end": 6442816368, "name": "cocos2d::CCTransitionProgressRadialCW::create", "pseudocode": "// \n// cocos2d::CCTransitionProgressRadialCW::create from 0x180059290 to 0x180059370 (224 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bcc04\n// > <???> @ 0x1801bcc10\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\nstruct cocos2d::CCTransitionProgressRadialCW *__fastcall cocos2d::CCTransitionProgressRadialCW::create(\n        float a1,\n        struct cocos2d::CCScene *a2)\n{\n  cocos2d::CCTransitionScene *v3; // rax\n  cocos2d::CCTransitionScene *v4; // rbx\n  cocos2d::CCObject **(__fastcall *v6)(cocos2d::CCObject **, char); // r8\n\n  v3 = (cocos2d::CCTransitionScene *)sub_1800E4AC0(0x170u);\n  v4 = v3;\n  if ( v3 )\n  {\n    memset(v3, 0, 0x170u);\n    cocos2d::CCTransitionScene::CCTransitionScene(v4);\n    *((_QWORD *)v4 + 44) = 0;\n    *((_QWORD *)v4 + 45) = 0;\n    *(_QWORD *)v4 = &cocos2d::CCTransitionProgressRadialCW::`vftable';\n  }\n  else\n  {\n    v4 = nullptr;\n  }\n  if ( v4 )\n  {\n    if ( (*(unsigned __int8 (__fastcall **)(cocos2d::CCTransitionScene *, _QWORD, struct cocos2d::CCScene *))(*(_QWORD *)v4 + 888LL))(\n           v4,\n           *(_QWORD *)(*(_QWORD *)v4 + 888LL),\n           a2) )\n    {\n      cocos2d::CCObject::autorelease(v4);\n      return v4;\n    }\n    v6 = *(cocos2d::CCObject **(__fastcall **)(cocos2d::CCObject **, char))(*(_QWORD *)v4 + 8LL);\n    if ( v6 == sub_180058DB0 )\n    {\n      sub_180058DB0((cocos2d::CCObject **)v4, 1);\n      return nullptr;\n    }\n    v6((cocos2d::CCObject **)v4, 1);\n  }\n  return nullptr;\n}", "assembly": "; \n; cocos2d::CCTransitionProgressRadialCW::create from 0x180059290 to 0x180059370 (224 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bcc04\n; > <???> @ 0x1801bcc10\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, 0x180059290\npush    rdi                                                            ; +0x5, 0x180059295\nsub     rsp, 30h                                                       ; +0x6, 0x180059296\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xa, 0x18005929a\nmov     rdi, rdx                                                       ; +0xf, 0x18005929f\nmovaps  xmm6, xmm0                                                     ; +0x12, 0x1800592a2\nmov     ecx, 170h; Size                                                ; +0x15, 0x1800592a5\ncall    sub_1800E4AC0                                                  ; +0x1a, 0x1800592aa\nmov     rbx, rax                                                       ; +0x1f, 0x1800592af\nmov     [rsp+38h+arg_10], rax                                          ; +0x22, 0x1800592b2\ntest    rax, rax                                                       ; +0x27, 0x1800592b7\njz      short loc_1800592F0                                            ; +0x2a, 0x1800592ba\nxor     edx, edx; Val                                                  ; +0x2c, 0x1800592bc\nmov     r8d, 170h; Size                                                ; +0x2e, 0x1800592be\nmov     rcx, rax; void *                                               ; +0x34, 0x1800592c4\ncall    memset                                                         ; +0x37, 0x1800592c7\nmov     rcx, rbx; this                                                 ; +0x3c, 0x1800592cc\ncall    ??0CCTransitionScene@cocos2d@@QEAA@XZ; cocos2d::CCTransitionScene::CCTransitionScene(void) ; +0x3f, 0x1800592cf\nxor     eax, eax                                                       ; +0x44, 0x1800592d4\nmov     [rbx+160h], rax                                                ; +0x46, 0x1800592d6\nmov     [rbx+168h], rax                                                ; +0x4d, 0x1800592dd\nlea     rax, ??_7CCTransitionProgressRadialCW@cocos2d@@6B@; const cocos2d::CCTransitionProgressRadialCW::`vftable' ; +0x54, 0x1800592e4\nmov     [rbx], rax                                                     ; +0x5b, 0x1800592eb\njmp     short loc_1800592F3                                            ; +0x5e, 0x1800592ee\nmov     rbx, rax                                                       ; +0x60, 0x1800592f0\ntest    rbx, rbx                                                       ; +0x63, 0x1800592f3\njz      short loc_18005935E                                            ; +0x66, 0x1800592f6\nmov     rcx, [rbx]                                                     ; +0x68, 0x1800592f8\nmov     rdx, [rcx+378h]                                                ; +0x6b, 0x1800592fb\nmov     r8, rdi                                                        ; +0x72, 0x180059302\nmovaps  xmm1, xmm6                                                     ; +0x75, 0x180059305\nmov     rcx, rbx                                                       ; +0x78, 0x180059308\ncall    rdx                                                            ; +0x7b, 0x18005930b\nmov     rcx, rbx; Block                                                ; +0x7d, 0x18005930d\ntest    al, al                                                         ; +0x80, 0x180059310\njz      short loc_18005932C                                            ; +0x82, 0x180059312\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x84, 0x180059314\nmov     rax, rbx                                                       ; +0x89, 0x180059319\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x8c, 0x18005931c\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x91, 0x180059321\nadd     rsp, 30h                                                       ; +0x96, 0x180059326\npop     rdi                                                            ; +0x9a, 0x18005932a\nretn                                                                   ; +0x9b, 0x18005932b\nmov     rax, [rbx]                                                     ; +0x9c, 0x18005932c\nmov     r8, [rax+8]                                                    ; +0x9f, 0x18005932f\nlea     rax, sub_180058DB0                                             ; +0xa3, 0x180059333\nmov     edx, 1                                                         ; +0xaa, 0x18005933a\ncmp     r8, rax                                                        ; +0xaf, 0x18005933f\njnz     short loc_18005935B                                            ; +0xb2, 0x180059342\ncall    sub_180058DB0                                                  ; +0xb4, 0x180059344\nxor     eax, eax                                                       ; +0xb9, 0x180059349\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xbb, 0x18005934b\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xc0, 0x180059350\nadd     rsp, 30h                                                       ; +0xc5, 0x180059355\npop     rdi                                                            ; +0xc9, 0x180059359\nretn                                                                   ; +0xca, 0x18005935a\ncall    r8                                                             ; +0xcb, 0x18005935b\nxor     eax, eax                                                       ; +0xce, 0x18005935e\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xd0, 0x180059360\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xd5, 0x180059365\nadd     rsp, 30h                                                       ; +0xda, 0x18005936a\npop     rdi                                                            ; +0xde, 0x18005936e\nretn                                                                   ; +0xdf, 0x18005936f", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bcc04", "<???> @ 0x1801bcc10"], "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"}