//
// LevelListLayer::onShare from 0x59346c to 0x593508 (156 bytes)
//
// 0 xrefs:
//
// 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 LevelListLayer::onShare(LevelListLayer *a1, cocos2d::CCObject *a2)
{
CCTextInputNode *m_titleInput; // r0
GJAccountManager *v4; // r0
FLAlertLayer *v5; // r6
ShareListLayer *v6; // r0
_BYTE v7[4]; // [sp+10h] [bp-8h] BYREF
if ( !a1->m_exiting )
{
m_titleInput = a1->m_titleInput;
if ( m_titleInput )
((void (__fastcall *)(CCTextInputNode *))m_titleInput->onClickTrackNode)(m_titleInput);
v4 = GJAccountManager::sharedState();
if ( v4->m_accountID - v4->m_unkInt1 > 0 )
{
v6 = ShareListLayer::create(a1->m_levelList);
v6->show(v6);
}
else
{
sub_776584(
(int)v7,
"You need an account to share lists. You can create one for free from settings in the main menu.");
v5 = FLAlertLayer::create(0, (int)"Account Needed", (int)v7, (int)"Close", 0, 300.0);
sub_774008(v7);
v5->show(v5);
}
}
}