//
// SetFolderPopup::setTextPopupClosed from 0x1002df644 to 0x1002df6dc (152 bytes)
//
// 2 xrefs:
// > sub_1002DF6F8 @ 0x1002df6fc
// > ??> @ 0x1007e1908
//
// 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
//
__int64 __fastcall SetFolderPopup::setTextPopupClosed(__int64 a1, __int64 a2, __int64 a3)
{
GameLevelManager *v5; // x20
int v6; // w21
void *__p[2]; // [xsp+0h] [xbp-40h] BYREF
__int64 v9; // [xsp+10h] [xbp-30h]
v5 = GameLevelManager::sharedState();
v6 = *(_DWORD *)(a1 + 648);
if ( *(char *)(a3 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)a3, *(_QWORD *)(a3 + 8));
}
else
{
*(_OWORD *)__p = *(_OWORD *)a3;
v9 = *(_QWORD *)(a3 + 16);
}
GameLevelManager::setFolderName((__int64)v5, v6, (__int64)__p, *(unsigned __int8 *)(a1 + 688));
if ( SHIBYTE(v9) < 0 )
operator delete(__p[0]);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1312LL))(a1);
}