//
// NewThreadPopup::threadSendFailed from 0x74b68c to 0x74b730 (164 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'NewThreadPopup::threadSendFailed @ 0x74b744
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:58:46 +0000
//
int __fastcall NewThreadPopup::threadSendFailed(NewThreadPopup *this)
{
GameToolbox *v1; // r0
int result; // r0
int *v3; // r8
int v4; // r3
void (__fastcall *v5)(int *, cocos2d::CCNode *, int); // r9
cocos2d::CCNode *v6; // r0
int v7[3]; // [sp+Ch] [bp-20h] BYREF
int v8[3]; // [sp+18h] [bp-14h] BYREF
v1 = (GameToolbox *)NewThreadPopup::setSendPending(this, 0);
result = GameToolbox::lastResponseHadServerPopup(v1);
if ( !result )
{
v3 = *(int **)(cocos2d::CCDirector::sharedDirector(nullptr) + 220);
v4 = *v3;
memset(v7, 0, sizeof(v7));
v5 = *(void (__fastcall **)(int *, cocos2d::CCNode *, int))(v4 + 232);
std::string::__init(v7, "Send failed", 0xBu);
memset(v8, 0, sizeof(v8));
std::string::__init(v8, &unk_B6B226, 0);
v6 = TextAlertPopup::create((int)v7, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)v8);
v5(v3, v6, 1000);
std::string::~string((int)v8);
return std::string::~string((int)v7);
}
return result;
}