{"type": "func", "start": 6442795760, "end": 6442795947, "name": "sub_1800542F0", "pseudocode": "// \n// sub_1800542F0 from 0x1800542f0 to 0x1800543ab (187 bytes)\n// \n// 13 xrefs:\n// > cocos2d::CCTransitionFadeBL::create @ 0x180054d64\n// > cocos2d::CCTransitionFadeDown::create @ 0x180054e44\n// > cocos2d::CCTransitionFadeTR::create @ 0x180054f24\n// > cocos2d::CCTransitionFadeUp::create @ 0x180055004\n// > cocos2d::CCTransitionFadeBL::create @ 0x180054d53\n// > cocos2d::CCTransitionFadeDown::create @ 0x180054e33\n// > cocos2d::CCTransitionFadeTR::create @ 0x180054f13\n// > cocos2d::CCTransitionFadeUp::create @ 0x180054ff3\n// > <???> @ 0x1800fa588\n// > <???> @ 0x1800fa930\n// > <???> @ 0x1800facd8\n// > <???> @ 0x1800fb080\n// > <???> @ 0x1801bc754\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\n// Hidden C++ exception states: #wind=1\ncocos2d::CCScene *__fastcall sub_1800542F0(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::CCTransitionFadeUp::~CCTransitionFadeUp);\n    if ( v3 )\n      j_j_j_free_0(this - 1);\n    return (cocos2d::CCScene *)(this - 1);\n  }\n  else\n  {\n    *(this + 44) = (cocos2d::CCObject *)&cocos2d::CCTransitionFadeTR::`vftable'{for `cocos2d::CCTransitionEaseScene'};\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_1800542F0 from 0x1800542f0 to 0x1800543ab (187 bytes)\n; \n; 13 xrefs:\n; > cocos2d::CCTransitionFadeBL::create @ 0x180054d64\n; > cocos2d::CCTransitionFadeDown::create @ 0x180054e44\n; > cocos2d::CCTransitionFadeTR::create @ 0x180054f24\n; > cocos2d::CCTransitionFadeUp::create @ 0x180055004\n; > cocos2d::CCTransitionFadeBL::create @ 0x180054d53\n; > cocos2d::CCTransitionFadeDown::create @ 0x180054e33\n; > cocos2d::CCTransitionFadeTR::create @ 0x180054f13\n; > cocos2d::CCTransitionFadeUp::create @ 0x180054ff3\n; > <???> @ 0x1800fa588\n; > <???> @ 0x1800fa930\n; > <???> @ 0x1800facd8\n; > <???> @ 0x1800fb080\n; > <???> @ 0x1801bc754\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, 0x1800542f0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800542f5\npush    rdi                                                            ; +0xa, 0x1800542fa\nsub     rsp, 20h                                                       ; +0xb, 0x1800542fb\nmov     rbx, rcx                                                       ; +0xf, 0x1800542ff\nmov     esi, edx                                                       ; +0x12, 0x180054302\nand     esi, 1                                                         ; +0x14, 0x180054304\ntest    dl, 2                                                          ; +0x17, 0x180054307\njz      short loc_18005434E                                            ; +0x1a, 0x18005430a\nlea     r9, ??1CCTransitionFadeUp@cocos2d@@UEAA@XZ; cocos2d::CCTransitionFadeUp::~CCTransitionFadeUp(void) ; +0x1c, 0x18005430c\nmov     r8, [rcx-8]                                                    ; +0x23, 0x180054313\nmov     edx, 168h                                                      ; +0x27, 0x180054317\ncall    sub_1800E49F8                                                  ; +0x2c, 0x18005431c\ntest    esi, esi                                                       ; +0x31, 0x180054321\njz      short loc_18005433A                                            ; +0x33, 0x180054323\nimul    rdx, [rbx-8], 168h                                             ; +0x35, 0x180054325\nadd     rdx, 8                                                         ; +0x3d, 0x18005432d\nlea     rcx, [rbx-8]; Block                                            ; +0x41, 0x180054331\ncall    j_j_j_free_0                                                   ; +0x45, 0x180054335\nlea     rax, [rbx-8]                                                   ; +0x4a, 0x18005433a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4e, 0x18005433e\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x53, 0x180054343\nadd     rsp, 20h                                                       ; +0x58, 0x180054348\npop     rdi                                                            ; +0x5c, 0x18005434c\nretn                                                                   ; +0x5d, 0x18005434d\nlea     rax, ??_7CCTransitionFadeTR@cocos2d@@6BCCTransitionEaseScene@1@@; const cocos2d::CCTransitionFadeTR::`vftable'{for `cocos2d::CCTransitionEaseScene'} ; +0x5e, 0x18005434e\nmov     [rcx+160h], rax                                                ; +0x65, 0x180054355\nlea     rax, ??_7CCTransitionScene@cocos2d@@6B@; const cocos2d::CCTransitionScene::`vftable' ; +0x6c, 0x18005435c\nmov     [rcx], rax                                                     ; +0x73, 0x180054363\nmov     rcx, [rcx+148h]; this                                          ; +0x76, 0x180054366\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x7d, 0x18005436d\nmov     rcx, [rbx+150h]; this                                          ; +0x82, 0x180054372\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x89, 0x180054379\nmov     rcx, rbx; this                                                 ; +0x8e, 0x18005437e\ncall    ??1CCScene@cocos2d@@UEAA@XZ; cocos2d::CCScene::~CCScene(void)  ; +0x91, 0x180054381\nnop                                                                    ; +0x96, 0x180054386\ntest    esi, esi                                                       ; +0x97, 0x180054387\njz      short loc_180054398                                            ; +0x99, 0x180054389\nmov     edx, 168h                                                      ; +0x9b, 0x18005438b\nmov     rcx, rbx; Block                                                ; +0xa0, 0x180054390\ncall    j_j_free_0                                                     ; +0xa3, 0x180054393\nmov     rax, rbx                                                       ; +0xa8, 0x180054398\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xab, 0x18005439b\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xb0, 0x1800543a0\nadd     rsp, 20h                                                       ; +0xb5, 0x1800543a5\npop     rdi                                                            ; +0xb9, 0x1800543a9\nretn                                                                   ; +0xba, 0x1800543aa", "xrefs": ["cocos2d::CCTransitionFadeBL::create @ 0x180054d64", "cocos2d::CCTransitionFadeDown::create @ 0x180054e44", "cocos2d::CCTransitionFadeTR::create @ 0x180054f24", "cocos2d::CCTransitionFadeUp::create @ 0x180055004", "cocos2d::CCTransitionFadeBL::create @ 0x180054d53", "cocos2d::CCTransitionFadeDown::create @ 0x180054e33", "cocos2d::CCTransitionFadeTR::create @ 0x180054f13", "cocos2d::CCTransitionFadeUp::create @ 0x180054ff3", "<???> @ 0x1800fa588", "<???> @ 0x1800fa930", "<???> @ 0x1800facd8", "<???> @ 0x1800fb080", "<???> @ 0x1801bc754"], "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"}