// // ThreadViewPopup::threadSendFailed from 0xc89fec to 0xc8a228 (572 bytes) // // 3 xrefs: // > `non-virtual thunk to'ThreadViewPopup::threadSendFailed @ 0xc8a230 // > @ 0x98c20 // > @ 0x14ecab8 // // 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:44 +0000 // __int64 __fastcall ThreadViewPopup::threadSendFailed(__int64 this) { __int64 v1; // x19 cocos2d::CCObject *v2; // x1 cocos2d::CCArray *v3; // x0 _BOOL4 v4; // w22 const char *v5; // x1 _QWORD *v6; // x22 size_t v7; // x0 cocos2d::CCDirector *ResponseHadServerPopup; // x0 __int64 *v10; // x19 __int64 v11; // x3 void (__fastcall *v12)(__int64 *, __int64, __int64); // x23 __int64 v13; // x0 char *v14; // [xsp+48h] [xbp+48h] __int64 v15[2]; // [xsp+58h] [xbp+58h] BYREF void *v16; // [xsp+68h] [xbp+68h] GameToolbox *v17; // [xsp+70h] [xbp+70h] BYREF __int64 v18; // [xsp+78h] [xbp+78h] void *v19; // [xsp+80h] [xbp+80h] v1 = this; if ( !*(_BYTE *)(this + 790) ) this = ThreadViewPopup::setSendPending(this, 0); v2 = *(cocos2d::CCObject **)(v1 + 1040); if ( v2 ) { cocos2d::CCArray::removeObject(*(cocos2d::CCArray **)(v1 + 760), v2, 1); v3 = *(cocos2d::CCArray **)(v1 + 1136); if ( v3 ) cocos2d::CCArray::removeObject(v3, *(cocos2d::CCObject **)(v1 + 1040), 1); *(_QWORD *)(v1 + 1040) = 0; ThreadViewPopup::buildRows((ThreadViewPopup *)v1, 0); this = *(_QWORD *)(v1 + 928); if ( this ) { CCTextInputNode::getString((CCTextInputNode *)this, (__int64 *)&v17); if ( ((unsigned __int8)v17 & 1) != 0 ) { v4 = v18 == 0; operator delete(v19); } else { this = (int)(unsigned __int8)v17 >> 1; v4 = this == 0; } if ( v4 ) { v5 = (const char *)(v1 + 977); v6 = *(_QWORD **)(v1 + 928); if ( (*(_BYTE *)(v1 + 976) & 1) != 0 ) v5 = *(const char **)(v1 + 992); v14 = (char *)v5; v17 = nullptr; v18 = 0; v19 = nullptr; v7 = strlen(v5); std::string::__init((__int64 *)&v17, v14, v7); CCTextInputNode::setString(v6, (char *)&v17); this = (unsigned __int8)v17; if ( ((unsigned __int8)v17 & 1) != 0 ) operator delete(v19); } } } ResponseHadServerPopup = (cocos2d::CCDirector *)(unsigned __int8)GameToolbox::lastResponseHadServerPopup((GameToolbox *)this); if ( !(_BYTE)ResponseHadServerPopup ) { v10 = *(__int64 **)(cocos2d::CCDirector::sharedDirector(ResponseHadServerPopup) + 272); v11 = *v10; v15[0] = 0; v15[1] = 0; v12 = *(void (__fastcall **)(__int64 *, __int64, __int64))(v11 + 464); v16 = nullptr; std::string::__init(v15, "Send failed", 0xBu); v17 = nullptr; v18 = 0; v19 = nullptr; std::string::__init((__int64 *)&v17, &byte_11B8890, 0); v13 = TextAlertPopup::create((char *)v15, 150, (char *)&v17, 0.5, 0.6); v12(v10, v13, 1000); if ( ((unsigned __int8)v17 & 1) != 0 ) operator delete(v19); if ( (v15[0] & 1) != 0 ) operator delete(v16); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source