//
// AccountReviewPopup::deleteFilterEntry from 0x1400bc520 to 0x1400bc664 (324 bytes)
//
// 3 xrefs:
// > AccountReviewPopup::FLAlert_Clicked @ 0x1400bb322
// > AccountReviewPopup::FLAlert_Clicked @ 0x1400bb647
// > ??> @ 0x1409138a4
//
// 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:26:17 +0000
//
// Hidden C++ exception states: #wind=3
char __fastcall AccountReviewPopup::deleteFilterEntry(__int64 a1, signed int a2)
{
cocos2d::CCArray *v4; // rcx
struct cocos2d::CCObject *v5; // rax
struct cocos2d::CCObject *v6; // rbx
int v7; // eax
__int64 v8; // rdi
__int64 v9; // rcx
int v10; // eax
__int64 v11; // r9
__int64 v12; // rdx
__int64 v14; // r8
void *v15; // [rsp+30h] [rbp+8h]
if ( *(_DWORD *)(a1 + 1324) != 1 )
return 0;
v4 = *(cocos2d::CCArray **)(a1 + 1400);
if ( !v4 )
return 0;
if ( a2 < 0 )
return 0;
if ( a2 >= (int)cocos2d::CCArray::count(v4) )
return 0;
v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 1400), a2);
v6 = v5;
if ( *((_DWORD *)v5 + 15) != 3 )
return 0;
if ( *((int *)v5 + 47) <= 0 )
return 0;
if ( !*((_BYTE *)v5 + 196) )
return 0;
v7 = *((_DWORD *)v5 + 14);
if ( v7 != 3 && v7 != 4 && v7 != 7 )
return 0;
v8 = a1 + 784;
v9 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v15 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v15);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v9 = *(_QWORD *)&qword_14090BFB0;
}
*(_QWORD *)(v9 + 1376) = v8;
v10 = *((_DWORD *)v6 + 14);
v11 = *((unsigned int *)v6 + 48);
v12 = *((unsigned int *)v6 + 47);
if ( v10 == 4 )
{
GameLevelManager::deleteComment(v9, v12, 1, v11);
*((_BYTE *)v6 + 196) = 0;
return 1;
}
else
{
v14 = 0;
if ( v10 == 7 )
v14 = 6;
GameLevelManager::deleteComment(v9, v12, v14, v11);
*((_BYTE *)v6 + 196) = 0;
return 1;
}
}