//
// SecretLayer2::showSecretLevel from 0x1403e37a0 to 0x1403e3903 (355 bytes)
//
// 2 xrefs:
// > SecretLayer2::onSubmit @ 0x1403e6ab4
// > ??> @ 0x1406d7f34
//
// 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)
{
float v1; // xmm3_4
GameManager *v3; // rcx
_BOOL8 v4; // rdx
_BOOL8 v5; // rdx
unsigned int i; // ebx
struct cocos2d::CCObject *v7; // rax
__int64 v8; // rdx
struct cocos2d::CCScaleTo *v9; // rax
struct cocos2d::CCEaseBounceOut *v10; // rsi
struct cocos2d::CCFadeIn *v11; // rdi
CCLightFlash *v12; // rbx
cocos2d::ccColor3B *v13; // r8
cocos2d::ccColor3B *v14; // r8
float v15; // [rsp+20h] [rbp-8h]
void *v16; // [rsp+30h] [rbp+8h]
float v17; // [rsp+50h] [rbp+28h]
v3 = (GameManager *)qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v16 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v16);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v3 = (GameManager *)qword_1406C2ED8;
}
GameManager::setUGV(v3, (const char *)&word_140531EA4, 1);
LOBYTE(v4) = 1;
a1->m_secretLevelButton->setVisible(a1->m_secretLevelButton, v4);
LOBYTE(v5) = 1;
a1->m_secretLevelButton->setEnabled(a1->m_secretLevelButton, v5);
for ( i = 0; i < cocos2d::CCArray::count(a1->m_secretLevelLabels); ++i )
{
v7 = cocos2d::CCArray::objectAtIndex(a1->m_secretLevelLabels, i);
LOBYTE(v8) = 1;
((void (__fastcall *)(struct cocos2d::CCObject *, __int64))v7->__vftable[4].update)(v7, v8);
}
v9 = cocos2d::CCScaleTo::create(0.5, 0.5);
v10 = cocos2d::CCEaseBounceOut::create(v9);
v11 = cocos2d::CCFadeIn::create(0.15000001);
v12 = (CCLightFlash *)a1->m_secretLevelButton->getNormalImage(a1->m_secretLevelButton);
((void (__fastcall *)(CCLightFlash *))v12->setScale_0)(v12);
(*(void (__fastcall **)(cocos2d::CCArray **, _QWORD))&v12->m_lightStripArray->m_unknown2)(&v12->m_lightStripArray, 0);
cocos2d::CCNode::runAction(v12, (cocos2d::CCPoint)v10, v13, v1, v15);
cocos2d::CCNode::runAction(v12, (cocos2d::CCPoint)v11, v14, v1, v17);
}