//
// NewThreadPopup::threadSendFailed from 0xc6ba98 to 0xc6bbd8 (320 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'NewThreadPopup::threadSendFailed @ 0xc6bbe0
// > ??> @ 0xb2960
// > ??> @ 0x14efc10
//
// This function is hookable on this platform (idp: arm, 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 13:05:27 +0000
//
__int64 __fastcall NewThreadPopup::threadSendFailed(NewThreadPopup *this)
{
GameToolbox *v1; // x0
cocos2d::CCDirector *ResponseHadServerPopup; // x0
__int64 *v4; // x20
__int64 v5; // x3
void (__fastcall *v6)(__int64 *, __int64, __int64); // x23
__int64 v7; // x0
__int64 v8[2]; // [xsp+48h] [xbp+48h] BYREF
void *v9; // [xsp+58h] [xbp+58h]
__int64 v10[2]; // [xsp+60h] [xbp+60h] BYREF
void *v11; // [xsp+70h] [xbp+70h]
v1 = (GameToolbox *)NewThreadPopup::setSendPending((__int64)this, 0);
ResponseHadServerPopup = (cocos2d::CCDirector *)(unsigned __int8)GameToolbox::lastResponseHadServerPopup(v1);
if ( !(_BYTE)ResponseHadServerPopup )
{
v4 = *(__int64 **)(cocos2d::CCDirector::sharedDirector(ResponseHadServerPopup) + 272);
v5 = *v4;
v8[0] = 0;
v8[1] = 0;
v6 = *(void (__fastcall **)(__int64 *, __int64, __int64))(v5 + 464);
v9 = nullptr;
std::string::__init(v8, "Send failed", 0xBu);
v10[0] = 0;
v10[1] = 0;
v11 = nullptr;
std::string::__init(v10, &byte_11B8890, 0);
v7 = TextAlertPopup::create((char *)v8, 150, (char *)v10, 0.5, 0.6);
v6(v4, v7, 1000);
if ( (v10[0] & 1) != 0 )
operator delete(v11);
if ( (v8[0] & 1) != 0 )
operator delete(v9);
}
return _stack_chk_guard;
}