//
// MemberListPopup::pickerRowState from 0x1400edc20 to 0x1400edd5b (315 bytes)
//
// 2 xrefs:
// > ??> @ 0x1407292c0
// > ??> @ 0x140915014
//
// 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:35 +0000
//
// Hidden C++ exception states: #wind=2
__int64 __fastcall MemberListPopup::pickerRowState(__int64 a1, int a2)
{
__int64 v4; // rcx
cocos2d::CCArray *ThreadMembers; // rdi
signed int i; // ebx
signed int v7; // eax
__int64 v9; // rcx
cocos2d::CCArray *ThreadPendingInvites; // rdi
signed int j; // ebx
signed int v12; // eax
void *v13; // [rsp+30h] [rbp+8h]
void *v14; // [rsp+30h] [rbp+8h]
v4 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v13 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v13);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v4 = *(_QWORD *)&qword_14090BFB0;
}
ThreadMembers = (cocos2d::CCArray *)GameLevelManager::getThreadMembers(
v4,
*(unsigned int *)(*(_QWORD *)(a1 + 16) + 56LL));
for ( i = 0; ; ++i )
{
v7 = ThreadMembers ? cocos2d::CCArray::count(ThreadMembers) : 0;
if ( i >= v7 )
break;
if ( *((_DWORD *)cocos2d::CCArray::objectAtIndex(ThreadMembers, i) + 98) == a2 )
return 1;
}
v9 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v14 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v14);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v9 = *(_QWORD *)&qword_14090BFB0;
}
ThreadPendingInvites = (cocos2d::CCArray *)GameLevelManager::getThreadPendingInvites(
v9,
*(unsigned int *)(*(_QWORD *)(a1 + 16) + 56LL));
for ( j = 0; ; ++j )
{
v12 = ThreadPendingInvites ? cocos2d::CCArray::count(ThreadPendingInvites) : 0;
if ( j >= v12 )
break;
if ( *((_DWORD *)cocos2d::CCArray::objectAtIndex(ThreadPendingInvites, j) + 98) == a2 )
return 2;
}
return 0;
}