//
// SetFolderPopup::setTextPopupClosed from 0x10029a5c0 to 0x10029a650 (144 bytes)
//
// 2 xrefs:
// > sub_10029A670 @ 0x10029a67c
// > ??> @ 0x100b08328
//
// 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:27:52 +0000
//
__int64 __fastcall SetFolderPopup::setTextPopupClosed(__int64 a1, double a2, __int64 a3, __int128 *a4)
{
__int64 v5; // r14
unsigned int v6; // r15d
__int128 v8; // [rsp+0h] [rbp-40h] BYREF
void *__p; // [rsp+10h] [rbp-30h]
v5 = GameLevelManager::sharedState(a2);
v6 = *(_DWORD *)(a1 + 672);
if ( (*(_BYTE *)a4 & 1) != 0 )
{
sub_10001AD30(&v8, *((const void **)a4 + 2), *((_QWORD *)a4 + 1));
}
else
{
__p = *((void **)a4 + 2);
v8 = *a4;
}
GameLevelManager::setFolderName(v5, v6, &v8, *(unsigned __int8 *)(a1 + 712));
if ( (v8 & 1) != 0 )
operator delete(__p);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1360LL))(a1);
}