//
// NewThreadPopup::threadSendFailed from 0x100948c10 to 0x100948cf1 (225 bytes)
//
// 2 xrefs:
// > sub_100948D20 @ 0x100948d2c
// > ??> @ 0x100bc5de0
//
// 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
//
void __fastcall NewThreadPopup::threadSendFailed(__int64 a1)
{
__int64 v2; // rdi
_QWORD *v3; // rax
__int64 v4; // rbx
char *v5; // rax
__int128 v6; // [rsp+8h] [rbp-38h] BYREF
void *__p; // [rsp+18h] [rbp-28h]
__int128 v8; // [rsp+20h] [rbp-20h] BYREF
void *v9; // [rsp+30h] [rbp-10h]
*(_BYTE *)(a1 + 736) = 0;
v2 = *(_QWORD *)(a1 + 744);
if ( v2 )
{
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 1056LL))(v2, 1);
v3 = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 744) + 1072LL))(*(_QWORD *)(a1 + 744));
ButtonSprite::setColor(v3, 0xFFFFFF);
}
if ( !(unsigned __int8)sub_1004E9BA0() )
{
v4 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector() + 272);
LOBYTE(v8) = 22;
strcpy((char *)&v8 + 1, "Send failed");
LOWORD(v6) = 0;
v5 = TextAlertPopup::create(&v8, 0x96u, &v6, 0.5, 0.60000002);
(*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v4 + 464LL))(v4, v5, 1000);
if ( (v6 & 1) != 0 )
operator delete(__p);
if ( (v8 & 1) != 0 )
operator delete(v9);
}
}