//
// EndLevelLayer::onHideLayer from 0x1004bb2d0 to 0x1004bb38c (188 bytes)
//
// 1 xrefs:
// > EndLevelLayer::customSetup @ 0x1004ba29e
//
// 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 12:31:03 +0000
//
__int64 __fastcall EndLevelLayer::onHideLayer(__int64 a1)
{
_OWORD *v2; // rax
__int64 v3; // r14
char v4; // di
_OWORD *v5; // r14
*(_BYTE *)(a1 + 681) ^= 1u;
cocos2d::CCNode::stopActionByTag(*(_QWORD *)(a1 + 576), 12341);
cocos2d::CCNode::stopActionByTag(a1, 12341);
v2 = cocos2d::CCMoveTo::create((_QWORD *)(a1 + 8LL * *(unsigned __int8 *)(a1 + 681) + 544), (__m128)0x3F800000u);
v3 = cocos2d::CCEaseInOut::create(v2, 2.0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 72LL))(v3, 12341);
cocos2d::CCNode::runAction(*(_QWORD *)(a1 + 576), v3);
v4 = 100;
if ( *(_BYTE *)(a1 + 681) )
v4 = 0;
v5 = cocos2d::CCFadeTo::create(v4, (__m128)0x3F800000u);
(*(void (__fastcall **)(_OWORD *, __int64))(*(_QWORD *)v5 + 72LL))(v5, 12341);
return cocos2d::CCNode::runAction(a1, (__int64)v5);
}