//
// LevelBrowserLayer::setTextPopupClosed from 0x1004876c0 to 0x100487748 (136 bytes)
//
// 3 xrefs:
// > sub_100487770 @ 0x10048777c
// > ??> @ 0x100b205a8
// > ??> @ 0x100b4cd70
//
// 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:30:43 +0000
//
void __fastcall LevelBrowserLayer::setTextPopupClosed(
__int64 a1,
__m128 a2,
double a3,
double a4,
__m128 a5,
__int64 a6,
__int64 a7)
{
__int64 v7; // r14
__int64 v8; // rsi
std::string __str; // [rsp+0h] [rbp-30h] BYREF
v7 = *(_QWORD *)(a1 + 664);
if ( v7 )
{
if ( (*(_BYTE *)a7 & 1) != 0 )
{
sub_10001AD30(&__str, *(const void **)(a7 + 16), *(_QWORD *)(a7 + 8));
}
else
{
__str.__r_.__value_.__r.__words[2] = *(_QWORD *)(a7 + 16);
a2 = *(__m128 *)a7;
*(_OWORD *)&__str.__r_.__value_.__l.0 = *(_OWORD *)a7;
}
std::string::operator=((std::string *)(v7 + 320), &__str);
if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__str.__r_.__value_.__l.__data_);
v8 = *(_QWORD *)(a1 + 664);
*(_DWORD *)(v8 + 392) = 0;
LevelBrowserLayer::loadPage(a1, v8, *(double *)a2.i64, a3, a4, a5);
}
}