{"type": "func", "start": 5372561664, "end": 5372562077, "name": "PlayLayer::showRetryLayer", "pseudocode": "// \n// PlayLayer::showRetryLayer from 0x1403ac900 to 0x1403aca9d (413 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::destroyPlayer @ 0x1403b41e5\n// > <???> @ 0x1406d6c68\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=1\nvoid PlayLayer::showRetryLayer(PlayLayer *a1)\n{\n  __int64 v2; // rcx\n  cocos2d::CCEGLView *v3; // rax\n  UILayer *m_uiLayer; // rcx\n  RetryLevelLayer *v5; // rbx\n  void (*showLayer)(RetryLevelLayer *, bool); // r8\n\n  *(_BYTE *)(cocos2d::CCEGLView::sharedOpenGLView(a1) + 237) = 0;\n  v3 = (cocos2d::CCEGLView *)cocos2d::CCEGLView::sharedOpenGLView(v2);\n  cocos2d::CCEGLView::showCursor(v3, 1);\n  PlayerObject::releaseAllButtons(a1->m_player1);\n  m_uiLayer = a1->m_uiLayer;\n  *(_QWORD *)&m_uiLayer->m_p1TouchId = -1;\n  *(_WORD *)&m_uiLayer->m_p1Jumping = 0;\n  m_uiLayer->m_checkpointBtnDown = 0;\n  UILayer::resetUINodeState(m_uiLayer);\n  UILayer::toggleMenuVisibility(a1->m_uiLayer, 0);\n  a1->m_hasCompletedLevel = 1;\n  v5 = (RetryLevelLayer *)operator new(0x278u);\n  GJDropDownLayer::GJDropDownLayer(v5);\n  v5->GJDropDownLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (RetryLevelLayer_vtbl *)&RetryLevelLayer::`vftable';\n  v5->GJDropDownLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&RetryLevelLayer::`vftable';\n  v5->GJDropDownLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&RetryLevelLayer::`vftable';\n  v5->GJDropDownLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&RetryLevelLayer::`vftable';\n  v5->GJDropDownLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&RetryLevelLayer::`vftable';\n  v5->GJDropDownLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&RetryLevelLayer::`vftable';\n  v5->GJDropDownLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&RetryLevelLayer::`vftable';\n  v5->GJDropDownLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&RetryLevelLayer::`vftable';\n  v5->RewardedVideoDelegate::__vftable = (RewardedVideoDelegate_vtbl *)&RetryLevelLayer::`vftable';\n  v5->m_mainMenu = nullptr;\n  *(_WORD *)&v5->m_exitingMenu = 0;\n  if ( GJDropDownLayer::init(v5, \" \", 230.0, 1) )\n  {\n    cocos2d::CCObject::autorelease(v5);\n  }\n  else\n  {\n    ((void (__fastcall *)(RetryLevelLayer *, __int64))v5->~RetryLevelLayer)(v5, 1);\n    v5 = nullptr;\n  }\n  a1->addChild_0(a1, v5, 100);\n  showLayer = (void (*)(RetryLevelLayer *, bool))v5->showLayer;\n  if ( showLayer == RetryLevelLayer::showLayer )\n    RetryLevelLayer::showLayer(v5, 0);\n  else\n    showLayer(v5, 0);\n}", "assembly": "; \n; PlayLayer::showRetryLayer from 0x1403ac900 to 0x1403aca9d (413 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::destroyPlayer @ 0x1403b41e5\n; > <???> @ 0x1406d6c68\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_8], rbx                                               ; +0x0, 0x1403ac900\npush    rdi                                                            ; +0x5, 0x1403ac905\nsub     rsp, 20h                                                       ; +0x6, 0x1403ac906\nmov     rdi, rcx                                                       ; +0xa, 0x1403ac90a\ncall    cs:?sharedOpenGLView@CCEGLView@cocos2d@@SAPEAV12@XZ; cocos2d::CCEGLView::sharedOpenGLView(void) ; +0xd, 0x1403ac90d\nmov     byte ptr [rax+0EDh], 0                                         ; +0x13, 0x1403ac913\ncall    cs:?sharedOpenGLView@CCEGLView@cocos2d@@SAPEAV12@XZ; cocos2d::CCEGLView::sharedOpenGLView(void) ; +0x1a, 0x1403ac91a\nmov     rcx, rax                                                       ; +0x20, 0x1403ac920\nmov     dl, 1                                                          ; +0x23, 0x1403ac923\ncall    cs:?showCursor@CCEGLView@cocos2d@@QEAAX_N@Z; cocos2d::CCEGLView::showCursor(bool) ; +0x25, 0x1403ac925\nmov     rcx, [rdi+0DA0h]                                               ; +0x2b, 0x1403ac92b\ncall    PlayerObject__releaseAllButtons                                ; +0x32, 0x1403ac932\nmov     rcx, [rdi+3540h]                                               ; +0x37, 0x1403ac937\nmov     qword ptr [rcx+248h], 0FFFFFFFFFFFFFFFFh                       ; +0x3e, 0x1403ac93e\nmov     word ptr [rcx+242h], 0                                         ; +0x49, 0x1403ac949\nmov     byte ptr [rcx+244h], 0                                         ; +0x52, 0x1403ac952\ncall    UILayer__resetUINodeState                                      ; +0x59, 0x1403ac959\nxor     edx, edx                                                       ; +0x5e, 0x1403ac95e\nmov     rcx, [rdi+3540h]                                               ; +0x60, 0x1403ac960\ncall    UILayer__toggleMenuVisibility                                  ; +0x67, 0x1403ac967\nmov     byte ptr [rdi+397Dh], 1                                        ; +0x6c, 0x1403ac96c\nmov     ecx, 278h; Size                                                ; +0x73, 0x1403ac973\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x78, 0x1403ac978\nmov     rbx, rax                                                       ; +0x7d, 0x1403ac97d\nmov     [rsp+28h+arg_0], rax                                           ; +0x80, 0x1403ac980\nmov     rcx, rax                                                       ; +0x85, 0x1403ac985\ncall    GJDropDownLayer__GJDropDownLayer                               ; +0x88, 0x1403ac988\nlea     rax, ??_7RetryLevelLayer@@6B@; const RetryLevelLayer::`vftable' ; +0x8d, 0x1403ac98d\nmov     [rbx], rax                                                     ; +0x94, 0x1403ac994\nlea     rax, ??_7RetryLevelLayer@@6B@_0; const RetryLevelLayer::`vftable' ; +0x97, 0x1403ac997\nmov     [rbx+140h], rax                                                ; +0x9e, 0x1403ac99e\nlea     rax, ??_7RetryLevelLayer@@6B@_1; const RetryLevelLayer::`vftable' ; +0xa5, 0x1403ac9a5\nmov     [rbx+148h], rax                                                ; +0xac, 0x1403ac9ac\nlea     rax, ??_7RetryLevelLayer@@6B@_2; const RetryLevelLayer::`vftable' ; +0xb3, 0x1403ac9b3\nmov     [rbx+150h], rax                                                ; +0xba, 0x1403ac9ba\nlea     rax, ??_7RetryLevelLayer@@6B@_3; const RetryLevelLayer::`vftable' ; +0xc1, 0x1403ac9c1\nmov     [rbx+158h], rax                                                ; +0xc8, 0x1403ac9c8\nlea     rax, ??_7RetryLevelLayer@@6B@_4; const RetryLevelLayer::`vftable' ; +0xcf, 0x1403ac9cf\nmov     [rbx+160h], rax                                                ; +0xd6, 0x1403ac9d6\nlea     rax, ??_7RetryLevelLayer@@6B@_5; const RetryLevelLayer::`vftable' ; +0xdd, 0x1403ac9dd\nmov     [rbx+198h], rax                                                ; +0xe4, 0x1403ac9e4\nlea     rax, ??_7RetryLevelLayer@@6B@_6; const RetryLevelLayer::`vftable' ; +0xeb, 0x1403ac9eb\nmov     [rbx+1B0h], rax                                                ; +0xf2, 0x1403ac9f2\nlea     rax, ??_7RetryLevelLayer@@6B@_7; const RetryLevelLayer::`vftable' ; +0xf9, 0x1403ac9f9\nmov     [rbx+260h], rax                                                ; +0x100, 0x1403aca00\nmov     qword ptr [rbx+268h], 0                                        ; +0x107, 0x1403aca07\nmov     word ptr [rbx+270h], 0                                         ; +0x112, 0x1403aca12\nmov     r9b, 1                                                         ; +0x11b, 0x1403aca1b\nmovss   xmm2, cs:dword_140623400                                       ; +0x11e, 0x1403aca1e\nlea     rdx, asc_140518984; \" \"                                        ; +0x126, 0x1403aca26\nmov     rcx, rbx                                                       ; +0x12d, 0x1403aca2d\ncall    GJDropDownLayer__init                                          ; +0x130, 0x1403aca30\nmov     rcx, rbx                                                       ; +0x135, 0x1403aca35\ntest    al, al                                                         ; +0x138, 0x1403aca38\njz      short loc_1403ACA44                                            ; +0x13a, 0x1403aca3a\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x13c, 0x1403aca3c\njmp     short loc_1403ACA51                                            ; +0x142, 0x1403aca42\nmov     rax, [rbx]                                                     ; +0x144, 0x1403aca44\nmov     edx, 1                                                         ; +0x147, 0x1403aca47\ncall    qword ptr [rax+8]                                              ; +0x14c, 0x1403aca4c\nxor     ebx, ebx                                                       ; +0x14f, 0x1403aca4f\nmov     rax, [rdi]                                                     ; +0x151, 0x1403aca51\nmov     r8d, 64h ; 'd'                                                 ; +0x154, 0x1403aca54\nmov     rdx, rbx                                                       ; +0x15a, 0x1403aca5a\nmov     rcx, rdi                                                       ; +0x15d, 0x1403aca5d\ncall    qword ptr [rax+1B8h]                                           ; +0x160, 0x1403aca60\nmov     rax, [rbx]                                                     ; +0x166, 0x1403aca66\nmov     r8, [rax+428h]                                                 ; +0x169, 0x1403aca69\nlea     rax, RetryLevelLayer__showLayer                                ; +0x170, 0x1403aca70\nxor     edx, edx                                                       ; +0x177, 0x1403aca77\nmov     rcx, rbx                                                       ; +0x179, 0x1403aca79\ncmp     r8, rax                                                        ; +0x17c, 0x1403aca7c\njnz     short loc_1403ACA90                                            ; +0x17f, 0x1403aca7f\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x181, 0x1403aca81\nadd     rsp, 20h                                                       ; +0x186, 0x1403aca86\npop     rdi                                                            ; +0x18a, 0x1403aca8a\njmp     RetryLevelLayer__showLayer                                     ; +0x18b, 0x1403aca8b\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x190, 0x1403aca90\nadd     rsp, 20h                                                       ; +0x195, 0x1403aca95\npop     rdi                                                            ; +0x199, 0x1403aca99\njmp     r8                                                             ; +0x19a, 0x1403aca9a", "xrefs": ["PlayLayer::destroyPlayer @ 0x1403b41e5", "<???> @ 0x1406d6c68"], "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"}