{"type": "func", "start": 5372689776, "end": 5372689970, "name": "RetryLevelLayer::onReplay", "pseudocode": "// \n// RetryLevelLayer::onReplay from 0x1403cbd70 to 0x1403cbe32 (194 bytes)\n// \n// 3 xrefs:\n// > RetryLevelLayer::keyDown @ 0x1403cbe74\n// > RetryLevelLayer::customSetup @ 0x1403cb4ea\n// > <???> @ 0x1406d7b5c\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\n// Hidden C++ exception states: #wind=2\nvoid RetryLevelLayer::onReplay(RetryLevelLayer *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v3; // rcx\n  __int64 v4; // rcx\n  cocos2d::CCEGLView *v5; // rax\n  __int64 v6; // rcx\n  void *v7; // [rsp+30h] [rbp+8h]\n  void *v8; // [rsp+30h] [rbp+8h]\n\n  v3 = (GameManager *)qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v7 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v7);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v3 = (GameManager *)qword_1406C2ED8;\n  }\n  if ( !GameManager::getGameVariable(v3, \"0024\") )\n  {\n    v5 = (cocos2d::CCEGLView *)cocos2d::CCEGLView::sharedOpenGLView(v4);\n    cocos2d::CCEGLView::showCursor(v5, 0);\n  }\n  v6 = qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v8 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v8);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v6 = qword_1406C2ED8;\n  }\n  (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(v6 + 520) + 1408LL))(*(_QWORD *)(v6 + 520));\n  a1->removeMeAndCleanup(a1);\n}", "assembly": "; \n; RetryLevelLayer::onReplay from 0x1403cbd70 to 0x1403cbe32 (194 bytes)\n; \n; 3 xrefs:\n; > RetryLevelLayer::keyDown @ 0x1403cbe74\n; > RetryLevelLayer::customSetup @ 0x1403cb4ea\n; > <???> @ 0x1406d7b5c\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\npush    rbx                                                            ; +0x0, 0x1403cbd70\nsub     rsp, 20h                                                       ; +0x2, 0x1403cbd72\nmov     rbx, rcx                                                       ; +0x6, 0x1403cbd76\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x9, 0x1403cbd79\ntest    rcx, rcx                                                       ; +0x10, 0x1403cbd80\njnz     short loc_1403CBDB4                                            ; +0x13, 0x1403cbd83\nmov     ecx, 668h; Size                                                ; +0x15, 0x1403cbd85\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x1403cbd8a\nmov     [rsp+28h+arg_0], rax                                           ; +0x1f, 0x1403cbd8f\nmov     rcx, rax                                                       ; +0x24, 0x1403cbd94\ncall    sub_14017AB00                                                  ; +0x27, 0x1403cbd97\nnop                                                                    ; +0x2c, 0x1403cbd9c\nmov     cs:qword_1406C2ED8, rax                                        ; +0x2d, 0x1403cbd9d\nmov     rdx, [rax]                                                     ; +0x34, 0x1403cbda4\nmov     rcx, rax                                                       ; +0x37, 0x1403cbda7\ncall    qword ptr [rdx+48h]                                            ; +0x3a, 0x1403cbdaa\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x3d, 0x1403cbdad\nlea     rdx, a0024; \"0024\"                                             ; +0x44, 0x1403cbdb4\ncall    GameManager__getGameVariable                                   ; +0x4b, 0x1403cbdbb\ntest    al, al                                                         ; +0x50, 0x1403cbdc0\njnz     short loc_1403CBDD5                                            ; +0x52, 0x1403cbdc2\ncall    cs:?sharedOpenGLView@CCEGLView@cocos2d@@SAPEAV12@XZ; cocos2d::CCEGLView::sharedOpenGLView(void) ; +0x54, 0x1403cbdc4\nmov     rcx, rax                                                       ; +0x5a, 0x1403cbdca\nxor     edx, edx                                                       ; +0x5d, 0x1403cbdcd\ncall    cs:?showCursor@CCEGLView@cocos2d@@QEAAX_N@Z; cocos2d::CCEGLView::showCursor(bool) ; +0x5f, 0x1403cbdcf\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x65, 0x1403cbdd5\ntest    rcx, rcx                                                       ; +0x6c, 0x1403cbddc\njnz     short loc_1403CBE10                                            ; +0x6f, 0x1403cbddf\nmov     ecx, 668h; Size                                                ; +0x71, 0x1403cbde1\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x76, 0x1403cbde6\nmov     [rsp+28h+arg_0], rax                                           ; +0x7b, 0x1403cbdeb\nmov     rcx, rax                                                       ; +0x80, 0x1403cbdf0\ncall    sub_14017AB00                                                  ; +0x83, 0x1403cbdf3\nnop                                                                    ; +0x88, 0x1403cbdf8\nmov     cs:qword_1406C2ED8, rax                                        ; +0x89, 0x1403cbdf9\nmov     rdx, [rax]                                                     ; +0x90, 0x1403cbe00\nmov     rcx, rax                                                       ; +0x93, 0x1403cbe03\ncall    qword ptr [rdx+48h]                                            ; +0x96, 0x1403cbe06\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x99, 0x1403cbe09\nmov     rcx, [rcx+208h]                                                ; +0xa0, 0x1403cbe10\nmov     rax, [rcx]                                                     ; +0xa7, 0x1403cbe17\ncall    qword ptr [rax+580h]                                           ; +0xaa, 0x1403cbe1a\nmov     rax, [rbx]                                                     ; +0xb0, 0x1403cbe20\nmov     rcx, rbx                                                       ; +0xb3, 0x1403cbe23\nadd     rsp, 20h                                                       ; +0xb6, 0x1403cbe26\npop     rbx                                                            ; +0xba, 0x1403cbe2a\njmp     qword ptr [rax+200h]                                           ; +0xbb, 0x1403cbe2b", "xrefs": ["RetryLevelLayer::keyDown @ 0x1403cbe74", "RetryLevelLayer::customSetup @ 0x1403cb4ea", "<???> @ 0x1406d7b5c"], "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"}