{"type": "func", "start": 6442806992, "end": 6442807127, "name": "sub_180056ED0", "pseudocode": "// \n// sub_180056ED0 from 0x180056ed0 to 0x180056f57 (135 bytes)\n// \n// 22 xrefs:\n// > cocos2d::CCTransitionProgress::create @ 0x180057001\n// > cocos2d::CCTransitionProgressHorizontal::create @ 0x1800570e1\n// > cocos2d::CCTransitionProgressInOut::create @ 0x1800571c1\n// > cocos2d::CCTransitionProgressOutIn::create @ 0x1800572a1\n// > cocos2d::CCTransitionProgressRadialCCW::create @ 0x180057381\n// > cocos2d::CCTransitionProgressRadialCW::create @ 0x180057461\n// > cocos2d::CCTransitionProgressVertical::create @ 0x180057541\n// > cocos2d::CCTransitionProgress::create @ 0x180056ff0\n// > cocos2d::CCTransitionProgressHorizontal::create @ 0x1800570d0\n// > cocos2d::CCTransitionProgressInOut::create @ 0x1800571b0\n// > cocos2d::CCTransitionProgressOutIn::create @ 0x180057290\n// > cocos2d::CCTransitionProgressRadialCCW::create @ 0x180057370\n// > cocos2d::CCTransitionProgressRadialCW::create @ 0x180057450\n// > cocos2d::CCTransitionProgressVertical::create @ 0x180057530\n// > <???> @ 0x1800f5408\n// > <???> @ 0x1800f5798\n// > <???> @ 0x1800f5b28\n// > <???> @ 0x1800f5eb8\n// > <???> @ 0x1800f6248\n// > <???> @ 0x1800f65d8\n// > <???> @ 0x1800f6968\n// > <???> @ 0x1801b2934\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::CCTransitionScene *__fastcall sub_180056ED0(cocos2d::CCTransitionScene *Block, char a2)\n{\n  int v3; // edi\n\n  v3 = a2 & 1;\n  if ( (a2 & 2) != 0 )\n  {\n    `eh vector destructor iterator'(\n      Block,\n      0x170u,\n      (unsigned __int64)Block[-1].m_pDelegate,\n      (void (*)(void *))cocos2d::CCTransitionProgressVertical::~CCTransitionProgressVertical);\n    if ( v3 )\n      j_j_j_free_0(&Block[-1].m_pDelegate);\n    return (cocos2d::CCTransitionScene *)((char *)Block - 8);\n  }\n  else\n  {\n    cocos2d::CCTransitionScene::~CCTransitionScene(Block);\n    if ( v3 )\n      j_j_free_0(Block);\n    return Block;\n  }\n}", "assembly": "; \n; sub_180056ED0 from 0x180056ed0 to 0x180056f57 (135 bytes)\n; \n; 22 xrefs:\n; > cocos2d::CCTransitionProgress::create @ 0x180057001\n; > cocos2d::CCTransitionProgressHorizontal::create @ 0x1800570e1\n; > cocos2d::CCTransitionProgressInOut::create @ 0x1800571c1\n; > cocos2d::CCTransitionProgressOutIn::create @ 0x1800572a1\n; > cocos2d::CCTransitionProgressRadialCCW::create @ 0x180057381\n; > cocos2d::CCTransitionProgressRadialCW::create @ 0x180057461\n; > cocos2d::CCTransitionProgressVertical::create @ 0x180057541\n; > cocos2d::CCTransitionProgress::create @ 0x180056ff0\n; > cocos2d::CCTransitionProgressHorizontal::create @ 0x1800570d0\n; > cocos2d::CCTransitionProgressInOut::create @ 0x1800571b0\n; > cocos2d::CCTransitionProgressOutIn::create @ 0x180057290\n; > cocos2d::CCTransitionProgressRadialCCW::create @ 0x180057370\n; > cocos2d::CCTransitionProgressRadialCW::create @ 0x180057450\n; > cocos2d::CCTransitionProgressVertical::create @ 0x180057530\n; > <???> @ 0x1800f5408\n; > <???> @ 0x1800f5798\n; > <???> @ 0x1800f5b28\n; > <???> @ 0x1800f5eb8\n; > <???> @ 0x1800f6248\n; > <???> @ 0x1800f65d8\n; > <???> @ 0x1800f6968\n; > <???> @ 0x1801b2934\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, 0x180056ed0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180056ed5\npush    rdi                                                            ; +0xa, 0x180056eda\nsub     rsp, 20h                                                       ; +0xb, 0x180056edb\nmov     rbx, rcx                                                       ; +0xf, 0x180056edf\nmov     edi, edx                                                       ; +0x12, 0x180056ee2\nand     edi, 1                                                         ; +0x14, 0x180056ee4\ntest    dl, 2                                                          ; +0x17, 0x180056ee7\njz      short loc_180056F2E                                            ; +0x1a, 0x180056eea\nlea     r9, ??1CCTransitionProgressVertical@cocos2d@@UEAA@XZ; void (*)(void *) ; +0x1c, 0x180056eec\nmov     r8, [rcx-8]; unsigned __int64                                  ; +0x23, 0x180056ef3\nmov     edx, 170h; unsigned __int64                                    ; +0x27, 0x180056ef7\ncall    ??_M@YAXPEAX_K1P6AX0@Z@Z; `eh vector destructor iterator'(void *,unsigned __int64,unsigned __int64,void (*)(void *)) ; +0x2c, 0x180056efc\ntest    edi, edi                                                       ; +0x31, 0x180056f01\njz      short loc_180056F1A                                            ; +0x33, 0x180056f03\nimul    rdx, [rbx-8], 170h                                             ; +0x35, 0x180056f05\nadd     rdx, 8                                                         ; +0x3d, 0x180056f0d\nlea     rcx, [rbx-8]; Block                                            ; +0x41, 0x180056f11\ncall    j_j_j_free_0                                                   ; +0x45, 0x180056f15\nlea     rax, [rbx-8]                                                   ; +0x4a, 0x180056f1a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4e, 0x180056f1e\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x53, 0x180056f23\nadd     rsp, 20h                                                       ; +0x58, 0x180056f28\npop     rdi                                                            ; +0x5c, 0x180056f2c\nretn                                                                   ; +0x5d, 0x180056f2d\ncall    ??1CCTransitionScene@cocos2d@@UEAA@XZ; cocos2d::CCTransitionScene::~CCTransitionScene(void) ; +0x5e, 0x180056f2e\ntest    edi, edi                                                       ; +0x63, 0x180056f33\njz      short loc_180056F44                                            ; +0x65, 0x180056f35\nmov     edx, 170h                                                      ; +0x67, 0x180056f37\nmov     rcx, rbx; Block                                                ; +0x6c, 0x180056f3c\ncall    j_j_free_0                                                     ; +0x6f, 0x180056f3f\nmov     rax, rbx                                                       ; +0x74, 0x180056f44\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x77, 0x180056f47\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x7c, 0x180056f4c\nadd     rsp, 20h                                                       ; +0x81, 0x180056f51\npop     rdi                                                            ; +0x85, 0x180056f55\nretn                                                                   ; +0x86, 0x180056f56", "xrefs": ["cocos2d::CCTransitionProgress::create @ 0x180057001", "cocos2d::CCTransitionProgressHorizontal::create @ 0x1800570e1", "cocos2d::CCTransitionProgressInOut::create @ 0x1800571c1", "cocos2d::CCTransitionProgressOutIn::create @ 0x1800572a1", "cocos2d::CCTransitionProgressRadialCCW::create @ 0x180057381", "cocos2d::CCTransitionProgressRadialCW::create @ 0x180057461", "cocos2d::CCTransitionProgressVertical::create @ 0x180057541", "cocos2d::CCTransitionProgress::create @ 0x180056ff0", "cocos2d::CCTransitionProgressHorizontal::create @ 0x1800570d0", "cocos2d::CCTransitionProgressInOut::create @ 0x1800571b0", "cocos2d::CCTransitionProgressOutIn::create @ 0x180057290", "cocos2d::CCTransitionProgressRadialCCW::create @ 0x180057370", "cocos2d::CCTransitionProgressRadialCW::create @ 0x180057450", "cocos2d::CCTransitionProgressVertical::create @ 0x180057530", "<???> @ 0x1800f5408", "<???> @ 0x1800f5798", "<???> @ 0x1800f5b28", "<???> @ 0x1800f5eb8", "<???> @ 0x1800f6248", "<???> @ 0x1800f65d8", "<???> @ 0x1800f6968", "<???> @ 0x1801b2934"], "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"}