//
// ShardsPage::show from 0x100449ec0 to 0x10044a038 (376 bytes)
//
// 1 xrefs:
// > ??> @ 0x100965460
//
// 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 11:05:17 +0000
//
__int64 __fastcall ShardsPage::show(__int64 a1)
{
char v3; // w20
double *v4; // x0
__int64 v5; // x21
_OWORD *v6; // x0
_OWORD *v7; // x0
__int64 v8; // x0
__int64 v9; // x21
float *v10; // x0
int v11; // w2
float v12; // [xsp+0h] [xbp-30h] BYREF
__int64 v13; // [xsp+8h] [xbp-28h] BYREF
if ( *(_BYTE *)(a1 + 596) == 1 )
return FLAlertLayer::show((_QWORD *)a1);
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1152LL))(a1);
v4 = (double *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 584) + 192LL))(*(_QWORD *)(a1 + 584));
sub_1000262F4(&v13, v4);
v5 = *(_QWORD *)(a1 + 584);
sub_1000262BC(&v12, -160.0, *((float *)&v13 + 1));
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v5 + 184LL))(v5, &v12);
v6 = cocos2d::CCMoveTo::create((double *)&v13, 0.5);
v7 = cocos2d::CCEaseElasticOut::create((__int64)v6, 0.6);
cocos2d::CCNode::runAction(*(_QWORD *)(a1 + 584), (__int64)v7);
v8 = cocos2d::CCDirector::sharedDirector();
v9 = *(_QWORD *)(a1 + 568);
if ( !v9 )
{
v9 = *(_QWORD *)(v8 + 272);
if ( (int)cocos2d::CCScene::getHighestChildZ(v9) < 105 )
v11 = 105;
else
v11 = cocos2d::CCScene::getHighestChildZ(v9) + 1;
*(_DWORD *)(a1 + 592) = v11;
if ( v11 )
goto LABEL_6;
goto LABEL_5;
}
if ( !*(_DWORD *)(a1 + 592) )
LABEL_5:
*(_DWORD *)(a1 + 592) = 105;
LABEL_6:
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 464LL))(v9, a1);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1168LL))(a1, 0);
v10 = cocos2d::CCFadeTo::create(v3, 0.14);
cocos2d::CCNode::runAction(a1, (__int64)v10);
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 344LL))(a1, 1);
}