//
// ThreadDescPopup::threadUpdateFinished from 0xc7ad68 to 0xc7ae94 (300 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'ThreadDescPopup::threadUpdateFinished @ 0xc7ae98
// > ??> @ 0xa2e08
// > ??> @ 0x14f2720
//
// 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:35 +0000
//
__int64 *__fastcall ThreadDescPopup::threadUpdateFinished(ThreadDescPopup *this, int a2, int a3)
{
__int64 *result; // x0
__int64 *v5; // x0
char *v6; // x1
size_t v7; // x2
ThreadViewPopup *v8; // x20
__int64 *v9; // x0
char *v10; // x1
size_t v11; // x2
ThreadViewPopup *v12; // x0
result = *((__int64 **)this + 129);
if ( result && *((_DWORD *)result + 14) == a2 && *((_BYTE *)this + 1113) && ((a3 - 14) & 0xFFFFFFFD) == 0 )
{
if ( a3 == 16 )
{
v9 = result + 30;
if ( v9 != (__int64 *)((char *)this + 1088) )
{
if ( (*((_BYTE *)this + 1088) & 1) != 0 )
{
v10 = *((char **)this + 138);
v11 = *((_QWORD *)this + 137);
}
else
{
v10 = (char *)this + 1089;
v11 = *((_BYTE *)this + 1088) >> 1;
}
std::string::assign(v9, v10, v11);
}
v12 = *((ThreadViewPopup **)this + 130);
if ( v12 )
ThreadViewPopup::layoutTitleRow(v12);
if ( *((_BYTE *)this + 1112) )
return (__int64 *)ThreadDescPopup::sendDescription(this);
else
return (__int64 *)ThreadDescPopup::finishSave(this, "Icon updated");
}
else if ( a3 == 14 )
{
v5 = result + 27;
if ( v5 != (__int64 *)((char *)this + 1064) )
{
if ( (*((_BYTE *)this + 1064) & 1) != 0 )
{
v6 = *((char **)this + 135);
v7 = *((_QWORD *)this + 134);
}
else
{
v6 = (char *)this + 1065;
v7 = *((_BYTE *)this + 1064) >> 1;
}
std::string::assign(v5, v6, v7);
}
v8 = *((ThreadViewPopup **)this + 130);
result = (__int64 *)ThreadDescPopup::finishSave(this, "Description updated");
if ( v8 )
return (__int64 *)ThreadViewPopup::refetchLatest(v8);
}
}
else
{
result = *((__int64 **)this + 130);
if ( result )
return (__int64 *)(*(__int64 (__fastcall **)(__int64 *))(*result + 1456))(result);
}
return result;
}