//
// LevelListLayer::onShare from 0x10035df80 to 0x10035e098 (280 bytes)
//
// 1 xrefs:
// > LevelListLayer::init @ 0x10035cf23
//
// 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; // rdi
GJAccountManager *v4; // rax
ShareListLayer *v5; // rax
__int64 v6; // rbx
_QWORD v7[2]; // [rsp+0h] [rbp-20h] BYREF
void *__p; // [rsp+10h] [rbp-10h]
if ( !a1->m_exiting )
{
m_titleInput = a1->m_titleInput;
if ( m_titleInput )
{
a2 = nullptr;
((void (__fastcall *)(CCTextInputNode *, _QWORD))m_titleInput->onClickTrackNode)(m_titleInput, 0);
}
v4 = GJAccountManager::sharedState();
if ( v4->m_accountID <= v4->m_unkInt1 )
{
__p = operator new(0x70u);
v7[0] = 113;
v7[1] = 111;
strcpy(
(char *)__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", v7, "Close", 0, 300.0);
if ( (v7[0] & 1) != 0 )
operator delete(__p);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1288LL))(v6);
}
else
{
v5 = ShareListLayer::create(a1->m_levelList);
((void (__fastcall *)(ShareListLayer *, cocos2d::CCObject *))v5->show)(v5, a2);
}
}
}