//
// ThreadViewPopup::threadSendFinished from 0x75df44 to 0x75e0c0 (380 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'ThreadViewPopup::threadSendFinished @ 0x75e0d4
//
// 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:59:01 +0000
//
GameLevelManager *__fastcall ThreadViewPopup::threadSendFinished(GameLevelManager *this, int a2, __int64 a3)
{
int v3; // r4
int v5; // r0
int v6; // r3
int v7; // r1
const char *v8; // r2
ThreadViewPopup *refreshed; // r0
int v10; // r10
void (__fastcall *v11)(int, cocos2d::CCNode *, int); // r11
cocos2d::CCNode *v12; // r0
int v13; // r2
int v14; // r1
int v15; // r3
int v16; // r1
const char *v17; // r2
int v18[3]; // [sp+14h] [bp-20h] BYREF
int v19[3]; // [sp+20h] [bp-14h] BYREF
v3 = (int)this;
if ( a2 == *(_DWORD *)(*((_DWORD *)this + 141) + 52) )
{
v5 = GameLevelManager::sharedState(this);
v6 = *(_DWORD *)(v3 + 564);
if ( *(_BYTE *)(v5 + 334) && *(_BYTE *)(v6 + 168) && *(_DWORD *)(v6 + 172) != 2 )
{
*(_DWORD *)(v6 + 172) = 2;
*(_BYTE *)(*(_DWORD *)(v3 + 564) + 169) = 1;
ThreadViewPopup::refreshDMSubLabel((ThreadViewPopup *)v3);
refreshed = ThreadViewPopup::refreshLockNotice((ThreadViewPopup *)v3, v7, v8);
v10 = *(_DWORD *)(cocos2d::CCDirector::sharedDirector(refreshed) + 220);
v11 = *(void (__fastcall **)(int, cocos2d::CCNode *, int))(*(_DWORD *)v10 + 232);
memset(v18, 0, sizeof(v18));
std::string::__init(v18, "Message request sent", 0x14u);
memset(v19, 0, sizeof(v19));
std::string::__init(v19, &unk_B6B226, 0);
v12 = TextAlertPopup::create((int)v18, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)v19);
v11(v10, v12, 1000);
std::string::~string((int)v19);
std::string::~string((int)v18);
}
else if ( *(_BYTE *)(v6 + 168) )
{
v13 = *(_DWORD *)(v6 + 172);
if ( (v13 & 0xFFFFFFFD) == 1 || v13 == 6 )
{
*(_DWORD *)(v6 + 172) = 0;
ThreadViewPopup::refreshDMSubLabel((ThreadViewPopup *)v3);
ThreadViewPopup::refreshLockNotice((ThreadViewPopup *)v3, v16, v17);
}
}
v14 = ThreadViewPopup::dmSendBlocked((ThreadViewPopup *)v3);
if ( !v14 )
v14 = *(unsigned __int8 *)(v3 + 598);
ThreadViewPopup::setSendPending((ThreadViewPopup *)v3, v14);
*(_QWORD *)(v3 + 720) = 0;
if ( (*(_BYTE *)(v3 + 728) & 1) != 0 )
{
**(_BYTE **)(v3 + 736) = 0;
*(_DWORD *)(v3 + 732) = 0;
}
else
{
*(_BYTE *)(v3 + 729) = 0;
*(_BYTE *)(v3 + 728) = 0;
}
v15 = *(_DWORD *)(v3 + 760);
if ( v15 )
{
if ( !*(_QWORD *)(v15 + 56) )
*(_QWORD *)(v15 + 56) = a3;
*(_DWORD *)(v3 + 760) = 0;
ThreadViewPopup::buildRows((ThreadViewPopup *)v3, 0);
}
return (GameLevelManager *)ThreadViewPopup::refetchLatest(v3);
}
return this;
}