//
// InvitesPopup::threadUpdateFailed from 0x10094f0d0 to 0x10094f1f7 (295 bytes)
//
// 2 xrefs:
// > sub_10094F220 @ 0x10094f22c
// > ??> @ 0x100bc6f78
//
// 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:38 +0000
//
void __fastcall InvitesPopup::threadUpdateFailed(__int64 a1, int a2, int a3)
{
_DWORD *v4; // rdi
__int64 v5; // rax
__int64 v6; // rbx
char *v7; // rax
__int128 v8; // [rsp+8h] [rbp-38h] BYREF
void *__p; // [rsp+18h] [rbp-28h]
__int128 v10; // [rsp+20h] [rbp-20h] BYREF
void *v11; // [rsp+30h] [rbp-10h]
if ( *(_DWORD *)(a1 + 808) == a2 && (*(unsigned __int8 *)(a1 + 812) ^ 9) == a3 )
{
*(_DWORD *)(a1 + 808) = 0;
*(_BYTE *)(a1 + 812) = 0;
v4 = *(_DWORD **)(a1 + 800);
if ( v4 )
{
cocos2d::CCObject::release(v4);
*(_QWORD *)(a1 + 800) = 0;
}
v5 = GameLevelManager::sharedState();
if ( GameLevelManager::getThreadInvites(v5) )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1264) = a1 + 776;
sub_10095CF70(a1);
}
else if ( !(unsigned __int8)sub_1004E9BA0() )
{
v6 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector() + 272);
LOBYTE(v10) = 26;
strcpy((char *)&v10 + 1, "Action failed");
LOWORD(v8) = 0;
v7 = TextAlertPopup::create(&v10, 0x96u, &v8, 0.5, 0.60000002);
(*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v6 + 464LL))(v6, v7, 1000);
if ( (v8 & 1) != 0 )
operator delete(__p);
if ( (v10 & 1) != 0 )
operator delete(v11);
}
}
}