//
// MemberListPopup::threadUpdateFinished from 0x755a6c to 0x755cd0 (612 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'MemberListPopup::threadUpdateFinished @ 0x755cf8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:58:55 +0000
//
MemberListPopup *__fastcall MemberListPopup::threadUpdateFinished(MemberListPopup *this, int a2, int a3)
{
MemberListPopup *v3; // r4
GameLevelManager *v5; // r0
GJMessageThread *v6; // r1
cocos2d::CCArray *v7; // r8
MemberListPopup *v8; // r0
signed int i; // r6
int v10; // r2
int v11; // r3
const char *v12; // r8
int v13; // r3
int v14; // r3
GameLevelManager *v15; // r0
cocos2d::CCArray *v16; // r8
signed int j; // r6
int *v18; // r10
int v19; // r3
void (__fastcall *v20)(int *, cocos2d::CCNode *, int); // r11
size_t v21; // r0
cocos2d::CCNode *v22; // r0
GameLevelManager *v23; // r0
int v24; // r3
cocos2d::CCNotificationCenter *v25; // r0
int v26[3]; // [sp+Ch] [bp-20h] BYREF
int v27[3]; // [sp+18h] [bp-14h] BYREF
v3 = this;
if ( a2 == *(_DWORD *)(*((_DWORD *)this + 152) + 52) )
{
this = (MemberListPopup *)MemberListPopup::opPending(this);
if ( this )
{
v5 = (GameLevelManager *)GameLevelManager::sharedState(this);
this = (MemberListPopup *)GameLevelManager::getThreadMembers(v5, *(const char **)(*((_DWORD *)v3 + 152) + 52));
v7 = this;
if ( a3 == 4 )
{
if ( !*((_BYTE *)v3 + 640) )
return this;
v8 = *((MemberListPopup **)v3 + 152);
*((_BYTE *)v3 + 640) = 0;
MemberListPopup::applyAddOutcome(v8, v6);
}
else
{
switch ( a3 )
{
case 6:
if ( *((int *)v3 + 161) <= 0 )
return this;
if ( this )
{
for ( i = 0; ; ++i )
{
this = (MemberListPopup *)cocos2d::CCArray::count(v7);
if ( i >= (int)this )
break;
if ( *(_DWORD *)(cocos2d::CCArray::objectAtIndex(v7, i) + 296) == *((_DWORD *)v3 + 161) )
{
this = (MemberListPopup *)cocos2d::CCArray::removeObjectAtIndex(v7, i, 1);
break;
}
}
}
v10 = *((_DWORD *)v3 + 152);
v11 = *(_DWORD *)(v10 + 116);
v12 = "Member removed";
if ( v11 <= 2 )
v13 = 1;
else
v13 = v11 - 1;
*(_DWORD *)(v10 + 116) = v13;
*((_DWORD *)v3 + 161) = 0;
break;
case 7:
v14 = *((_DWORD *)v3 + 162);
if ( v14 <= 0 )
return this;
*(_DWORD *)(*((_DWORD *)v3 + 152) + 132) = v14;
*((_DWORD *)v3 + 162) = 0;
v12 = "Owner changed";
this = (MemberListPopup *)MemberListPopup::refreshPolicyBtn(v3);
break;
case 13:
if ( !*((_BYTE *)v3 + 632) )
return this;
*(_DWORD *)(*((_DWORD *)v3 + 152) + 140) = *(_DWORD *)(*((_DWORD *)v3 + 152) + 140) != 1;
*((_BYTE *)v3 + 632) = 0;
this = (MemberListPopup *)MemberListPopup::refreshPolicyBtn(v3);
if ( *(_DWORD *)(*((_DWORD *)v3 + 152) + 140) == 1 )
v12 = "Only the owner can add";
else
v12 = "Anyone can add";
break;
default:
if ( a3 != 11 || *((int *)v3 + 163) <= 0 )
return this;
v15 = (GameLevelManager *)GameLevelManager::sharedState(this);
this = (MemberListPopup *)GameLevelManager::getThreadPendingInvites(
v15,
*(const char **)(*((_DWORD *)v3 + 152) + 52));
v16 = this;
if ( this )
{
for ( j = 0; ; ++j )
{
this = (MemberListPopup *)cocos2d::CCArray::count(v16);
if ( j >= (int)this )
break;
if ( *(_DWORD *)(cocos2d::CCArray::objectAtIndex(v16, j) + 296) == *((_DWORD *)v3 + 163) )
{
this = (MemberListPopup *)cocos2d::CCArray::removeObjectAtIndex(v16, j, 1);
break;
}
}
}
*((_DWORD *)v3 + 163) = 0;
v12 = "Invite cancelled";
break;
}
v18 = *(int **)(cocos2d::CCDirector::sharedDirector(this) + 220);
v19 = *v18;
memset(v26, 0, sizeof(v26));
v20 = *(void (__fastcall **)(int *, cocos2d::CCNode *, int))(v19 + 232);
v21 = strlen(v12);
std::string::__init(v26, v12, v21);
memset(v27, 0, sizeof(v27));
std::string::__init(v27, &unk_B6B226, 0);
v22 = TextAlertPopup::create((int)v26, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)v27);
v20(v18, v22, 1000);
std::string::~string((int)v27);
std::string::~string((int)v26);
}
MemberListPopup::refreshHost(v3);
MemberListPopup::buildRows((ScrollableContentLayer **)v3);
if ( *((_DWORD *)v3 + 153) )
{
this = (MemberListPopup *)GameLevelManager::sharedState(v23);
v24 = *((_DWORD *)v3 + 153);
if ( v24 )
v24 += 524;
*((_DWORD *)this + 210) = v24;
if ( a3 == 4 || (unsigned int)(a3 - 6) <= 1 )
return (MemberListPopup *)ThreadViewPopup::refetchLatest(*((_DWORD *)v3 + 153));
}
else
{
v25 = (cocos2d::CCNotificationCenter *)cocos2d::CCNotificationCenter::sharedNotificationCenter(v23);
return (MemberListPopup *)cocos2d::CCNotificationCenter::postNotification(
v25,
"ThreadsChangedNotification",
nullptr);
}
}
}
return this;
}