//
// TopArtistsLayer::show from 0xaac614 to 0xaac7a8 (404 bytes)
//
// 2 xrefs:
// > ??> @ 0x56188
// > ??> @ 0x14a4c70
//
// 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 13:00:54 +0000
//
__int64 __fastcall TopArtistsLayer::show(GameToolbox **this)
{
unsigned int v2; // w23
const cocos2d::CCPoint *v3; // x0
__int64 v4; // x24
void (__fastcall *v5)(__int64, _BYTE *); // x22
const cocos2d::CCPoint *v6; // x1
cocos2d::CCEaseElasticOut *v7; // x0
cocos2d::CCActionInterval *v8; // x1
cocos2d::CCAction *v9; // x0
cocos2d::CCDirector *v10; // x0
__int64 v11; // x0
cocos2d::CCScene *v12; // x21
cocos2d::CCScene *v13; // x1
unsigned __int8 v14; // w1
cocos2d::CCAction *v15; // x0
int HighestChildZ; // w0
int v18; // w2
_BYTE v19[4]; // [xsp+58h] [xbp+58h] BYREF
float v20; // [xsp+5Ch] [xbp+5Ch]
_BYTE v21[8]; // [xsp+60h] [xbp+60h] BYREF
if ( *((_BYTE *)this + 596) )
{
FLAlertLayer::show(this);
return _stack_chk_guard;
}
v2 = (*((__int64 (__fastcall **)(GameToolbox **))*this + 144))(this);
v3 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 73) + 192LL))(*(this + 73));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, v3);
v4 = (__int64)*(this + 73);
v5 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v4 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, -160.0, v20);
v5(v4, v21);
v7 = (cocos2d::CCEaseElasticOut *)cocos2d::CCMoveTo::create((cocos2d::CCMoveTo *)v19, 0.5, v6);
v9 = (cocos2d::CCAction *)cocos2d::CCEaseElasticOut::create(v7, v8, 0.6);
v10 = (cocos2d::CCDirector *)cocos2d::CCNode::runAction(*(this + 73), v9);
v11 = cocos2d::CCDirector::sharedDirector(v10);
v12 = *(cocos2d::CCScene **)(v11 + 272);
v13 = *(this + 71);
if ( !v13 )
{
HighestChildZ = cocos2d::CCScene::getHighestChildZ(*(cocos2d::CCScene **)(v11 + 272));
v18 = 105;
if ( HighestChildZ > 104 )
v18 = cocos2d::CCScene::getHighestChildZ(v12) + 1;
*((_DWORD *)this + 148) = v18;
v13 = v12;
if ( v18 )
goto LABEL_4;
goto LABEL_6;
}
if ( !*((_DWORD *)this + 148) )
LABEL_6:
*((_DWORD *)this + 148) = 105;
LABEL_4:
(*(void (__fastcall **)(cocos2d::CCScene *, GameToolbox **))(*(_QWORD *)v13 + 464LL))(v13, this);
(*((void (__fastcall **)(GameToolbox **, _QWORD))*this + 146))(this, 0);
v15 = (cocos2d::CCAction *)cocos2d::CCFadeTo::create((cocos2d::CCFadeTo *)v2, 0.14, v14);
cocos2d::CCNode::runAction((cocos2d::CCNode *)this, v15);
(*((void (__fastcall **)(GameToolbox **, __int64))*this + 43))(this, 1);
return _stack_chk_guard;
}