{"type": "func", "start": 6442787856, "end": 6442788029, "name": "sub_180052410", "pseudocode": "// \n// sub_180052410 from 0x180052410 to 0x1800524bd (173 bytes)\n// \n// 10 xrefs:\n// > cocos2d::CCTransitionCrossFade::create @ 0x180052d96\n// > cocos2d::CCTransitionJumpZoom::create @ 0x180053536\n// > cocos2d::CCTransitionRotoZoom::create @ 0x180053996\n// > cocos2d::CCTransitionCrossFade::create @ 0x180052d85\n// > cocos2d::CCTransitionJumpZoom::create @ 0x180053525\n// > cocos2d::CCTransitionRotoZoom::create @ 0x180053985\n// > <???> @ 0x1800ef380\n// > <???> @ 0x1800ef700\n// > <???> @ 0x1800f33c8\n// > <???> @ 0x1801b24a8\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\n// Hidden C++ exception states: #wind=1\ncocos2d::CCScene *__fastcall sub_180052410(cocos2d::CCScene *this, char a2)\n{\n  int v3; // esi\n\n  v3 = a2 & 1;\n  if ( (a2 & 2) != 0 )\n  {\n    `eh vector destructor iterator'(\n      this,\n      0x160u,\n      *((_QWORD *)this - 1),\n      (void (*)(void *))cocos2d::CCTransitionZoomFlipY::~CCTransitionZoomFlipY);\n    if ( v3 )\n      j_j_j_free_0((char *)this - 8);\n    return (cocos2d::CCScene *)((char *)this - 8);\n  }\n  else\n  {\n    this->__vftable = (cocos2d::CCScene_vtbl *)&cocos2d::CCTransitionScene::`vftable';\n    cocos2d::CCObject::release(*((cocos2d::CCObject **)this + 41));\n    cocos2d::CCObject::release(*((cocos2d::CCObject **)this + 42));\n    cocos2d::CCScene::~CCScene(this);\n    if ( v3 )\n      j_j_free_0(this);\n    return this;\n  }\n}", "assembly": "; \n; sub_180052410 from 0x180052410 to 0x1800524bd (173 bytes)\n; \n; 10 xrefs:\n; > cocos2d::CCTransitionCrossFade::create @ 0x180052d96\n; > cocos2d::CCTransitionJumpZoom::create @ 0x180053536\n; > cocos2d::CCTransitionRotoZoom::create @ 0x180053996\n; > cocos2d::CCTransitionCrossFade::create @ 0x180052d85\n; > cocos2d::CCTransitionJumpZoom::create @ 0x180053525\n; > cocos2d::CCTransitionRotoZoom::create @ 0x180053985\n; > <???> @ 0x1800ef380\n; > <???> @ 0x1800ef700\n; > <???> @ 0x1800f33c8\n; > <???> @ 0x1801b24a8\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, 0x180052410\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180052415\npush    rdi                                                            ; +0xa, 0x18005241a\nsub     rsp, 20h                                                       ; +0xb, 0x18005241b\nmov     rbx, rcx                                                       ; +0xf, 0x18005241f\nmov     esi, edx                                                       ; +0x12, 0x180052422\nand     esi, 1                                                         ; +0x14, 0x180052424\ntest    dl, 2                                                          ; +0x17, 0x180052427\njz      short loc_18005246E                                            ; +0x1a, 0x18005242a\nlea     r9, ??1CCTransitionZoomFlipY@cocos2d@@UEAA@XZ; void (*)(void *) ; +0x1c, 0x18005242c\nmov     r8, [rcx-8]; unsigned __int64                                  ; +0x23, 0x180052433\nmov     edx, 160h; unsigned __int64                                    ; +0x27, 0x180052437\ncall    ??_M@YAXPEAX_K1P6AX0@Z@Z; `eh vector destructor iterator'(void *,unsigned __int64,unsigned __int64,void (*)(void *)) ; +0x2c, 0x18005243c\ntest    esi, esi                                                       ; +0x31, 0x180052441\njz      short loc_18005245A                                            ; +0x33, 0x180052443\nimul    rdx, [rbx-8], 160h                                             ; +0x35, 0x180052445\nadd     rdx, 8                                                         ; +0x3d, 0x18005244d\nlea     rcx, [rbx-8]; Block                                            ; +0x41, 0x180052451\ncall    j_j_j_free_0                                                   ; +0x45, 0x180052455\nlea     rax, [rbx-8]                                                   ; +0x4a, 0x18005245a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4e, 0x18005245e\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x53, 0x180052463\nadd     rsp, 20h                                                       ; +0x58, 0x180052468\npop     rdi                                                            ; +0x5c, 0x18005246c\nretn                                                                   ; +0x5d, 0x18005246d\nlea     rax, ??_7CCTransitionScene@cocos2d@@6B@; const cocos2d::CCTransitionScene::`vftable' ; +0x5e, 0x18005246e\nmov     [rcx], rax                                                     ; +0x65, 0x180052475\nmov     rcx, [rcx+148h]; this                                          ; +0x68, 0x180052478\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x6f, 0x18005247f\nmov     rcx, [rbx+150h]; this                                          ; +0x74, 0x180052484\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x7b, 0x18005248b\nmov     rcx, rbx; this                                                 ; +0x80, 0x180052490\ncall    ??1CCScene@cocos2d@@UEAA@XZ; cocos2d::CCScene::~CCScene(void)  ; +0x83, 0x180052493\nnop                                                                    ; +0x88, 0x180052498\ntest    esi, esi                                                       ; +0x89, 0x180052499\njz      short loc_1800524AA                                            ; +0x8b, 0x18005249b\nmov     edx, 160h                                                      ; +0x8d, 0x18005249d\nmov     rcx, rbx; Block                                                ; +0x92, 0x1800524a2\ncall    j_j_free_0                                                     ; +0x95, 0x1800524a5\nmov     rax, rbx                                                       ; +0x9a, 0x1800524aa\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x9d, 0x1800524ad\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xa2, 0x1800524b2\nadd     rsp, 20h                                                       ; +0xa7, 0x1800524b7\npop     rdi                                                            ; +0xab, 0x1800524bb\nretn                                                                   ; +0xac, 0x1800524bc", "xrefs": ["cocos2d::CCTransitionCrossFade::create @ 0x180052d96", "cocos2d::CCTransitionJumpZoom::create @ 0x180053536", "cocos2d::CCTransitionRotoZoom::create @ 0x180053996", "cocos2d::CCTransitionCrossFade::create @ 0x180052d85", "cocos2d::CCTransitionJumpZoom::create @ 0x180053525", "cocos2d::CCTransitionRotoZoom::create @ 0x180053985", "<???> @ 0x1800ef380", "<???> @ 0x1800ef700", "<???> @ 0x1800f33c8", "<???> @ 0x1801b24a8"], "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"}