//
// EndLevelLayer::onHideLayer from 0x8f96fc to 0x8f97b4 (184 bytes)
//
// 3 xrefs:
// > ??> @ 0xbf4e8
// > EndLevelLayer::customSetup @ 0x8fc6c4
// > ??> @ 0x1545930
//
// 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 12:57:02 +0000
//
__int64 __fastcall EndLevelLayer::onHideLayer(EndLevelLayer *this, cocos2d::CCObject *a2)
{
char v3; // w2
cocos2d::CCNode *v4; // x0
cocos2d::CCMoveTo *v5; // x0
cocos2d::CCEaseInOut *v6; // x0
cocos2d::CCActionInterval *v7; // x1
cocos2d::CCAction *v8; // x20
unsigned __int8 v9; // w1
cocos2d::CCFadeTo *v10; // x0
cocos2d::CCAction *v11; // x20
v3 = *((_BYTE *)this + 681);
v4 = *((cocos2d::CCNode **)this + 72);
*((_BYTE *)this + 681) = v3 ^ 1;
cocos2d::CCNode::stopActionByTag(v4, 12341);
cocos2d::CCNode::stopActionByTag(this, 12341);
v5 = (EndLevelLayer *)((char *)this + 552);
if ( !*((_BYTE *)this + 681) )
v5 = (EndLevelLayer *)((char *)this + 544);
v6 = (cocos2d::CCEaseInOut *)cocos2d::CCMoveTo::create(v5, 1.0, (EndLevelLayer *)((char *)this + 544));
v8 = (cocos2d::CCAction *)cocos2d::CCEaseInOut::create(v6, v7, 2.0);
(*(void (__fastcall **)(cocos2d::CCAction *, __int64))(*(_QWORD *)v8 + 72LL))(v8, 12341);
cocos2d::CCNode::runAction(*((cocos2d::CCNode **)this + 72), v8);
if ( *((_BYTE *)this + 681) )
v10 = nullptr;
else
v10 = (cocos2d::CCFadeTo *)(&qword_60 + 4);
v11 = (cocos2d::CCAction *)cocos2d::CCFadeTo::create(v10, 1.0, v9);
(*(void (__fastcall **)(cocos2d::CCAction *, __int64))(*(_QWORD *)v11 + 72LL))(v11, 12341);
return cocos2d::CCNode::runAction(this, v11);
}