//
// SecretLayer2::showSecretLevel from 0x93f80c to 0x93f91c (272 bytes)
//
// 2 xrefs:
// > SecretLayer2::onSubmit @ 0x9442fc
// > ??> @ 0xbf118
//
// 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 SecretLayer2::showSecretLevel(SecretLayer2 *a1)
{
GameManager *v2; // x0
unsigned int v3; // w19
__int64 v4; // x0
cocos2d::CCScaleTo *v5; // x0
bool v6; // cf
unsigned int v7; // w1
cocos2d::CCActionInterval *v8; // x0
cocos2d::CCEaseBounceOut *v9; // x22
cocos2d::CCFadeIn *v10; // x21
cocos2d::CCNode *v11; // x19
v2 = GameManager::sharedState();
v3 = 0;
GameManager::setUGV(v2, "1", 1);
a1->m_secretLevelButton->setVisible(a1->m_secretLevelButton, 1);
a1->m_secretLevelButton->setEnabled(a1->m_secretLevelButton, 1);
while ( 1 )
{
v5 = (cocos2d::CCScaleTo *)cocos2d::CCArray::count(a1->m_secretLevelLabels);
v6 = v3 >= (unsigned int)v5;
v7 = v3++;
if ( v6 )
break;
v4 = cocos2d::CCArray::objectAtIndex(a1->m_secretLevelLabels, v7);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 328LL))(v4, 1);
}
v8 = (cocos2d::CCActionInterval *)cocos2d::CCScaleTo::create(v5, 0.5, 0.5);
v9 = cocos2d::CCEaseBounceOut::create(v8);
v10 = cocos2d::CCFadeIn::create(0.15);
v11 = a1->m_secretLevelButton->getNormalImage(a1->m_secretLevelButton);
v11->setScale(v11, 1.0);
((void (__fastcall *)(cocos2d::CCNode *, _QWORD))v11->__vftable[1].~CCNode_0)(v11, 0);
cocos2d::CCNode::runAction(v11, v9);
cocos2d::CCNode::runAction(v11, v10);
}