{"type": "func", "start": 6442788032, "end": 6442788205, "name": "sub_1800524C0", "pseudocode": "// \n// sub_1800524C0 from 0x1800524c0 to 0x18005256d (173 bytes)\n// \n// 9 xrefs:\n// > <???> @ 0x1800eeff8\n// > <???> @ 0x1800f1b10\n// > <???> @ 0x1800f1e98\n// > <???> @ 0x1800f2220\n// > <???> @ 0x1800f25a8\n// > <???> @ 0x1800f2930\n// > <???> @ 0x1800f2cb8\n// > <???> @ 0x1800f3040\n// > <???> @ 0x1801b24b4\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\ncocos2d::CCScene *__fastcall sub_1800524C0(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      0x168u,\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_1800524C0 from 0x1800524c0 to 0x18005256d (173 bytes)\n; \n; 9 xrefs:\n; > <???> @ 0x1800eeff8\n; > <???> @ 0x1800f1b10\n; > <???> @ 0x1800f1e98\n; > <???> @ 0x1800f2220\n; > <???> @ 0x1800f25a8\n; > <???> @ 0x1800f2930\n; > <???> @ 0x1800f2cb8\n; > <???> @ 0x1800f3040\n; > <???> @ 0x1801b24b4\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, 0x1800524c0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800524c5\npush    rdi                                                            ; +0xa, 0x1800524ca\nsub     rsp, 20h                                                       ; +0xb, 0x1800524cb\nmov     rbx, rcx                                                       ; +0xf, 0x1800524cf\nmov     esi, edx                                                       ; +0x12, 0x1800524d2\nand     esi, 1                                                         ; +0x14, 0x1800524d4\ntest    dl, 2                                                          ; +0x17, 0x1800524d7\njz      short loc_18005251E                                            ; +0x1a, 0x1800524da\nlea     r9, ??1CCTransitionZoomFlipY@cocos2d@@UEAA@XZ; void (*)(void *) ; +0x1c, 0x1800524dc\nmov     r8, [rcx-8]; unsigned __int64                                  ; +0x23, 0x1800524e3\nmov     edx, 168h; unsigned __int64                                    ; +0x27, 0x1800524e7\ncall    ??_M@YAXPEAX_K1P6AX0@Z@Z; `eh vector destructor iterator'(void *,unsigned __int64,unsigned __int64,void (*)(void *)) ; +0x2c, 0x1800524ec\ntest    esi, esi                                                       ; +0x31, 0x1800524f1\njz      short loc_18005250A                                            ; +0x33, 0x1800524f3\nimul    rdx, [rbx-8], 168h                                             ; +0x35, 0x1800524f5\nadd     rdx, 8                                                         ; +0x3d, 0x1800524fd\nlea     rcx, [rbx-8]; Block                                            ; +0x41, 0x180052501\ncall    j_j_j_free_0                                                   ; +0x45, 0x180052505\nlea     rax, [rbx-8]                                                   ; +0x4a, 0x18005250a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4e, 0x18005250e\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x53, 0x180052513\nadd     rsp, 20h                                                       ; +0x58, 0x180052518\npop     rdi                                                            ; +0x5c, 0x18005251c\nretn                                                                   ; +0x5d, 0x18005251d\nlea     rax, ??_7CCTransitionScene@cocos2d@@6B@; const cocos2d::CCTransitionScene::`vftable' ; +0x5e, 0x18005251e\nmov     [rcx], rax                                                     ; +0x65, 0x180052525\nmov     rcx, [rcx+148h]; this                                          ; +0x68, 0x180052528\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x6f, 0x18005252f\nmov     rcx, [rbx+150h]; this                                          ; +0x74, 0x180052534\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x7b, 0x18005253b\nmov     rcx, rbx; this                                                 ; +0x80, 0x180052540\ncall    ??1CCScene@cocos2d@@UEAA@XZ; cocos2d::CCScene::~CCScene(void)  ; +0x83, 0x180052543\nnop                                                                    ; +0x88, 0x180052548\ntest    esi, esi                                                       ; +0x89, 0x180052549\njz      short loc_18005255A                                            ; +0x8b, 0x18005254b\nmov     edx, 168h                                                      ; +0x8d, 0x18005254d\nmov     rcx, rbx; Block                                                ; +0x92, 0x180052552\ncall    j_j_free_0                                                     ; +0x95, 0x180052555\nmov     rax, rbx                                                       ; +0x9a, 0x18005255a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x9d, 0x18005255d\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xa2, 0x180052562\nadd     rsp, 20h                                                       ; +0xa7, 0x180052567\npop     rdi                                                            ; +0xab, 0x18005256b\nretn                                                                   ; +0xac, 0x18005256c", "xrefs": ["<???> @ 0x1800eeff8", "<???> @ 0x1800f1b10", "<???> @ 0x1800f1e98", "<???> @ 0x1800f2220", "<???> @ 0x1800f25a8", "<???> @ 0x1800f2930", "<???> @ 0x1800f2cb8", "<???> @ 0x1800f3040", "<???> @ 0x1801b24b4"], "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"}