//
// RetryLevelLayer::onReplay from 0x1403cbd70 to 0x1403cbe32 (194 bytes)
//
// 3 xrefs:
// > RetryLevelLayer::keyDown @ 0x1403cbe74
// > RetryLevelLayer::customSetup @ 0x1403cb4ea
// > ??> @ 0x1406d7b5c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=2
void RetryLevelLayer::onReplay(RetryLevelLayer *a1, cocos2d::CCObject *a2)
{
GameManager *v3; // rcx
__int64 v4; // rcx
cocos2d::CCEGLView *v5; // rax
__int64 v6; // rcx
void *v7; // [rsp+30h] [rbp+8h]
void *v8; // [rsp+30h] [rbp+8h]
v3 = (GameManager *)qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v7 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v3 = (GameManager *)qword_1406C2ED8;
}
if ( !GameManager::getGameVariable(v3, "0024") )
{
v5 = (cocos2d::CCEGLView *)cocos2d::CCEGLView::sharedOpenGLView(v4);
cocos2d::CCEGLView::showCursor(v5, 0);
}
v6 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v8 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v8);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v6 = qword_1406C2ED8;
}
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(v6 + 520) + 1408LL))(*(_QWORD *)(v6 + 520));
a1->removeMeAndCleanup(a1);
}