//
// ThreadOptionsPopup::FLAlert_Clicked from 0x10094ab00 to 0x10094adb8 (696 bytes)
//
// 2 xrefs:
// > sub_10094ADE0 @ 0x10094adec
// > ??> @ 0x100bc66e8
//
// 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:38:35 +0000
//
void __fastcall ThreadOptionsPopup::FLAlert_Clicked(__int64 a1, __int64 a2, int a3)
{
__int64 v3; // rax
int v4; // esi
char updated; // r14
int v6; // eax
__int64 v7; // rax
int v8; // esi
char v9; // r14
int v10; // r12d
__int64 v11; // r14
int v12; // r15d
const char *v13; // rsi
__int64 v14; // r13
char v15; // r14
__int64 v16; // rax
int v17; // esi
char v18; // r14
__int64 v19; // r14
__int64 v20; // rax
int v21; // r15d
char *v22; // rax
const char *CString; // rax
char v24; // r14
std::string __dst[2]; // [rsp+0h] [rbp-40h] BYREF
if ( a3 )
{
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1 )
{
v3 = GameLevelManager::sharedState();
v4 = *(_DWORD *)(*(_QWORD *)(a1 + 1032) + 56LL);
*(_WORD *)&__dst[0].__r_.__value_.__l.0 = 0;
updated = GameLevelManager::updateThread(v3, v4, 1, __dst);
if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst[0].__r_.__value_.__l.__data_);
if ( updated )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1264) = a1 + 1016;
v6 = 1;
LABEL_29:
*(_DWORD *)(a1 + 1048) = v6;
}
}
else if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 13 )
{
v7 = GameLevelManager::sharedState();
v8 = *(_DWORD *)(*(_QWORD *)(a1 + 1032) + 56LL);
*(_WORD *)&__dst[0].__r_.__value_.__l.0 = 0;
v9 = GameLevelManager::updateThread(v7, v8, 18, __dst);
if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst[0].__r_.__value_.__l.__data_);
if ( v9 )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1264) = a1 + 1016;
v6 = 18;
goto LABEL_29;
}
}
else if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 11 )
{
v10 = *(unsigned __int8 *)(*(_QWORD *)(a1 + 1032) + 272LL);
v11 = GameLevelManager::sharedState();
v12 = *(_DWORD *)(*(_QWORD *)(a1 + 1032) + 56LL);
v13 = "lock";
if ( v10 )
v13 = "unlock";
v14 = (unsigned int)(2 * v10);
__dst[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * (2 * v10 + 4));
memcpy((char *)&__dst[0].__r_.__value_.__l.0 + 1, v13, v14 + 4);
__dst[0].__r_.__value_.__s.__data_[v14 + 4] = 0;
v15 = sub_1005712B0(v11, v12, (__int64)__dst);
if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst[0].__r_.__value_.__l.__data_);
if ( v15 )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1264) = a1 + 1016;
v6 = (unsigned __int8)v10 + 101;
goto LABEL_29;
}
}
else if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 3 )
{
v16 = GameLevelManager::sharedState();
v17 = *(_DWORD *)(*(_QWORD *)(a1 + 1032) + 56LL);
*(_WORD *)&__dst[0].__r_.__value_.__l.0 = 0;
v18 = GameLevelManager::updateThread(v16, v17, 5, __dst);
if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst[0].__r_.__value_.__l.__data_);
if ( v18 )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1264) = a1 + 1016;
v6 = 5;
goto LABEL_29;
}
}
else if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 9 )
{
v19 = GameLevelManager::sharedState();
v20 = *(_QWORD *)(a1 + 1032);
v21 = *(_DWORD *)(v20 + 56);
v22 = sub_10088E820("%i", *(_DWORD *)(v20 + 60));
CString = (const char *)cocos2d::CCString::getCString((__int64)v22);
sub_10000E4E0(__dst, CString);
v24 = GameLevelManager::updateThread(v19, v21, 11, __dst);
if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst[0].__r_.__value_.__l.__data_);
if ( v24 )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1264) = a1 + 1016;
v6 = 11;
goto LABEL_29;
}
}
}
}