{"type": "func", "start": 6442796320, "end": 6442796507, "name": "sub_180054520", "pseudocode": "// \n// sub_180054520 from 0x180054520 to 0x1800545db (187 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCTransitionShrinkGrow::create @ 0x1800559b4\n// > cocos2d::CCTransitionShrinkGrow::create @ 0x1800559a3\n// > <???> @ 0x1800f7a40\n// > <???> @ 0x1801bc778\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_180054520(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::CCTransitionShrinkGrow::~CCTransitionShrinkGrow);\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::CCTransitionShrinkGrow::`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_180054520 from 0x180054520 to 0x1800545db (187 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCTransitionShrinkGrow::create @ 0x1800559b4\n; > cocos2d::CCTransitionShrinkGrow::create @ 0x1800559a3\n; > <???> @ 0x1800f7a40\n; > <???> @ 0x1801bc778\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, 0x180054520\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180054525\npush    rdi                                                            ; +0xa, 0x18005452a\nsub     rsp, 20h                                                       ; +0xb, 0x18005452b\nmov     rbx, rcx                                                       ; +0xf, 0x18005452f\nmov     esi, edx                                                       ; +0x12, 0x180054532\nand     esi, 1                                                         ; +0x14, 0x180054534\ntest    dl, 2                                                          ; +0x17, 0x180054537\njz      short loc_18005457E                                            ; +0x1a, 0x18005453a\nlea     r9, ??1CCTransitionShrinkGrow@cocos2d@@UEAA@XZ; cocos2d::CCTransitionShrinkGrow::~CCTransitionShrinkGrow(void) ; +0x1c, 0x18005453c\nmov     r8, [rcx-8]                                                    ; +0x23, 0x180054543\nmov     edx, 168h                                                      ; +0x27, 0x180054547\ncall    sub_1800E49F8                                                  ; +0x2c, 0x18005454c\ntest    esi, esi                                                       ; +0x31, 0x180054551\njz      short loc_18005456A                                            ; +0x33, 0x180054553\nimul    rdx, [rbx-8], 168h                                             ; +0x35, 0x180054555\nadd     rdx, 8                                                         ; +0x3d, 0x18005455d\nlea     rcx, [rbx-8]; Block                                            ; +0x41, 0x180054561\ncall    j_j_j_free_0                                                   ; +0x45, 0x180054565\nlea     rax, [rbx-8]                                                   ; +0x4a, 0x18005456a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4e, 0x18005456e\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x53, 0x180054573\nadd     rsp, 20h                                                       ; +0x58, 0x180054578\npop     rdi                                                            ; +0x5c, 0x18005457c\nretn                                                                   ; +0x5d, 0x18005457d\nlea     rax, ??_7CCTransitionShrinkGrow@cocos2d@@6BCCTransitionEaseScene@1@@; const cocos2d::CCTransitionShrinkGrow::`vftable'{for `cocos2d::CCTransitionEaseScene'} ; +0x5e, 0x18005457e\nmov     [rcx+160h], rax                                                ; +0x65, 0x180054585\nlea     rax, ??_7CCTransitionScene@cocos2d@@6B@; const cocos2d::CCTransitionScene::`vftable' ; +0x6c, 0x18005458c\nmov     [rcx], rax                                                     ; +0x73, 0x180054593\nmov     rcx, [rcx+148h]; this                                          ; +0x76, 0x180054596\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x7d, 0x18005459d\nmov     rcx, [rbx+150h]; this                                          ; +0x82, 0x1800545a2\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x89, 0x1800545a9\nmov     rcx, rbx; this                                                 ; +0x8e, 0x1800545ae\ncall    ??1CCScene@cocos2d@@UEAA@XZ; cocos2d::CCScene::~CCScene(void)  ; +0x91, 0x1800545b1\nnop                                                                    ; +0x96, 0x1800545b6\ntest    esi, esi                                                       ; +0x97, 0x1800545b7\njz      short loc_1800545C8                                            ; +0x99, 0x1800545b9\nmov     edx, 168h                                                      ; +0x9b, 0x1800545bb\nmov     rcx, rbx; Block                                                ; +0xa0, 0x1800545c0\ncall    j_j_free_0                                                     ; +0xa3, 0x1800545c3\nmov     rax, rbx                                                       ; +0xa8, 0x1800545c8\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xab, 0x1800545cb\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xb0, 0x1800545d0\nadd     rsp, 20h                                                       ; +0xb5, 0x1800545d5\npop     rdi                                                            ; +0xb9, 0x1800545d9\nretn                                                                   ; +0xba, 0x1800545da", "xrefs": ["cocos2d::CCTransitionShrinkGrow::create @ 0x1800559b4", "cocos2d::CCTransitionShrinkGrow::create @ 0x1800559a3", "<???> @ 0x1800f7a40", "<???> @ 0x1801bc778"], "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"}