//
// ShareListLayer::onShare from 0x6d7110 to 0x6d719e (142 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:57:07 +0000
//
int __fastcall ShareListLayer::onShare(UploadListPopup **this, cocos2d::CCObject *a2)
{
GJLevelList *v3; // r1
int *v4; // r4
FLAlertLayer *v6; // r0
int v7[3]; // [sp+8h] [bp-10h] BYREF
if ( GJLevelList::totalLevels(*(this + 130)) )
{
v6 = UploadListPopup::create(*(this + 130), v3);
(*(void (__fastcall **)(FLAlertLayer *))(*(_DWORD *)v6 + 656))(v6);
return ShareListLayer::onClose((ShareListLayer *)this, nullptr);
}
else
{
memset(v7, 0, sizeof(v7));
std::string::__init(v7, "You can't share an empty list.", 0x1Eu);
v4 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Empty", (int)v7, (ButtonSprite *)"OK", nullptr, 380.0);
std::string::~string((int)v7);
return (*(int (__fastcall **)(int *))(*v4 + 656))(v4);
}
}