//
// ShareListLayer::onShare from 0x593928 to 0x5939b0 (136 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 ShareListLayer::onShare(ShareListLayer *a1, cocos2d::CCObject *a2)
{
FLAlertLayer *v3; // r6
UploadListPopup *v4; // r0
_BYTE v5[4]; // [sp+10h] [bp-8h] BYREF
if ( GJLevelList::totalLevels(a1->m_list) )
{
v4 = UploadListPopup::create(a1->m_list);
v4->show(v4);
ShareListLayer::onClose(a1, nullptr);
}
else
{
sub_776584((int)v5, "You can't share an empty list.");
v3 = FLAlertLayer::create(0, (int)"Empty", (int)v5, (int)"OK", 0, 380.0);
sub_774008(v5);
v3->show(v3);
}
}