//
// MemberListPopup::isRecipientSelected from 0x100508570 to 0x1005085ec (124 bytes)
//
// 2 xrefs:
// > sub_1005085EC @ 0x1005085f0
// > ??> @ 0x100998148
//
// 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
//
bool __fastcall MemberListPopup::isRecipientSelected(__int64 a1, int a2)
{
__int64 v3; // x0
signed int v5; // w21
int v6; // w8
_BOOL8 v7; // x22
v3 = *(_QWORD *)(a1 + 856);
if ( !v3 || (int)sub_1002E757C(v3) < 1 )
return 0;
v5 = 0;
do
{
v6 = *(_DWORD *)(sub_1002E75A0(*(_QWORD *)(a1 + 856), v5) + 376);
v7 = v6 == a2;
if ( v6 == a2 )
break;
++v5;
}
while ( v5 < (int)sub_1002E757C(*(_QWORD *)(a1 + 856)) );
return v7;
}