//
// LevelBrowserLayer::setTextPopupClosed from 0x7fbcc4 to 0x7fbdc8 (260 bytes)
//
// 4 xrefs:
// > `non-virtual thunk to'LevelBrowserLayer::setTextPopupClosed @ 0x7fbdcc
// > ??> @ 0x531e8
// > ??> @ 0x143e8d0
// > ??> @ 0x14dbec0
//
// 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 12:54:41 +0000
//
__int64 __fastcall LevelBrowserLayer::setTextPopupClosed(LevelBrowserLayer *this, __int64 a2, char *a3)
{
__int64 v4; // x19
char v5; // w0
__int64 v6; // x0
size_t v7; // x1
__int64 *v8; // x0
__int64 v10; // [xsp+30h] [xbp+30h] BYREF
size_t v11; // [xsp+38h] [xbp+38h]
void *v12; // [xsp+40h] [xbp+40h]
v4 = *((_QWORD *)this + 83);
if ( v4 )
{
v5 = *a3;
v10 = 0;
v11 = 0;
v12 = nullptr;
if ( (v5 & 1) != 0 )
{
std::string::__init(&v10, *((void **)a3 + 2), *((_QWORD *)a3 + 1));
}
else
{
v6 = *(_QWORD *)a3;
v7 = *((_QWORD *)a3 + 1);
v12 = *((void **)a3 + 2);
v10 = v6;
v11 = v7;
}
v8 = (__int64 *)(v4 + 320);
if ( (__int64 *)(v4 + 320) != &v10 )
{
if ( (v10 & 1) != 0 )
std::string::assign(v8, v12, v11);
else
std::string::assign(v8, (char *)&v10 + 1, (unsigned __int8)v10 >> 1);
}
if ( (v10 & 1) != 0 )
operator delete(v12);
*(_DWORD *)(*((_QWORD *)this + 83) + 392LL) = 0;
LevelBrowserLayer::loadPage((GJSearchObject **)this, *((GJSearchObject **)this + 83));
}
return _stack_chk_guard;
}