//
// ReportPopup::FLAlert_Clicked from 0x100967450 to 0x10096756f (287 bytes)
//
// 2 xrefs:
// > sub_1009675E0 @ 0x1009675ec
// > ??> @ 0x100bcccf0
//
// 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 12:38:48 +0000
//
void __fastcall ReportPopup::FLAlert_Clicked(__int64 a1, __int64 a2, int a3)
{
void *v4; // rdi
__int64 v5; // rax
__int64 v6; // r14
char *v7; // rax
__int128 v8; // [rsp+8h] [rbp-58h] BYREF
void *__p; // [rsp+18h] [rbp-48h]
void *v10; // [rsp+20h] [rbp-40h] BYREF
void *v11; // [rsp+28h] [rbp-38h]
char v12; // [rsp+38h] [rbp-28h] BYREF
_BYTE v13[23]; // [rsp+39h] [rbp-27h] BYREF
if ( a3 && (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1 )
{
sub_100967240(&v10, (_QWORD *)a1);
v4 = v10;
if ( v10 != v11 )
{
v5 = GameLevelManager::sharedState();
sub_100581860(
v5,
*(unsigned int *)(a1 + 1024),
*(_DWORD *)(a1 + 1028),
*(unsigned int *)(a1 + 1032),
(__int64 *)&v10,
*(_QWORD *)(a1 + 1088));
v6 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector() + 272);
v12 = 30;
strcpy(v13, "Report received");
LOWORD(v8) = 0;
v7 = TextAlertPopup::create((__int128 *)&v12, 0x96u, &v8, 0.5, 0.60000002);
(*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v6 + 464LL))(v6, v7, 1000);
if ( (v8 & 1) != 0 )
operator delete(__p);
if ( (v12 & 1) != 0 )
operator delete(*(void **)&v13[15]);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1368LL))(a1, 0);
v4 = v10;
}
if ( v4 )
{
v11 = v4;
operator delete(v4);
}
}
}