//
// ShareListLayer::onShare from 0x10034eaa0 to 0x10034eb7c (220 bytes)
//
// 1 xrefs:
// > ShareListLayer::init @ 0x10034dfd2
//
// This function is hookable on this platform (idp: pc, 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 12:28:48 +0000
//
__int64 __fastcall ShareListLayer::onShare(_QWORD *a1)
{
__int64 v1; // rax
__int64 v3; // rbx
_QWORD v4[2]; // [rsp+0h] [rbp-20h] BYREF
void *__p; // [rsp+10h] [rbp-10h]
if ( (unsigned int)GJLevelList::totalLevels(a1[83]) )
{
v1 = sub_10034EE60(a1[83]);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v1 + 1312LL))(v1);
(*(void (__fastcall **)(_QWORD *, _QWORD))(*a1 + 1072LL))(a1, 0);
return (*(__int64 (__fastcall **)(_QWORD *, __int64))(*a1 + 528LL))(a1, 1);
}
else
{
__p = operator new(0x20u);
v4[0] = 33;
v4[1] = 30;
strcpy((char *)__p, "You can't share an empty list.");
v3 = FLAlertLayer::create_1(0, "Empty", v4, "OK", 0, 380.0);
if ( (v4[0] & 1) != 0 )
operator delete(__p);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 1312LL))(v3);
}
}