//
// GJRateLevelLayer::FLAlert_Clicked from 0x1002469b4 to 0x100246a68 (180 bytes)
//
// 2 xrefs:
// > sub_100246A84 @ 0x100246a88
// > ??> @ 0x100908328
//
// 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:01:26 +0000
//
__int64 __fastcall GJRateLevelLayer::FLAlert_Clicked(__int64 result, __int64 a2, int a3)
{
__int64 v3; // x19
__int64 v4; // x8
__int64 v5; // x0
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v7; // [xsp+1Fh] [xbp-11h]
if ( a3 )
{
v3 = result;
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)result == -3 )
{
GameLevelManager::sharedState();
result = sub_1000C97A0();
if ( (_DWORD)result )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1360) = v3 + 1024;
v4 = *(_QWORD *)(v3 + 1096);
if ( v4 )
*(_QWORD *)(v4 + 664) = 0;
sub_100009900(__p, "Unrating level...");
v5 = UploadActionPopup::create(v3 + 1016, __p);
*(_QWORD *)(v3 + 1096) = v5;
if ( v7 < 0 )
{
operator delete(__p[0]);
v5 = *(_QWORD *)(v3 + 1096);
}
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1312LL))(v5);
}
}
}
return result;
}