//
// DailyLevelPage::show from 0x100232120 to 0x10023229b (379 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008e1f30
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall DailyLevelPage::show(DailyLevelPage *a1)
{
unsigned __int8 v1; // r14
cocos2d::CCLayer *m_mainLayer; // r12
cocos2d::CCMoveTo *v3; // rax
cocos2d::CCEaseElasticOut *v4; // rax
cocos2d::CCDirector *v5; // rax
cocos2d::CCScene *m_scene; // r15
cocos2d::CCFadeTo *v7; // rax
int HighestChildZ; // eax
int v9; // edx
_BYTE v10[8]; // [rsp+8h] [rbp-38h] BYREF
cocos2d::CCPoint v11[6]; // [rsp+10h] [rbp-30h] BYREF
if ( a1->m_noElasticity )
{
FLAlertLayer::show(a1);
return;
}
v1 = ((__int64 (__fastcall *)(DailyLevelPage *))a1->getOpacity)(a1);
((void (__fastcall *)(cocos2d::CCLayer *))a1->m_mainLayer->getPosition)(a1->m_mainLayer);
sub_10028CC60(v11);
m_mainLayer = a1->m_mainLayer;
sub_10028CBE0(v10, -160.0, v11[0].y);
((void (__fastcall *)(cocos2d::CCLayer *, _BYTE *))m_mainLayer->setPosition)(m_mainLayer, v10);
v3 = cocos2d::CCMoveTo::create(0.5, v11);
v4 = cocos2d::CCEaseElasticOut::create(v3, 0.60000002);
cocos2d::CCNode::runAction(a1->m_mainLayer, v4);
v5 = cocos2d::CCDirector::sharedDirector();
m_scene = (cocos2d::CCScene *)a1->m_scene;
if ( !m_scene )
{
m_scene = v5->m_pRunningScene;
HighestChildZ = cocos2d::CCScene::getHighestChildZ(m_scene);
v9 = 105;
if ( HighestChildZ >= 105 )
v9 = cocos2d::CCScene::getHighestChildZ(m_scene) + 1;
a1->m_ZOrder = v9;
if ( v9 )
goto LABEL_6;
goto LABEL_5;
}
if ( !a1->m_ZOrder )
LABEL_5:
a1->m_ZOrder = 105;
LABEL_6:
((void (__fastcall *)(cocos2d::CCScene *, DailyLevelPage *))m_scene->addChild_0)(m_scene, a1);
((void (__fastcall *)(DailyLevelPage *, _QWORD))a1->setOpacity)(a1, 0);
v7 = cocos2d::CCFadeTo::create(0.14, v1);
cocos2d::CCNode::runAction(a1, v7);
((void (__fastcall *)(DailyLevelPage *, __int64))a1->setVisible)(a1, 1);
}