//
// SecretLayer2::showSecretLevel from 0x140579360 to 0x1405794cc (364 bytes)
//
// 2 xrefs:
// > SecretLayer2::onSubmit @ 0x14057c3e7
// > ??> @ 0x14092c840
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:34:23 +0000
//
struct cocos2d::CCAction *__fastcall SecretLayer2::showSecretLevel(__int64 a1)
{
__int64 v2; // rcx
__int64 v3; // rdx
__int64 v4; // rdx
unsigned int i; // ebx
struct cocos2d::CCObject *v6; // rax
__int64 v7; // rdx
struct cocos2d::CCActionInterval *v8; // rax
struct cocos2d::CCAction *v9; // rsi
struct cocos2d::CCAction *v10; // rdi
cocos2d::CCNode *v11; // rbx
void *v13; // [rsp+30h] [rbp+8h]
v2 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v13 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v13);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v2 = qword_14090BFD0;
}
GameManager::setUGV(v2, &word_14070D060, 1u);
LOBYTE(v3) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 496) + 336LL))(*(_QWORD *)(a1 + 496), v3);
LOBYTE(v4) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 496) + 936LL))(*(_QWORD *)(a1 + 496), v4);
for ( i = 0; i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 504)); ++i )
{
v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 504), i);
LOBYTE(v7) = 1;
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v6 + 336LL))(v6, v7);
}
v8 = cocos2d::CCScaleTo::create(0.5, 0.5);
v9 = cocos2d::CCEaseBounceOut::create(v8);
v10 = cocos2d::CCFadeIn::create(0.15000001);
v11 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 496) + 952LL))(*(_QWORD *)(a1 + 496));
(*(void (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v11 + 160LL))(v11);
(*(void (__fastcall **)(__int64, _QWORD))(*((_QWORD *)v11 + 40) + 40LL))((__int64)v11 + 320, 0);
cocos2d::CCNode::runAction(v11, v9);
return cocos2d::CCNode::runAction(v11, v10);
}