{"type": "func", "start": 6442795584, "end": 6442795757, "name": "sub_180054240", "pseudocode": "// \n// sub_180054240 from 0x180054240 to 0x1800542ed (173 bytes)\n// \n// 9 xrefs:\n// > <???> @ 0x1800f5208\n// > <???> @ 0x1800f7de0\n// > <???> @ 0x1800f8178\n// > <???> @ 0x1800f8510\n// > <???> @ 0x1800f88a8\n// > <???> @ 0x1800f8c40\n// > <???> @ 0x1800f8fd8\n// > <???> @ 0x1800f9370\n// > <???> @ 0x1801bc748\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:46 +0000\n// \n\ncocos2d::CCScene *__fastcall sub_180054240(cocos2d::CCObject **this, char a2)\n{\n  int v3; // esi\n\n  v3 = a2 & 1;\n  if ( (a2 & 2) != 0 )\n  {\n    sub_1800E49F8(this, 360, *(this - 1), cocos2d::CCTransitionZoomFlipY::~CCTransitionZoomFlipY);\n    if ( v3 )\n      j_j_j_free_0(this - 1);\n    return (cocos2d::CCScene *)(this - 1);\n  }\n  else\n  {\n    *this = (cocos2d::CCObject *)&cocos2d::CCTransitionScene::`vftable';\n    cocos2d::CCObject::release(*(this + 41));\n    cocos2d::CCObject::release(*(this + 42));\n    cocos2d::CCScene::~CCScene((cocos2d::CCScene *)this);\n    if ( v3 )\n      j_j_free_0(this);\n    return (cocos2d::CCScene *)this;\n  }\n}", "assembly": "; \n; sub_180054240 from 0x180054240 to 0x1800542ed (173 bytes)\n; \n; 9 xrefs:\n; > <???> @ 0x1800f5208\n; > <???> @ 0x1800f7de0\n; > <???> @ 0x1800f8178\n; > <???> @ 0x1800f8510\n; > <???> @ 0x1800f88a8\n; > <???> @ 0x1800f8c40\n; > <???> @ 0x1800f8fd8\n; > <???> @ 0x1800f9370\n; > <???> @ 0x1801bc748\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:46 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180054240\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180054245\npush    rdi                                                            ; +0xa, 0x18005424a\nsub     rsp, 20h                                                       ; +0xb, 0x18005424b\nmov     rbx, rcx                                                       ; +0xf, 0x18005424f\nmov     esi, edx                                                       ; +0x12, 0x180054252\nand     esi, 1                                                         ; +0x14, 0x180054254\ntest    dl, 2                                                          ; +0x17, 0x180054257\njz      short loc_18005429E                                            ; +0x1a, 0x18005425a\nlea     r9, ??1CCTransitionZoomFlipY@cocos2d@@UEAA@XZ; cocos2d::CCTransitionZoomFlipY::~CCTransitionZoomFlipY(void) ; +0x1c, 0x18005425c\nmov     r8, [rcx-8]                                                    ; +0x23, 0x180054263\nmov     edx, 168h                                                      ; +0x27, 0x180054267\ncall    sub_1800E49F8                                                  ; +0x2c, 0x18005426c\ntest    esi, esi                                                       ; +0x31, 0x180054271\njz      short loc_18005428A                                            ; +0x33, 0x180054273\nimul    rdx, [rbx-8], 168h                                             ; +0x35, 0x180054275\nadd     rdx, 8                                                         ; +0x3d, 0x18005427d\nlea     rcx, [rbx-8]; Block                                            ; +0x41, 0x180054281\ncall    j_j_j_free_0                                                   ; +0x45, 0x180054285\nlea     rax, [rbx-8]                                                   ; +0x4a, 0x18005428a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4e, 0x18005428e\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x53, 0x180054293\nadd     rsp, 20h                                                       ; +0x58, 0x180054298\npop     rdi                                                            ; +0x5c, 0x18005429c\nretn                                                                   ; +0x5d, 0x18005429d\nlea     rax, ??_7CCTransitionScene@cocos2d@@6B@; const cocos2d::CCTransitionScene::`vftable' ; +0x5e, 0x18005429e\nmov     [rcx], rax                                                     ; +0x65, 0x1800542a5\nmov     rcx, [rcx+148h]; this                                          ; +0x68, 0x1800542a8\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x6f, 0x1800542af\nmov     rcx, [rbx+150h]; this                                          ; +0x74, 0x1800542b4\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x7b, 0x1800542bb\nmov     rcx, rbx; this                                                 ; +0x80, 0x1800542c0\ncall    ??1CCScene@cocos2d@@UEAA@XZ; cocos2d::CCScene::~CCScene(void)  ; +0x83, 0x1800542c3\nnop                                                                    ; +0x88, 0x1800542c8\ntest    esi, esi                                                       ; +0x89, 0x1800542c9\njz      short loc_1800542DA                                            ; +0x8b, 0x1800542cb\nmov     edx, 168h                                                      ; +0x8d, 0x1800542cd\nmov     rcx, rbx; Block                                                ; +0x92, 0x1800542d2\ncall    j_j_free_0                                                     ; +0x95, 0x1800542d5\nmov     rax, rbx                                                       ; +0x9a, 0x1800542da\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x9d, 0x1800542dd\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xa2, 0x1800542e2\nadd     rsp, 20h                                                       ; +0xa7, 0x1800542e7\npop     rdi                                                            ; +0xab, 0x1800542eb\nretn                                                                   ; +0xac, 0x1800542ec", "xrefs": ["<???> @ 0x1800f5208", "<???> @ 0x1800f7de0", "<???> @ 0x1800f8178", "<???> @ 0x1800f8510", "<???> @ 0x1800f88a8", "<???> @ 0x1800f8c40", "<???> @ 0x1800f8fd8", "<???> @ 0x1800f9370", "<???> @ 0x1801bc748"], "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"}