//
// MemberListPopup::pickerRowState from 0x100508624 to 0x100508700 (220 bytes)
//
// 2 xrefs:
// > sub_100508700 @ 0x100508704
// > ??> @ 0x100998160
//
// 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 11:06:57 +0000
//
__int64 __fastcall MemberListPopup::pickerRowState(__int64 a1, int a2)
{
__int64 v4; // x0
__int64 v5; // x21
signed int v6; // w22
signed int v7; // w0
__int64 v8; // x0
__int64 v10; // x0
__int64 v11; // x20
signed int v12; // w21
signed int v13; // w0
__int64 v14; // x0
v4 = GameLevelManager::sharedState();
v5 = sub_1000C6C44(v4, *(_DWORD *)(*(_QWORD *)(a1 + 800) + 56LL));
v6 = 0;
while ( 1 )
{
v7 = v5 ? sub_1002E757C(v5) : 0;
if ( v6 >= v7 )
break;
v8 = sub_1002E75A0(v5, v6++);
if ( *(_DWORD *)(v8 + 376) == a2 )
return 1;
}
v10 = GameLevelManager::sharedState();
v11 = sub_1000C6D3C(v10, *(_DWORD *)(*(_QWORD *)(a1 + 800) + 56LL));
v12 = 0;
while ( 1 )
{
v13 = v11 ? sub_1002E757C(v11) : 0;
if ( v12 >= v13 )
break;
v14 = sub_1002E75A0(v11, v12++);
if ( *(_DWORD *)(v14 + 376) == a2 )
return 2;
}
return 0;
}