//
// LevelListLayer::shareCommentClosed from 0x100246dac to 0x100246e34 (136 bytes)
//
// 2 xrefs:
// > sub_100246E68 @ 0x100246e6c
// > ??> @ 0x1007cb2f8
//
// 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::shareCommentClosed(__int64 a1, __int64 a2)
{
__int64 v2; // x19
void *__p[2]; // [xsp+0h] [xbp-40h] BYREF
__int64 v4; // [xsp+10h] [xbp-30h]
std::string __str; // [xsp+18h] [xbp-28h] BYREF
v2 = *(_QWORD *)(a1 + 864);
if ( *(char *)(a2 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)a2, *(_QWORD *)(a2 + 8));
}
else
{
*(_OWORD *)__p = *(_OWORD *)a2;
v4 = *(_QWORD *)(a2 + 16);
}
LevelTools::base64EncodeString((__n128 *)__p, (__n128 *)&__str);
std::string::operator=((std::string *)(v2 + 496), &__str);
if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__str.__r_.__value_.__l.__data_);
if ( SHIBYTE(v4) < 0 )
operator delete(__p[0]);
}