//
// MemberListPopup::pickerRowState from 0xc64264 to 0xc64388 (292 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'MemberListPopup::pickerRowState @ 0xc6438c
// > ??> @ 0x5b7e0
// > ??> @ 0x14ef308
//
// 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:24 +0000
//
__int64 __fastcall MemberListPopup::pickerRowState(MemberListPopup *this, int a2)
{
GameLevelManager *v4; // x0
int v5; // w19
cocos2d::CCArray *ThreadMembers; // x20
bool v7; // cc
unsigned int v8; // w1
cocos2d::CCArray *v9; // x0
bool v10; // nf
GameLevelManager *v11; // x0
int v12; // w19
cocos2d::CCArray *ThreadPendingInvites; // x20
unsigned int v14; // w1
cocos2d::CCArray *v15; // x0
v4 = (GameLevelManager *)GameLevelManager::sharedState(this);
v5 = 0;
ThreadMembers = (cocos2d::CCArray *)GameLevelManager::getThreadMembers(
v4,
(const char *)*(unsigned int *)(*((_QWORD *)this + 100) + 56LL));
while ( ThreadMembers )
{
v7 = v5 < (int)cocos2d::CCArray::count(ThreadMembers);
v8 = v5;
v9 = ThreadMembers;
++v5;
if ( !v7 )
goto LABEL_7;
LABEL_4:
if ( *(_DWORD *)(cocos2d::CCArray::objectAtIndex(v9, v8) + 376) == a2 )
return 1;
}
v8 = v5;
v10 = v5 < 0;
v9 = nullptr;
++v5;
if ( v10 )
goto LABEL_4;
LABEL_7:
v11 = (GameLevelManager *)GameLevelManager::sharedState(v9);
v12 = 0;
ThreadPendingInvites = (cocos2d::CCArray *)GameLevelManager::getThreadPendingInvites(
v11,
(const char *)*(unsigned int *)(*((_QWORD *)this + 100) + 56LL));
do
{
if ( ThreadPendingInvites )
{
v7 = v12 < (int)cocos2d::CCArray::count(ThreadPendingInvites);
v14 = v12;
v15 = ThreadPendingInvites;
++v12;
if ( !v7 )
return 0;
}
else
{
v14 = v12;
v10 = v12 < 0;
v15 = nullptr;
++v12;
if ( !v10 )
return 0;
}
}
while ( a2 != *(_DWORD *)(cocos2d::CCArray::objectAtIndex(v15, v14) + 376) );
return 2;
}