//
// MemberListPopup::threadMembersFinished from 0x1400ebfe0 to 0x1400ec0af (207 bytes)
//
// 3 xrefs:
// > ??> @ 0x140728650
// > ??> @ 0x140728658
// > ??> @ 0x140914f78
//
// 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:34 +0000
//
// Hidden C++ exception states: #wind=2
__int64 __fastcall MemberListPopup::threadMembersFinished(__int64 a1, int a2)
{
__int64 v2; // rbx
__int64 result; // rax
__int64 v4; // rdi
__int64 v5; // rcx
__int64 *v6; // rsi
__int64 v7; // rdx
__int64 v8; // rcx
void *v9; // [rsp+30h] [rbp+8h]
v2 = a1;
result = *(_QWORD *)(a1 + 24);
if ( a2 == *(_DWORD *)(result + 56) )
{
*(_BYTE *)(a1 + 104) = 0;
v4 = a1 - 776;
v5 = *(_QWORD *)(a1 - 776 + 696);
if ( v5 )
LoadingCircle::fadeAndRemove(v5);
result = MemberListPopup::buildRows(v4);
v6 = (__int64 *)(v2 + 32);
if ( *(_QWORD *)(v2 + 32) )
{
if ( !v4 )
v2 = 0;
v7 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v9 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v9);
result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v7 = *(_QWORD *)&qword_14090BFB0;
}
if ( *(_QWORD *)(v7 + 1392) == v2 )
{
result = *v6;
v8 = *v6 + 672;
if ( !*v6 )
v8 = 0;
*(_QWORD *)(v7 + 1392) = v8;
}
}
}
return result;
}