//
// AccountReviewPopup::onDeleteFilterRow from 0xc42288 to 0xc424e4 (604 bytes)
//
// 3 xrefs:
// > ??> @ 0x93760
// > AccountReviewPopup::buildFilterRows @ 0xc4721c
// > ??> @ 0x1543f78
//
// 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 13:04:57 +0000
//
__int64 __fastcall AccountReviewPopup::onDeleteFilterRow(AccountReviewPopup *this, cocos2d::CCObject *a2)
{
signed int v3; // w21
cocos2d::CCArray *v5; // x0
__int64 v6; // x0
__int64 v7; // x23
int v8; // w1
const char *v9; // x21
char *v10; // x2
char *v11; // x3
cocos2d::CCString *v12; // x0
size_t v13; // x0
char *v14; // x20
const char *v15; // x1
size_t v16; // x0
ButtonSprite **v17; // x20
char *v18; // [xsp+48h] [xbp+48h]
char *CString; // [xsp+48h] [xbp+48h]
char *v20; // [xsp+48h] [xbp+48h]
__int64 v21[2]; // [xsp+58h] [xbp+58h] BYREF
void *v22; // [xsp+68h] [xbp+68h]
__int64 v23[2]; // [xsp+70h] [xbp+70h] BYREF
void *v24; // [xsp+80h] [xbp+80h]
v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
if ( *((_DWORD *)this + 309) == 1 )
{
v5 = *((cocos2d::CCArray **)this + 164);
if ( (v3 & 0x80000000) == 0 && v5 && v3 < (int)cocos2d::CCArray::count(v5) )
{
v6 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 164), v3);
*((_DWORD *)this + 313) = v3;
v7 = v6;
v9 = (const char *)ReportPopup::surfaceName((ReportPopup *)*(unsigned int *)(v6 + 56), v8);
if ( (*((_BYTE *)this + 848) & 1) != 0 )
v10 = *((char **)this + 108);
else
v10 = (char *)this + 849;
v18 = v10;
GameToolbox::singleLineSnippet(v7 + 104, 0x3Cu, (__int64)v23);
v11 = (char *)v23 + 1;
if ( (v23[0] & 1) != 0 )
v11 = (char *)v24;
v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Delete this %s by %s? Cannot be undone.\n"
"\"%s\"",
v9,
v18,
v11);
CString = (char *)cocos2d::CCString::getCString(v12);
v21[0] = 0;
v21[1] = 0;
v22 = nullptr;
v13 = strlen(CString);
std::string::__init(v21, CString, v13);
if ( (v23[0] & 1) != 0 )
operator delete(v24);
v14 = (char *)this + 800;
v15 = (char *)v21 + 1;
if ( (v21[0] & 1) != 0 )
v15 = (const char *)v22;
v20 = (char *)v15;
v23[0] = 0;
v23[1] = 0;
v24 = nullptr;
v16 = strlen(v15);
std::string::__init(v23, v20, v16);
v17 = (ButtonSprite **)FLAlertLayer::create(
(__int64)v14,
(cocos2d::CCLabelBMFont *)"Delete Content",
(char *)v23,
(ButtonSprite *)"Cancel",
(ButtonSprite *)"Delete",
0,
380.0,
0.0,
1.0);
if ( (v23[0] & 1) != 0 )
operator delete(v24);
(*((void (__fastcall **)(ButtonSprite **, __int64))*v17 + 9))(v17, 6);
ButtonSprite::updateBGImage(v17[77], "GJ_button_06.png");
(*((void (__fastcall **)(ButtonSprite **))*v17 + 164))(v17);
if ( (v21[0] & 1) != 0 )
operator delete(v22);
}
}
return _stack_chk_guard;
}