//
// GJRateLevelLayer::FLAlert_Clicked from 0x1402f5750 to 0x1402f58a5 (341 bytes)
//
// 2 xrefs:
// > ??> @ 0x1405865f0
// > ??> @ 0x1406d3fec
//
// 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=2
void GJRateLevelLayer::FLAlert_Clicked(GJRateLevelLayer *a1, FLAlertLayer *a2, bool a3)
{
__int64 v4; // rax
LoadingCircle **p_m_loadingCircle; // rdi
__int64 v6; // rax
GJFeatureState *p_m_featureState; // rcx
FLAlertLayer *v8; // rax
__int128 v9; // [rsp+20h] [rbp-28h] BYREF
__int64 v10; // [rsp+30h] [rbp-18h]
__int64 v11; // [rsp+38h] [rbp-10h]
void *v12; // [rsp+68h] [rbp+20h]
void *v13; // [rsp+68h] [rbp+20h]
if ( a3 && a2->getTag(a2) == -3 )
{
v4 = qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v12 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280((__int64)v12);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v4 = qword_1406C2EC0;
}
p_m_loadingCircle = &a1[-1].m_loadingCircle;
if ( a1 == (GJRateLevelLayer *)960 )
p_m_loadingCircle = nullptr;
if ( !v4 )
{
v13 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280((__int64)v13);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v4 = qword_1406C2EC0;
}
*(_QWORD *)(v4 + 808) = p_m_loadingCircle;
v6 = *(_QWORD *)&a1->m_fRotationX;
if ( v6 )
*(_QWORD *)(v6 + 632) = 0;
v9 = 0;
*(_QWORD *)&v9 = sub_14003AA10(0x20u);
v10 = 17;
v11 = 31;
strcpy((char *)v9, "Unrating level...");
p_m_featureState = &a1[-1].m_featureState;
if ( a1 == (GJRateLevelLayer *)960 )
p_m_featureState = nullptr;
v8 = UploadActionPopup::create((__int64)p_m_featureState, (__int64)&v9);
*(_QWORD *)&a1->m_fRotationX = v8;
v8->show(v8);
}
}