//
// SecretLayer2::showSecretLevel from 0x10030c3c0 to 0x10030c4d0 (272 bytes)
//
// 1 xrefs:
// > SecretLayer2::onSubmit @ 0x10030b374
//
// 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 SecretLayer2::showSecretLevel(SecretLayer2 *a1)
{
GameManager *v2; // x0
unsigned int v3; // w20
__int64 v4; // x0
cocos2d::CCScaleTo *v5; // x0
cocos2d::CCEaseBounceOut *v6; // x20
cocos2d::CCFadeIn *v7; // x21
cocos2d::CCNode *v8; // x19
v2 = GameManager::sharedState();
GameManager::setUGV(v2, "1", 1);
((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))a1->m_secretLevelButton->setVisible)(
a1->m_secretLevelButton,
1);
((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))a1->m_secretLevelButton->setEnabled)(
a1->m_secretLevelButton,
1);
if ( (unsigned int)sub_10024A36C((__int64)a1->m_secretLevelLabels) )
{
v3 = 0;
do
{
v4 = sub_10024A388((__int64)a1->m_secretLevelLabels, v3);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 328LL))(v4, 1);
++v3;
}
while ( v3 < (unsigned int)sub_10024A36C((__int64)a1->m_secretLevelLabels) );
}
v5 = cocos2d::CCScaleTo::create_1(0.5, 0.5);
v6 = cocos2d::CCEaseBounceOut::create(v5);
v7 = cocos2d::CCFadeIn::create(0.15);
v8 = (cocos2d::CCNode *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_secretLevelButton->getNormalImage)(a1->m_secretLevelButton);
((void (__fastcall *)(cocos2d::CCNode *, float))v8->setScale)(v8, 1.0);
((void (__fastcall *)(cocos2d::CCNode *, _QWORD))v8->__vftable[1].~CCNode_0)(v8, 0);
cocos2d::CCNode::runAction(v8, v6);
cocos2d::CCNode::runAction(v8, v7);
}