//
// EndLevelLayer::onHideLayer from 0x1401353e0 to 0x1401354bc (220 bytes)
//
// 2 xrefs:
// > EndLevelLayer::customSetup @ 0x1401340d2
// > ??> @ 0x1406c9ee8
//
// 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 EndLevelLayer::onHideLayer(EndLevelLayer *a1, cocos2d::CCObject *a2)
{
float v2; // xmm3_4
__int64 v4; // rdx
struct cocos2d::CCMoveTo *v5; // rax
struct cocos2d::CCEaseInOut *v6; // rbx
cocos2d::ccColor3B *v7; // r8
unsigned __int8 v8; // dl
struct cocos2d::CCFadeTo *v9; // rbx
cocos2d::ccColor3B *v10; // r8
float v11; // [rsp+20h] [rbp-8h]
float v12; // [rsp+50h] [rbp+28h]
a1->m_hidden = !a1->m_hidden;
cocos2d::CCNode::stopActionByTag(a1->m_mainLayer, 12341);
cocos2d::CCNode::stopActionByTag(a1, 12341);
v4 = 552;
if ( !a1->m_hidden )
v4 = 544;
v5 = cocos2d::CCMoveTo::create(1.0, (const struct cocos2d::CCPoint *)((char *)a1 + v4));
v6 = cocos2d::CCEaseInOut::create(v5, 2.0);
v6->setTag(v6, 12341);
cocos2d::CCNode::runAction((CCLightFlash *)a1->m_mainLayer, (cocos2d::CCPoint)v6, v7, v2, v11);
v8 = 100;
if ( a1->m_hidden )
v8 = 0;
v9 = cocos2d::CCFadeTo::create(1.0, v8);
v9->setTag(v9, 12341);
cocos2d::CCNode::runAction((CCLightFlash *)a1, (cocos2d::CCPoint)v9, v10, v2, v12);
}