//
// NewThreadPopup::isRecipientSelected from 0x100947f90 to 0x100947ffb (107 bytes)
//
// 1 xrefs:
// > ??> @ 0x100bc5db8
//
// 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 12:38:34 +0000
//
bool __fastcall NewThreadPopup::isRecipientSelected(__int64 a1, int a2)
{
__int64 v3; // rdi
unsigned int v4; // r15d
bool result; // al
v3 = *(_QWORD *)(a1 + 728);
if ( !v3 )
return 0;
v4 = 0;
if ( (int)sub_1007FEF90(v3) <= 0 )
return 0;
while ( 1 )
{
result = *(_DWORD *)(sub_1007FEFE0(*(_QWORD *)(a1 + 728), v4) + 376) == a2;
if ( result )
break;
if ( (int)++v4 >= (int)sub_1007FEF90(*(_QWORD *)(a1 + 728)) )
return 0;
}
return result;
}