{"type": "func", "start": 6442796144, "end": 6442796317, "name": "sub_180054470", "pseudocode": "// \n// sub_180054470 from 0x180054470 to 0x18005451d (173 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCTransitionScene::create @ 0x180055826\n// > cocos2d::CCTransitionScene::create @ 0x180055815\n// > <???> @ 0x1800f4e78\n// > <???> @ 0x1801bc76c\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_180054470(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, 352, *(this - 1), cocos2d::CCTransitionScene::~CCTransitionScene);\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_180054470 from 0x180054470 to 0x18005451d (173 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCTransitionScene::create @ 0x180055826\n; > cocos2d::CCTransitionScene::create @ 0x180055815\n; > <???> @ 0x1800f4e78\n; > <???> @ 0x1801bc76c\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, 0x180054470\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180054475\npush    rdi                                                            ; +0xa, 0x18005447a\nsub     rsp, 20h                                                       ; +0xb, 0x18005447b\nmov     rbx, rcx                                                       ; +0xf, 0x18005447f\nmov     esi, edx                                                       ; +0x12, 0x180054482\nand     esi, 1                                                         ; +0x14, 0x180054484\ntest    dl, 2                                                          ; +0x17, 0x180054487\njz      short loc_1800544CE                                            ; +0x1a, 0x18005448a\nlea     r9, ??1CCTransitionScene@cocos2d@@UEAA@XZ; cocos2d::CCTransitionScene::~CCTransitionScene(void) ; +0x1c, 0x18005448c\nmov     r8, [rcx-8]                                                    ; +0x23, 0x180054493\nmov     edx, 160h                                                      ; +0x27, 0x180054497\ncall    sub_1800E49F8                                                  ; +0x2c, 0x18005449c\ntest    esi, esi                                                       ; +0x31, 0x1800544a1\njz      short loc_1800544BA                                            ; +0x33, 0x1800544a3\nimul    rdx, [rbx-8], 160h                                             ; +0x35, 0x1800544a5\nadd     rdx, 8                                                         ; +0x3d, 0x1800544ad\nlea     rcx, [rbx-8]; Block                                            ; +0x41, 0x1800544b1\ncall    j_j_j_free_0                                                   ; +0x45, 0x1800544b5\nlea     rax, [rbx-8]                                                   ; +0x4a, 0x1800544ba\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4e, 0x1800544be\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x53, 0x1800544c3\nadd     rsp, 20h                                                       ; +0x58, 0x1800544c8\npop     rdi                                                            ; +0x5c, 0x1800544cc\nretn                                                                   ; +0x5d, 0x1800544cd\nlea     rax, ??_7CCTransitionScene@cocos2d@@6B@; const cocos2d::CCTransitionScene::`vftable' ; +0x5e, 0x1800544ce\nmov     [rcx], rax                                                     ; +0x65, 0x1800544d5\nmov     rcx, [rcx+148h]; this                                          ; +0x68, 0x1800544d8\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x6f, 0x1800544df\nmov     rcx, [rbx+150h]; this                                          ; +0x74, 0x1800544e4\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x7b, 0x1800544eb\nmov     rcx, rbx; this                                                 ; +0x80, 0x1800544f0\ncall    ??1CCScene@cocos2d@@UEAA@XZ; cocos2d::CCScene::~CCScene(void)  ; +0x83, 0x1800544f3\nnop                                                                    ; +0x88, 0x1800544f8\ntest    esi, esi                                                       ; +0x89, 0x1800544f9\njz      short loc_18005450A                                            ; +0x8b, 0x1800544fb\nmov     edx, 160h                                                      ; +0x8d, 0x1800544fd\nmov     rcx, rbx; Block                                                ; +0x92, 0x180054502\ncall    j_j_free_0                                                     ; +0x95, 0x180054505\nmov     rax, rbx                                                       ; +0x9a, 0x18005450a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x9d, 0x18005450d\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xa2, 0x180054512\nadd     rsp, 20h                                                       ; +0xa7, 0x180054517\npop     rdi                                                            ; +0xab, 0x18005451b\nretn                                                                   ; +0xac, 0x18005451c", "xrefs": ["cocos2d::CCTransitionScene::create @ 0x180055826", "cocos2d::CCTransitionScene::create @ 0x180055815", "<???> @ 0x1800f4e78", "<???> @ 0x1801bc76c"], "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"}