//
// SetFolderPopup::setTextPopupClosed from 0xa27054 to 0xa27148 (244 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'SetFolderPopup::setTextPopupClosed @ 0xa2714c
// > ??> @ 0xd3258
// > ??> @ 0x14819d8
//
// 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:59:42 +0000
//
__int64 __fastcall SetFolderPopup::setTextPopupClosed(__int64 a1, __int64 a2, char *a3)
{
__int64 v4; // x23
char v5; // w0
unsigned int v6; // w22
__int64 v7; // x0
__int64 v8; // x1
__int64 v11; // [xsp+50h] [xbp+50h] BYREF
__int64 v12; // [xsp+58h] [xbp+58h]
void *v13; // [xsp+60h] [xbp+60h]
v4 = GameLevelManager::sharedState(_stack_chk_guard);
v11 = 0;
v12 = 0;
v5 = *a3;
v13 = nullptr;
v6 = *(_DWORD *)(a1 + 672);
if ( (v5 & 1) != 0 )
{
std::string::__init(&v11, *((void **)a3 + 2), *((_QWORD *)a3 + 1));
}
else
{
v7 = *(_QWORD *)a3;
v8 = *((_QWORD *)a3 + 1);
v13 = *((void **)a3 + 2);
v11 = v7;
v12 = v8;
}
GameLevelManager::setFolderName(v4, (const char *)v6, (__int64)&v11, *(_BYTE *)(a1 + 712));
if ( (v11 & 1) != 0 )
operator delete(v13);
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1360LL))(a1);
return _stack_chk_guard;
}