//
// EndLevelLayer::onHideLayer from 0x100393f7c to 0x100394038 (188 bytes)
//
// 1 xrefs:
// > EndLevelLayer::customSetup @ 0x100393078
//
// This function is hookable on this platform (idp: arm, 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:03:39 +0000
//
__int64 __fastcall EndLevelLayer::onHideLayer(__int64 a1)
{
__int64 v2; // x8
_OWORD *v3; // x0
_OWORD *v4; // x20
char v5; // w0
float *v6; // x20
*(_BYTE *)(a1 + 681) ^= 1u;
cocos2d::CCNode::stopActionByTag(*(_QWORD *)(a1 + 576), 12341);
cocos2d::CCNode::stopActionByTag(a1, 12341);
v2 = 544;
if ( *(_BYTE *)(a1 + 681) )
v2 = 552;
v3 = cocos2d::CCMoveTo::create((double *)(a1 + v2), 1.0);
v4 = cocos2d::CCEaseInOut::create((__int64)v3, 2.0);
(*(void (__fastcall **)(_OWORD *, __int64))(*(_QWORD *)v4 + 72LL))(v4, 12341);
cocos2d::CCNode::runAction(*(_QWORD *)(a1 + 576), (__int64)v4);
if ( *(_BYTE *)(a1 + 681) )
v5 = 0;
else
v5 = 100;
v6 = cocos2d::CCFadeTo::create(v5, 1.0);
(*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v6 + 72LL))(v6, 12341);
return cocos2d::CCNode::runAction(a1, (__int64)v6);
}