//
// EndLevelLayer::onHideLayer from 0x140206710 to 0x1402067f2 (226 bytes)
//
// 2 xrefs:
// > EndLevelLayer::customSetup @ 0x1402051cf
// > ??> @ 0x14091b1a0
//
// 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:28:15 +0000
//
struct cocos2d::CCAction *__fastcall EndLevelLayer::onHideLayer(__int64 a1)
{
__int64 v2; // rdx
struct cocos2d::CCActionInterval *v3; // rax
struct cocos2d::CCAction *v4; // rbx
unsigned __int8 v5; // dl
struct cocos2d::CCAction *v6; // rbx
*(_BYTE *)(a1 + 681) = *(_BYTE *)(a1 + 681) == 0;
cocos2d::CCNode::stopActionByTag(*(cocos2d::CCNode **)(a1 + 576), 12341);
cocos2d::CCNode::stopActionByTag((cocos2d::CCNode *)a1, 12341);
v2 = 552;
if ( !*(_BYTE *)(a1 + 681) )
v2 = 544;
v3 = cocos2d::CCMoveTo::create(1.0, (const struct cocos2d::CCPoint *)(a1 + v2));
v4 = cocos2d::CCEaseInOut::create(v3, 2.0);
(*(void (__fastcall **)(struct cocos2d::CCAction *, __int64))(*(_QWORD *)v4 + 64LL))(v4, 12341);
cocos2d::CCNode::runAction(*(cocos2d::CCNode **)(a1 + 576), v4);
v5 = 100;
if ( *(_BYTE *)(a1 + 681) )
v5 = 0;
v6 = cocos2d::CCFadeTo::create(1.0, v5);
(*(void (__fastcall **)(struct cocos2d::CCAction *, __int64))(*(_QWORD *)v6 + 64LL))(v6, 12341);
return cocos2d::CCNode::runAction((cocos2d::CCNode *)a1, v6);
}