{"type": "func", "start": 6442788768, "end": 6442788955, "name": "sub_1800527A0", "pseudocode": "// \n// sub_1800527A0 from 0x1800527a0 to 0x18005285b (187 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCTransitionShrinkGrow::create @ 0x180053c04\n// > cocos2d::CCTransitionShrinkGrow::create @ 0x180053bf3\n// > <???> @ 0x1800f1780\n// > <???> @ 0x1801b24e4\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_1800527A0(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::CCTransitionShrinkGrow::~CCTransitionShrinkGrow);\n    if ( v3 )\n      j_j_j_free_0((char *)this - 8);\n    return (cocos2d::CCScene *)((char *)this - 8);\n  }\n  else\n  {\n    *((_QWORD *)this + 44) = &cocos2d::CCTransitionShrinkGrow::`vftable'{for `cocos2d::CCTransitionEaseScene'};\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_1800527A0 from 0x1800527a0 to 0x18005285b (187 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCTransitionShrinkGrow::create @ 0x180053c04\n; > cocos2d::CCTransitionShrinkGrow::create @ 0x180053bf3\n; > <???> @ 0x1800f1780\n; > <???> @ 0x1801b24e4\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, 0x1800527a0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800527a5\npush    rdi                                                            ; +0xa, 0x1800527aa\nsub     rsp, 20h                                                       ; +0xb, 0x1800527ab\nmov     rbx, rcx                                                       ; +0xf, 0x1800527af\nmov     esi, edx                                                       ; +0x12, 0x1800527b2\nand     esi, 1                                                         ; +0x14, 0x1800527b4\ntest    dl, 2                                                          ; +0x17, 0x1800527b7\njz      short loc_1800527FE                                            ; +0x1a, 0x1800527ba\nlea     r9, ??1CCTransitionShrinkGrow@cocos2d@@UEAA@XZ; void (*)(void *) ; +0x1c, 0x1800527bc\nmov     r8, [rcx-8]; unsigned __int64                                  ; +0x23, 0x1800527c3\nmov     edx, 168h; unsigned __int64                                    ; +0x27, 0x1800527c7\ncall    ??_M@YAXPEAX_K1P6AX0@Z@Z; `eh vector destructor iterator'(void *,unsigned __int64,unsigned __int64,void (*)(void *)) ; +0x2c, 0x1800527cc\ntest    esi, esi                                                       ; +0x31, 0x1800527d1\njz      short loc_1800527EA                                            ; +0x33, 0x1800527d3\nimul    rdx, [rbx-8], 168h                                             ; +0x35, 0x1800527d5\nadd     rdx, 8                                                         ; +0x3d, 0x1800527dd\nlea     rcx, [rbx-8]; Block                                            ; +0x41, 0x1800527e1\ncall    j_j_j_free_0                                                   ; +0x45, 0x1800527e5\nlea     rax, [rbx-8]                                                   ; +0x4a, 0x1800527ea\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4e, 0x1800527ee\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x53, 0x1800527f3\nadd     rsp, 20h                                                       ; +0x58, 0x1800527f8\npop     rdi                                                            ; +0x5c, 0x1800527fc\nretn                                                                   ; +0x5d, 0x1800527fd\nlea     rax, ??_7CCTransitionShrinkGrow@cocos2d@@6BCCTransitionEaseScene@1@@; const cocos2d::CCTransitionShrinkGrow::`vftable'{for `cocos2d::CCTransitionEaseScene'} ; +0x5e, 0x1800527fe\nmov     [rcx+160h], rax                                                ; +0x65, 0x180052805\nlea     rax, ??_7CCTransitionScene@cocos2d@@6B@; const cocos2d::CCTransitionScene::`vftable' ; +0x6c, 0x18005280c\nmov     [rcx], rax                                                     ; +0x73, 0x180052813\nmov     rcx, [rcx+148h]; this                                          ; +0x76, 0x180052816\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x7d, 0x18005281d\nmov     rcx, [rbx+150h]; this                                          ; +0x82, 0x180052822\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x89, 0x180052829\nmov     rcx, rbx; this                                                 ; +0x8e, 0x18005282e\ncall    ??1CCScene@cocos2d@@UEAA@XZ; cocos2d::CCScene::~CCScene(void)  ; +0x91, 0x180052831\nnop                                                                    ; +0x96, 0x180052836\ntest    esi, esi                                                       ; +0x97, 0x180052837\njz      short loc_180052848                                            ; +0x99, 0x180052839\nmov     edx, 168h                                                      ; +0x9b, 0x18005283b\nmov     rcx, rbx; Block                                                ; +0xa0, 0x180052840\ncall    j_j_free_0                                                     ; +0xa3, 0x180052843\nmov     rax, rbx                                                       ; +0xa8, 0x180052848\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xab, 0x18005284b\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xb0, 0x180052850\nadd     rsp, 20h                                                       ; +0xb5, 0x180052855\npop     rdi                                                            ; +0xb9, 0x180052859\nretn                                                                   ; +0xba, 0x18005285a", "xrefs": ["cocos2d::CCTransitionShrinkGrow::create @ 0x180053c04", "cocos2d::CCTransitionShrinkGrow::create @ 0x180053bf3", "<???> @ 0x1800f1780", "<???> @ 0x1801b24e4"], "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"}