//
// RetryLevelLayer::onReplay from 0x140561590 to 0x140561658 (200 bytes)
//
// 3 xrefs:
// > RetryLevelLayer::keyDown @ 0x140561694
// > RetryLevelLayer::customSetup @ 0x140560e58
// > ??> @ 0x14092c45c
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:34:15 +0000
//
// Hidden C++ exception states: #wind=2
__int64 __fastcall RetryLevelLayer::onReplay(__int64 a1)
{
__int64 v2; // rcx
__int64 v3; // rdx
__int64 v4; // rcx
__int64 v5; // r8
__int64 v6; // r9
cocos2d::CCEGLView *v7; // rax
__int64 v8; // rcx
void *v10; // [rsp+30h] [rbp+8h]
void *v11; // [rsp+30h] [rbp+8h]
v2 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v10 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v2 = qword_14090BFD0;
}
if ( !GameManager::getGameVariable(v2, "0024") )
{
v7 = (cocos2d::CCEGLView *)cocos2d::CCEGLView::sharedOpenGLView(v4, v3, v5, v6);
cocos2d::CCEGLView::showCursor(v7, 0);
}
v8 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v11 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v11);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v8 = qword_14090BFD0;
}
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(v8 + 560) + 1456LL))(*(_QWORD *)(v8 + 560));
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 528LL))(a1);
}