//
// EndLevelLayer::showLayer from 0x8fa8bc to 0x8faa5c (416 bytes)
//
// 2 xrefs:
// > ??> @ 0xda5a8
// > ??> @ 0x1462be0
//
// 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:03 +0000
//
__int64 __fastcall EndLevelLayer::showLayer(cocos2d::CCNode **this, unsigned __int8 a2)
{
int v2; // w20
GameManager *v4; // x0
const cocos2d::CCPoint *v5; // x1
cocos2d::CCEaseBounceOut *v6; // x0
cocos2d::CCActionInterval *v7; // x1
cocos2d::CCSequence *v8; // x20
cocos2d::CCFiniteTimeAction *v9; // x0
cocos2d::CCAction *v10; // x0
unsigned __int8 v11; // w1
cocos2d::CCAction *v12; // x0
float v13; // s8
cocos2d::CCArray *v14; // x0
v2 = a2;
v4 = (GameManager *)GameManager::sharedState((GameManager *)this);
if ( (unsigned __int8)GameManager::getGameVariable(v4, "0168") )
{
cocos2d::CCNode::stopAllActions(*(this + 72));
(*((void (__fastcall **)(cocos2d::CCNode **))*this + 168))(this);
goto LABEL_8;
}
cocos2d::CCNode::stopAllActions(*(this + 72));
(*((void (__fastcall **)(cocos2d::CCNode **))*this + 168))(this);
if ( v2 )
{
LABEL_8:
(*(void (__fastcall **)(_QWORD, char *))(*(_QWORD *)*(this + 72) + 184LL))(*(this + 72), (char *)this + 544);
(*((void (__fastcall **)(cocos2d::CCNode **, __int64))*this + 146))(this, 100);
(*((void (__fastcall **)(cocos2d::CCNode **))*this + 170))(this);
EndLevelLayer::playStarEffect((EndLevelLayer *)this, 0.0);
EndLevelLayer::playCoinEffect((EndLevelLayer *)this, 0.0);
EndLevelLayer::playCurrencyEffect((EndLevelLayer *)this, 0.0);
return EndLevelLayer::playDiamondEffect((EndLevelLayer *)this, 0.0);
}
v6 = (cocos2d::CCEaseBounceOut *)cocos2d::CCMoveTo::create((cocos2d::CCMoveTo *)(this + 68), 1.0, v5);
v8 = (cocos2d::CCSequence *)cocos2d::CCEaseBounceOut::create(v6, v7);
v9 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, 1360, 1);
v10 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v8, v9, 0);
cocos2d::CCNode::runAction(*(this + 72), v10);
(*((void (__fastcall **)(cocos2d::CCNode **, _QWORD))*this + 146))(this, 0);
v12 = (cocos2d::CCAction *)cocos2d::CCFadeTo::create((cocos2d::CCFadeTo *)((char *)&qword_60 + 4), 1.0, v11);
cocos2d::CCNode::runAction((cocos2d::CCNode *)this, v12);
v13 = 0.7;
EndLevelLayer::playCoinEffect((EndLevelLayer *)this, 0.7);
v14 = *(this + 79);
if ( v14 )
v13 = (float)((float)(unsigned int)cocos2d::CCArray::count(v14) * 0.35) + 0.7;
EndLevelLayer::playStarEffect((EndLevelLayer *)this, v13);
EndLevelLayer::playCurrencyEffect((EndLevelLayer *)this, v13);
return EndLevelLayer::playDiamondEffect((EndLevelLayer *)this, v13);
}