//
// RetryLevelLayer::showLayer from 0x1004f91a0 to 0x1004f9297 (247 bytes)
//
// 1 xrefs:
// > ??> @ 0x100958490
//
// 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
//
void __fastcall RetryLevelLayer::showLayer(RetryLevelLayer *a1, bool a2)
{
cocos2d::CCLayer *m_mainLayer; // rdi
cocos2d::CCScaleTo *v4; // rax
cocos2d::CCEaseElasticOut *v5; // r14
cocos2d::CCCallFunc *v6; // rax
cocos2d::CCSequence *v7; // rax
cocos2d::CCFadeTo *v8; // rax
cocos2d::CCNode::stopAllActions(a1->m_mainLayer);
((void (__fastcall *)(RetryLevelLayer *))a1->layerVisible)(a1);
m_mainLayer = a1->m_mainLayer;
if ( a2 )
{
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCPoint *))m_mainLayer->setPosition)(
m_mainLayer,
&a1->m_endPosition);
((void (__fastcall *)(RetryLevelLayer *, __int64))a1->setOpacity)(a1, 100);
((void (__fastcall *)(RetryLevelLayer *))a1->enterAnimFinished)(a1);
}
else
{
((void (__fastcall *)(cocos2d::CCLayer *, float))m_mainLayer->setScale)(m_mainLayer, 0.1);
v4 = cocos2d::CCScaleTo::create_1(0.5, 1.0);
v5 = cocos2d::CCEaseElasticOut::create(v4, 0.60000002);
v6 = cocos2d::CCCallFunc::create(a1, (cocos2d::SEL_CallFunc)0x541uLL);
v7 = sub_1003B5760(v5, v6, 0);
cocos2d::CCNode::runAction(a1->m_mainLayer, v7);
((void (__fastcall *)(RetryLevelLayer *, _QWORD))a1->setOpacity)(a1, 0);
v8 = cocos2d::CCFadeTo::create(0.5, 0x64u);
cocos2d::CCNode::runAction(a1, v8);
}
}