//
// ThreadViewPopup::refreshDMSubLabel from 0x1400daca0 to 0x1400dad34 (148 bytes)
//
// 5 xrefs:
// > ThreadViewPopup::init @ 0x1400d9773
// > ThreadViewPopup::threadSendFinished @ 0x1400de4d0
// > ThreadViewPopup::threadSendFinished @ 0x1400de5ce
// > ThreadViewPopup::threadMessagesFinished @ 0x1400def37
// > ??> @ 0x140914888
//
// 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:28 +0000
//
void __fastcall ThreadViewPopup::refreshDMSubLabel(__int64 a1)
{
__int64 v2; // rcx
__int64 v3; // r8
char *v4; // rdx
v2 = *(_QWORD *)(a1 + 856);
if ( v2 )
{
v3 = *(unsigned int *)(*(_QWORD *)(a1 + 744) + 324LL);
if ( (_DWORD)v3 == 1 )
{
v4 = "Request Needed";
}
else if ( (_DWORD)v3 == 2 )
{
v4 = "Request Pending";
}
else
{
v4 = "Reply to Accept";
if ( (_DWORD)v3 != 3 )
v4 = &byte_1406ED6E0;
}
(**(void (__fastcall ***)(__int64, char *, __int64, char *))(v2 + 360))(v2 + 360, v4, v3, &byte_1406ED6E0);
cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(a1 + 856), 84.0, 0.41999999, 0.2);
}
}