//
// LevelListLayer::onShare from 0x1002450d0 to 0x1002451a4 (212 bytes)
//
// 1 xrefs:
// > LevelListLayer::init @ 0x100244274
//
// 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 LevelListLayer::onShare(LevelListLayer *a1, cocos2d::CCObject *a2)
{
CCTextInputNode *m_titleInput; // x0
GJAccountManager *v4; // x0
ShareListLayer *v5; // x0
__int64 v6; // x19
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v8; // [xsp+1Fh] [xbp-11h]
if ( !a1->m_exiting )
{
m_titleInput = a1->m_titleInput;
if ( m_titleInput )
((void (__fastcall *)(CCTextInputNode *, _QWORD))m_titleInput->onClickTrackNode)(m_titleInput, 0);
v4 = GJAccountManager::sharedState();
if ( v4->m_accountID <= v4->m_unkInt1 )
{
sub_100009900(
__p,
"You need an account to share lists. You can create one for free from settings in the main menu.");
v6 = FLAlertLayer::create_1(0, "Account Needed", __p, "Close", 0, 300.0);
if ( v8 < 0 )
operator delete(__p[0]);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1288LL))(v6);
}
else
{
v5 = ShareListLayer::create(a1->m_levelList);
((void (__fastcall *)(ShareListLayer *))v5->show)(v5);
}
}
}