//
// EndLevelLayer::showLayer from 0x1004bb3c0 to 0x1004bb549 (393 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b5a438
//
// 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::showLayer(__int64 *a1, char a2)
{
__int64 v3; // rax
char v4; // r15
_OWORD *v5; // rax
__int64 v6; // r14
__int64 v7; // rax
__int64 v8; // rax
_OWORD *v9; // rsi
__int64 v10; // rdi
float v12; // [rsp+0h] [rbp-1Ch]
v3 = GameManager::sharedState();
v4 = a2 | GameManager::getGameVariable(v3, "0168");
cocos2d::CCNode::stopAllActions(a1[72]);
(*(void (__fastcall **)(__int64 *))(*a1 + 1344))(a1);
if ( v4 == 1 )
{
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)a1[72] + 184LL))(a1[72], a1 + 68);
(*(void (__fastcall **)(__int64 *, __int64))(*a1 + 1168))(a1, 100);
(*(void (__fastcall **)(__int64 *))(*a1 + 1360))(a1);
v12 = 0.0;
EndLevelLayer::playStarEffect(a1, 0.0);
EndLevelLayer::playCoinEffect(a1);
}
else
{
v5 = cocos2d::CCMoveTo::create(a1 + 68, (__m128)0x3F800000u);
v6 = cocos2d::CCEaseBounceOut::create(v5);
v7 = cocos2d::CCCallFunc::create(a1, 1361, 0);
v8 = sub_10039EB60(v6, v7, 0);
cocos2d::CCNode::runAction(a1[72], v8);
(*(void (__fastcall **)(__int64 *, _QWORD))(*a1 + 1168))(a1, 0);
v9 = cocos2d::CCFadeTo::create(100, (__m128)0x3F800000u);
cocos2d::CCNode::runAction((__int64)a1, (__int64)v9);
v12 = 0.69999999;
EndLevelLayer::playCoinEffect(a1);
v10 = a1[79];
if ( v10 )
v12 = (float)((float)(int)sub_1007FEF90(v10) * 0.34999999) + 0.69999999;
EndLevelLayer::playStarEffect(a1, v12);
}
EndLevelLayer::playCurrencyEffect(a1, v12);
return EndLevelLayer::playDiamondEffect(a1, v12);
}