//
// InvitesPopup::removeInviteRow from 0xc82e4c to 0xc82f14 (200 bytes)
//
// 2 xrefs:
// > InvitesPopup::threadUpdateFinished @ 0xc8884c
// > ??> @ 0x100f78
//
// 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:05:40 +0000
//
cocos2d::CCArray *__fastcall InvitesPopup::removeInviteRow(InvitesPopup *this, int a2)
{
cocos2d::CCArray *result; // x0
signed int i; // w20
bool v6; // zf
int v7; // w20
int v8; // w21
GameLevelManager *v9; // x0
bool v10; // cc
unsigned int v11; // w1
result = *((cocos2d::CCArray **)this + 99);
if ( result )
{
for ( i = 0; i < (int)cocos2d::CCArray::count(result); ++i )
{
v6 = *(_DWORD *)(cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 99), i) + 56) == a2;
result = *((cocos2d::CCArray **)this + 99);
if ( v6 )
{
cocos2d::CCArray::removeObjectAtIndex(result, i, 1);
break;
}
}
v7 = 0;
v8 = 0;
while ( 1 )
{
v9 = (GameLevelManager *)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 99));
v10 = v7 < (int)v9;
v11 = v7++;
if ( !v10 )
break;
if ( !*(_BYTE *)(cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 99), v11) + 273) )
++v8;
}
*(_DWORD *)(GameLevelManager::sharedState(v9) + 476) = v8;
return (cocos2d::CCArray *)InvitesPopup::buildRows((cocos2d::CCArray **)this);
}
return result;
}