//
// MessageThreadsPage::threadUpdateFinished from 0x1004f63c8 to 0x1004f6508 (320 bytes)
//
// 2 xrefs:
// > sub_1004F653C @ 0x1004f6540
// > ??> @ 0x100995008
//
// 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 11:06:48 +0000
//
void __fastcall MessageThreadsPage::threadUpdateFinished(__int64 a1, __int64 a2, int a3)
{
char *v5; // x22
__int64 v6; // x21
_QWORD *v7; // x0
char v8; // w2
void *__p[2]; // [xsp+0h] [xbp-50h] BYREF
char v10; // [xsp+17h] [xbp-39h]
void *v11[2]; // [xsp+18h] [xbp-38h] BYREF
char v12; // [xsp+2Fh] [xbp-21h]
if ( a3 <= 4 )
{
if ( a3 == 1 )
{
if ( *(_DWORD *)(a1 + 836) == 1 )
v5 = "Conversation deleted";
else
v5 = "Conversations deleted";
}
else
{
if ( a3 != 3 )
return;
v5 = "Marked as read";
}
v6 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector() + 272);
sub_100009900(v11, v5);
sub_100009900(__p, "");
v7 = TextAlertPopup::create((__int64)v11, 150, (__int64)__p, 0.5, 0.6);
(*(void (__fastcall **)(__int64, _QWORD *, __int64))(*(_QWORD *)v6 + 464LL))(v6, v7, 1000);
if ( v10 < 0 )
operator delete(__p[0]);
if ( v12 < 0 )
operator delete(v11[0]);
}
else if ( a3 != 5 && a3 != 11 && a3 != 18 )
{
return;
}
v8 = 0;
if ( (unsigned int)a3 <= 0x12 && ((1 << a3) & 0x40820) != 0 )
v8 = *(_QWORD *)(a1 + 688) != 0;
sub_1004F5C34(a1, *(_DWORD *)(a1 + 832), v8);
}