//
// ThreadOptionsPopup::FLAlert_Clicked from 0x10050da18 to 0x10050dcd4 (700 bytes)
//
// 2 xrefs:
// > sub_10050DD00 @ 0x10050dd04
// > ??> @ 0x100999368
//
// 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:07:00 +0000
//
void __fastcall ThreadOptionsPopup::FLAlert_Clicked(__int64 a1, __int64 a2, int a3)
{
__int64 v5; // x20
int v6; // w21
char v7; // w20
int v8; // w8
__int64 v9; // x20
int v10; // w21
char v11; // w20
int v12; // w22
__int64 v13; // x20
int v14; // w21
char *v15; // x1
char v16; // w20
__int64 v17; // x20
int v18; // w21
char v19; // w20
__int64 v20; // x20
__int64 v21; // x8
int v22; // w21
void *v23; // x0
char *CString; // x0
char v25; // w20
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v27; // [xsp+1Fh] [xbp-21h]
if ( a3 )
{
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1 )
{
v5 = GameLevelManager::sharedState();
v6 = *(_DWORD *)(*(_QWORD *)(a1 + 1032) + 56LL);
sub_100009900(__p, "");
v7 = sub_1000C8838(v5, v6, 1, (__int64)__p);
if ( v27 < 0 )
operator delete(__p[0]);
if ( (v7 & 1) != 0 )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1264) = a1 + 1016;
v8 = 1;
LABEL_32:
*(_DWORD *)(a1 + 1048) = v8;
}
}
else if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 13 )
{
v9 = GameLevelManager::sharedState();
v10 = *(_DWORD *)(*(_QWORD *)(a1 + 1032) + 56LL);
sub_100009900(__p, "");
v11 = sub_1000C8838(v9, v10, 18, (__int64)__p);
if ( v27 < 0 )
operator delete(__p[0]);
if ( (v11 & 1) != 0 )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1264) = a1 + 1016;
v8 = 18;
goto LABEL_32;
}
}
else if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 11 )
{
v12 = *(unsigned __int8 *)(*(_QWORD *)(a1 + 1032) + 272LL);
v13 = GameLevelManager::sharedState();
v14 = *(_DWORD *)(*(_QWORD *)(a1 + 1032) + 56LL);
if ( v12 )
v15 = "unlock";
else
v15 = "lock";
sub_100009900(__p, v15);
v16 = sub_1000C4290(v13, v14, (const char *)__p, 0);
if ( v27 < 0 )
operator delete(__p[0]);
if ( (v16 & 1) != 0 )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1264) = a1 + 1016;
if ( v12 )
v8 = 102;
else
v8 = 101;
goto LABEL_32;
}
}
else if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 3 )
{
v17 = GameLevelManager::sharedState();
v18 = *(_DWORD *)(*(_QWORD *)(a1 + 1032) + 56LL);
sub_100009900(__p, "");
v19 = sub_1000C8838(v17, v18, 5, (__int64)__p);
if ( v27 < 0 )
operator delete(__p[0]);
if ( (v19 & 1) != 0 )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1264) = a1 + 1016;
v8 = 5;
goto LABEL_32;
}
}
else if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 9 )
{
v20 = GameLevelManager::sharedState();
v21 = *(_QWORD *)(a1 + 1032);
v22 = *(_DWORD *)(v21 + 56);
v23 = sub_1003065B0("%i", *(_DWORD *)(v21 + 60));
CString = (char *)cocos2d::CCString::getCString((__int64)v23);
sub_100009900(__p, CString);
v25 = sub_1000C8838(v20, v22, 11, (__int64)__p);
if ( v27 < 0 )
operator delete(__p[0]);
if ( (v25 & 1) != 0 )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1264) = a1 + 1016;
v8 = 11;
goto LABEL_32;
}
}
}
}