//
// FollowRewardPage::show from 0x100425e38 to 0x100425fb0 (376 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008262c0
//
// 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 FollowRewardPage::show(FollowRewardPage *a1)
{
unsigned __int8 v2; // w20
__int64 *v3; // x0
cocos2d::CCLayer *m_mainLayer; // x21
__n128 v5; // q1
__n128 v6; // q0
cocos2d::CCMoveTo *v7; // x0
cocos2d::CCEaseElasticOut *v8; // x0
cocos2d::CCDirector *v9; // x0
cocos2d::CCScene *m_scene; // x21
cocos2d::CCFadeTo *v11; // x0
int v12; // w2
int v13; // [xsp+0h] [xbp-30h] BYREF
cocos2d::CCPoint v14; // [xsp+8h] [xbp-28h] BYREF
if ( a1->m_noElasticity )
{
FLAlertLayer::show(a1);
return;
}
v2 = ((__int64 (__fastcall *)(FollowRewardPage *))a1->getOpacity)(a1);
v3 = (__int64 *)((__int64 (__fastcall *)(cocos2d::CCLayer *))a1->m_mainLayer->getPosition)(a1->m_mainLayer);
sub_1000229B8((__int64 *)&v14, v3);
m_mainLayer = a1->m_mainLayer;
v5.n128_u32[0] = LODWORD(v14.y);
v6.n128_u32[0] = -1021313024;
sub_100022980(v6, v5, &v13);
((void (__fastcall *)(cocos2d::CCLayer *, int *))m_mainLayer->setPosition)(m_mainLayer, &v13);
v7 = cocos2d::CCMoveTo::create(0.5, &v14);
v8 = cocos2d::CCEaseElasticOut::create(v7, 0.6);
cocos2d::CCNode::runAction(a1->m_mainLayer, v8);
v9 = cocos2d::CCDirector::sharedDirector();
m_scene = (cocos2d::CCScene *)a1->m_scene;
if ( !m_scene )
{
m_scene = v9->m_pRunningScene;
if ( cocos2d::CCScene::getHighestChildZ(m_scene) < 105 )
v12 = 105;
else
v12 = cocos2d::CCScene::getHighestChildZ(m_scene) + 1;
a1->m_ZOrder = v12;
if ( v12 )
goto LABEL_6;
goto LABEL_5;
}
if ( !a1->m_ZOrder )
LABEL_5:
a1->m_ZOrder = 105;
LABEL_6:
((void (__fastcall *)(cocos2d::CCScene *, FollowRewardPage *))m_scene->addChild_0)(m_scene, a1);
((void (__fastcall *)(FollowRewardPage *, _QWORD))a1->setOpacity)(a1, 0);
v11 = cocos2d::CCFadeTo::create(0.14, v2);
cocos2d::CCNode::runAction(a1, v11);
((void (__fastcall *)(FollowRewardPage *, __int64))a1->setVisible)(a1, 1);
}