//
// MessageThreadsPage::threadUpdateFinished from 0xc7659c to 0xc7677c (480 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'MessageThreadsPage::threadUpdateFinished @ 0xc76784
// > ??> @ 0xbb5e8
// > ??> @ 0x14ec210
//
// 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:33 +0000
//
__int64 __fastcall MessageThreadsPage::threadUpdateFinished(MessageThreadsPage *this, int a2, int a3)
{
bool v3; // zf
unsigned int v5; // w2
int v6; // w1
cocos2d::CCDirector *v8; // x0
char *v9; // x22
__int64 *v10; // x23
__int64 v11; // x1
void (__fastcall *v12)(__int64 *, __int64, __int64); // x26
size_t v13; // x0
__int64 v14; // x0
_BOOL4 v15; // w2
__int64 v17[2]; // [xsp+58h] [xbp+58h] BYREF
void *v18; // [xsp+68h] [xbp+68h]
__int64 v19[2]; // [xsp+70h] [xbp+70h] BYREF
void *v20; // [xsp+80h] [xbp+80h]
v3 = a3 == 3;
v5 = a3 & 0xFFFFFFFB;
v6 = !v3;
if ( v5 == 1 || !v6 || a3 == 11 || a3 == 18 )
{
v8 = (cocos2d::CCDirector *)(a3 & 0xFFFFFFFD);
if ( (_DWORD)v8 == 1 )
{
if ( v6 )
{
v8 = (cocos2d::CCDirector *)*((unsigned int *)this + 209);
if ( (_DWORD)v8 == 1 )
v9 = "Conversation deleted";
else
v9 = "Conversations deleted";
}
else
{
v9 = "Marked as read";
}
v10 = *(__int64 **)(cocos2d::CCDirector::sharedDirector(v8) + 272);
v11 = *v10;
v17[0] = 0;
v17[1] = 0;
v12 = *(void (__fastcall **)(__int64 *, __int64, __int64))(v11 + 464);
v18 = nullptr;
v13 = strlen(v9);
std::string::__init(v17, v9, v13);
v19[0] = 0;
v19[1] = 0;
v20 = nullptr;
std::string::__init(v19, &byte_11B8890, 0);
v14 = TextAlertPopup::create((char *)v17, 150, (char *)v19, 0.5, 0.6);
v12(v10, v14, 1000);
if ( (v19[0] & 1) != 0 )
operator delete(v20);
if ( (v17[0] & 1) != 0 )
operator delete(v18);
}
v15 = a3 == 18 || a3 == 11 || a3 == 5;
if ( v15 )
LOBYTE(v15) = *((_QWORD *)this + 86) != 0;
MessageThreadsPage::loadPage(this, *((_DWORD *)this + 208), v15);
}
return _stack_chk_guard;
}