//
// SetFolderPopup::setTextPopupClosed from 0x10037c7b4 to 0x10037c84c (152 bytes)
//
// 2 xrefs:
// > sub_10037C868 @ 0x10037c86c
// > ??> @ 0x10093a4e0
//
// 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 11:03:28 +0000
//
__int64 __fastcall SetFolderPopup::setTextPopupClosed(__int64 a1, __int64 a2, __int64 a3)
{
__int64 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 + 672);
if ( *(char *)(a3 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)a3, *(_QWORD *)(a3 + 8));
}
else
{
*(_OWORD *)__p = *(_OWORD *)a3;
v9 = *(_QWORD *)(a3 + 16);
}
sub_1000B096C(v5, v6, (__int64)__p, *(unsigned __int8 *)(a1 + 712));
if ( SHIBYTE(v9) < 0 )
operator delete(__p[0]);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1360LL))(a1);
}