//
// CommunityCreditsPage::show from 0x100320db0 to 0x100320f2b (379 bytes)
//
// 1 xrefs:
// > ??> @ 0x100912788
//
// 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 CommunityCreditsPage::show(CommunityCreditsPage *a1)
{
unsigned __int8 v1; // r14
double *v2; // rax
cocos2d::CCLayer *m_mainLayer; // r12
cocos2d::CCMoveTo *v4; // rax
cocos2d::CCEaseElasticOut *v5; // rax
cocos2d::CCDirector *v6; // rax
cocos2d::CCScene *m_scene; // r15
cocos2d::CCFadeTo *v8; // rax
int HighestChildZ; // eax
int v10; // edx
float v11; // [rsp+8h] [rbp-38h] BYREF
cocos2d::CCPoint v12[6]; // [rsp+10h] [rbp-30h] BYREF
if ( a1->m_noElasticity )
{
FLAlertLayer::show(a1);
return;
}
v1 = ((__int64 (__fastcall *)(CommunityCreditsPage *))a1->getOpacity)(a1);
v2 = (double *)((__int64 (__fastcall *)(cocos2d::CCLayer *))a1->m_mainLayer->getPosition)(a1->m_mainLayer);
sub_10028CC60(v12, v2);
m_mainLayer = a1->m_mainLayer;
sub_10028CBE0(&v11, v12[0].x, 160.0);
((void (__fastcall *)(cocos2d::CCLayer *, float *))m_mainLayer->setPosition)(m_mainLayer, &v11);
v4 = cocos2d::CCMoveTo::create(0.5, v12);
v5 = cocos2d::CCEaseElasticOut::create(v4, 0.60000002);
cocos2d::CCNode::runAction(a1->m_mainLayer, v5);
v6 = cocos2d::CCDirector::sharedDirector();
m_scene = (cocos2d::CCScene *)a1->m_scene;
if ( !m_scene )
{
m_scene = v6->m_pRunningScene;
HighestChildZ = cocos2d::CCScene::getHighestChildZ(m_scene);
v10 = 105;
if ( HighestChildZ >= 105 )
v10 = cocos2d::CCScene::getHighestChildZ(m_scene) + 1;
a1->m_ZOrder = v10;
if ( v10 )
goto LABEL_6;
goto LABEL_5;
}
if ( !a1->m_ZOrder )
LABEL_5:
a1->m_ZOrder = 105;
LABEL_6:
((void (__fastcall *)(cocos2d::CCScene *, CommunityCreditsPage *))m_scene->addChild_0)(m_scene, a1);
((void (__fastcall *)(CommunityCreditsPage *, _QWORD))a1->setOpacity)(a1, 0);
v8 = cocos2d::CCFadeTo::create(0.14, v1);
cocos2d::CCNode::runAction(a1, v8);
((void (__fastcall *)(CommunityCreditsPage *, __int64))a1->setVisible)(a1, 1);
}