//
// SupportLayer::FLAlert_Clicked from 0x14066c0e0 to 0x14066c28c (428 bytes)
//
// 2 xrefs:
// > ??> @ 0x1408330d0
// > ??> @ 0x140932024
//
// 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 11:35:52 +0000
//
// Hidden C++ exception states: #wind=3
void __fastcall SupportLayer::FLAlert_Clicked(__int64 a1, __int64 a2, char a3)
{
__int64 v3; // rax
__int64 v4; // rdx
__int64 v5; // rcx
__int64 v6; // rax
const char *v7; // r9
const char *v8; // r8
cocos2d::CCString *v9; // rax
const char *CString; // rax
size_t v11; // r8
void *v12; // rcx
void *v13; // [rsp+40h] [rbp-78h]
void *Block[2]; // [rsp+48h] [rbp-70h] BYREF
__int64 v15; // [rsp+58h] [rbp-60h]
unsigned __int64 v16; // [rsp+60h] [rbp-58h]
_QWORD v17[4]; // [rsp+68h] [rbp-50h] BYREF
_QWORD v18[4]; // [rsp+88h] [rbp-30h] BYREF
if ( a3 )
{
v3 = GJAccountManager::sharedState();
sub_14003F4F0((__int64)v18, v3 + 328);
v4 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v13 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v13);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v4 = qword_14090BFD0;
}
sub_14003F4F0((__int64)v17, v4 + 624);
v6 = cocos2d::CCApplication::sharedApplication(v5);
v7 = (const char *)v18;
if ( v18[3] > 0xFu )
v7 = (const char *)v18[0];
v8 = (const char *)v17;
if ( v17[3] > 0xFu )
v8 = (const char *)v17[0];
v9 = cocos2d::CCString::createWithFormat(
"\n\nGame: %s\n\nUserID: %s\n\nAccount: %s\n\nPlatform: %i\n\nVersion: %i - %i",
(const char *)&qword_140719F60,
v8,
v7,
*(unsigned __int8 *)(v6 + 242),
22,
51);
CString = cocos2d::CCString::getCString(v9);
*(_OWORD *)Block = 0;
v15 = 0;
v16 = 0;
v11 = -1;
do
++v11;
while ( CString[v11] );
sub_14003D230(Block, CString, v11);
sub_14003D310((__int64)v17);
sub_14003D310((__int64)v18);
if ( v16 > 0xF )
{
v12 = Block[0];
if ( v16 + 1 >= 0x1000 )
{
v12 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v12 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v12);
}
}
}