//
// ShareListLayer::onShare from 0xbac920 to 0xbaca20 (256 bytes)
//
// 3 xrefs:
// > ??> @ 0x1053e8
// > ShareListLayer::init @ 0xbad428
// > ??> @ 0x1547fb0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:02:52 +0000
//
__int64 __fastcall ShareListLayer::onShare(UploadListPopup **this, cocos2d::CCObject *a2)
{
GJLevelList *v3; // x1
__int64 v4; // x20
__int64 v6; // x0
__int64 v7[2]; // [xsp+20h] [xbp+20h] BYREF
void *v8; // [xsp+30h] [xbp+30h]
if ( (unsigned int)GJLevelList::totalLevels(*(this + 83)) )
{
v6 = UploadListPopup::create(*(this + 83), v3);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6);
ShareListLayer::onClose((ShareListLayer *)this, nullptr);
}
else
{
v7[0] = 0;
v7[1] = 0;
v8 = nullptr;
std::string::__init(v7, "You can't share an empty list.", 0x1Eu);
v4 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Empty", (char *)v7, (ButtonSprite *)"OK", nullptr, 380.0);
if ( (v7[0] & 1) != 0 )
operator delete(v8);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 1312LL))(v4);
}
return _stack_chk_guard;
}