//
// LevelListLayer::shareCommentClosed from 0xbadfbc to 0xbae0e0 (292 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'LevelListLayer::shareCommentClosed @ 0xbae0e4
// > ??> @ 0xf5e30
// > ??> @ 0x14dbeb8
//
// 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:53 +0000
//
__int64 __fastcall LevelListLayer::shareCommentClosed(__int64 a1, char *a2)
{
char v3; // w1
__int64 v4; // x20
__int64 v5; // x0
__int64 v6; // x1
__int64 *v7; // x0
__int64 v9; // [xsp+38h] [xbp+38h] BYREF
__int64 v10; // [xsp+40h] [xbp+40h]
void *v11; // [xsp+48h] [xbp+48h]
void *v12[2]; // [xsp+50h] [xbp+50h] BYREF
void *v13; // [xsp+60h] [xbp+60h]
v9 = 0;
v3 = *a2;
v10 = 0;
v11 = nullptr;
v4 = *(_QWORD *)(a1 + 912);
if ( (v3 & 1) != 0 )
{
std::string::__init(&v9, *((void **)a2 + 2), *((_QWORD *)a2 + 1));
}
else
{
v5 = *(_QWORD *)a2;
v6 = *((_QWORD *)a2 + 1);
v11 = *((void **)a2 + 2);
v9 = v5;
v10 = v6;
}
LevelTools::base64EncodeString((__int64)&v9, v12);
v7 = (__int64 *)(v4 + 504);
if ( (void **)(v4 + 504) != v12 )
{
if ( ((__int64)v12[0] & 1) != 0 )
std::string::assign(v7, v13, (size_t)v12[1]);
else
std::string::assign(v7, (char *)v12 + 1, LOBYTE(v12[0]) >> 1);
}
if ( ((__int64)v12[0] & 1) != 0 )
operator delete(v13);
if ( (v9 & 1) != 0 )
operator delete(v11);
return _stack_chk_guard;
}