//
// InfoLayer::FLAlert_Clicked from 0x1402bd3b0 to 0x1402bd4cc (284 bytes)
//
// 2 xrefs:
// > ??> @ 0x140581a20
// > ??> @ 0x1406d281c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
void InfoLayer::FLAlert_Clicked(InfoLayer *a1, FLAlertLayer *a2, bool a3)
{
int v5; // eax
__int64 v6; // rbx
int v7; // ebx
__int64 v8; // rbx
__int64 v9; // rax
GameLevelManager *v10; // rcx
__int64 v11; // rax
void *v12; // [rsp+38h] [rbp+10h] BYREF
v5 = ((__int64 (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) - 2;
if ( v5 )
{
if ( v5 == 1 )
InfoLayer::onComment((InfoLayer *)((char *)a1 - 648), nullptr);
}
else if ( a3 )
{
v6 = *(_QWORD *)&a1->m_nTag;
if ( v6 )
{
v7 = *(_DWORD *)(v6 + 388);
}
else
{
v8 = *(_QWORD *)&a1->m_uAutoReleaseCount;
if ( v8 )
{
v7 = -*(_DWORD *)(v8 + 344);
}
else
{
v9 = *(_QWORD *)&a1->m_uID;
if ( v9 )
v7 = *(_DWORD *)(v9 + 328) - *(_DWORD *)(v9 + 332);
else
v7 = 0;
}
}
v10 = (GameLevelManager *)qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v12 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280((__int64)v12);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v10 = (GameLevelManager *)qword_1406C2EC0;
}
GameLevelManager::reportLevel(v10, v7);
memset(&v12, 75, 3);
v11 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)&a1->m_sAdditionalTransform.d + 936LL))(*(_QWORD *)&a1->m_sAdditionalTransform.d);
(**(void (__fastcall ***)(__int64, void **))(v11 + 320))(v11 + 320, &v12);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)&a1->m_sAdditionalTransform.d + 920LL))(
*(_QWORD *)&a1->m_sAdditionalTransform.d,
0);
}
}