//
// MemberListPopup::threadSendFinished from 0x1400ec170 to 0x1400ec23b (203 bytes)
//
// 2 xrefs:
// > ??> @ 0x140728630
// > ??> @ 0x140914f90
//
// 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
void __fastcall MemberListPopup::threadSendFinished(__int64 a1)
{
__int64 v1; // rbx
__int64 v2; // rcx
__int64 v3; // rsi
__int64 v4; // rax
void *v5; // [rsp+30h] [rbp+8h]
v1 = a1;
v2 = *(_QWORD *)(a1 + 32);
if ( v2 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)(v2 + 672) + 48LL))(v2 + 672);
if ( *(_BYTE *)(v1 - 776 + 864)
|| *(int *)(v1 + 92) > 0
|| *(int *)(v1 + 96) > 0
|| *(int *)(v1 + 100) > 0
|| *(_BYTE *)(v1 + 72) )
{
v3 = v1;
if ( v1 == 776 )
v3 = 0;
v4 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v5 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v5);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v4 = *(_QWORD *)&qword_14090BFB0;
}
if ( *(_QWORD *)(v4 + 1392) != v3 )
{
if ( v1 == 776 )
v1 = 0;
*(_QWORD *)(v4 + 1392) = v1;
}
}
}