//
// MessageThreadsPage::threadUpdateFinished from 0x1400d7310 to 0x1400d7466 (342 bytes)
//
// 2 xrefs:
// > ??> @ 0x140729988
// > ??> @ 0x140914690
//
// This function is hookable on this platform (idp: pc, 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 11:26:27 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall MessageThreadsPage::threadUpdateFinished(__int64 a1, __int64 a2, unsigned int a3)
{
int v5; // eax
const char *v6; // rbx
__int64 *v7; // r14
size_t v8; // r8
__int64 v9; // rbx
__int64 v10; // rdx
__int64 v11; // r8
__int64 v12; // rax
int v13; // eax
char v14; // r8
__int128 v15; // [rsp+38h] [rbp-50h] BYREF
__int64 v16; // [rsp+48h] [rbp-40h]
__int64 v17; // [rsp+50h] [rbp-38h]
__int128 v18; // [rsp+58h] [rbp-30h] BYREF
__int64 v19; // [rsp+68h] [rbp-20h]
__int64 v20; // [rsp+70h] [rbp-18h]
if ( a3 == 1 )
{
v6 = "Conversations deleted";
if ( *(_DWORD *)(a1 + 180) == 1 )
v6 = "Conversation deleted";
LABEL_9:
v7 = *(__int64 **)(cocos2d::CCDirector::sharedDirector(a1) + 272);
v15 = 0;
v16 = 0;
v17 = 15;
LOBYTE(v15) = 0;
v18 = 0;
v19 = 0;
v20 = 0;
v8 = -1;
do
++v8;
while ( v6[v8] );
sub_14003D230(&v18, v6, v8);
v9 = *v7;
v12 = TextAlertPopup::create(&v18, v10, v11, 150, &v15);
(*(void (__fastcall **)(__int64 *, __int64, __int64))(v9 + 456))(v7, v12, 1000);
if ( a3 > 0x12 )
goto LABEL_15;
v13 = 264224;
if ( !_bittest(&v13, a3) )
goto LABEL_15;
goto LABEL_13;
}
if ( a3 == 3 )
{
v6 = "Marked as read";
goto LABEL_9;
}
if ( a3 <= 0x12 )
{
v5 = 264224;
if ( _bittest(&v5, a3) )
{
LABEL_13:
if ( *(_QWORD *)(a1 + 24) )
{
v14 = 1;
LABEL_16:
MessageThreadsPage::loadPage(a1 - 664, *(_DWORD *)(a1 - 664 + 840), v14);
return;
}
LABEL_15:
v14 = 0;
goto LABEL_16;
}
}
}