//
// ThreadViewPopup::refreshDMSubLabel from 0x746df8 to 0x746e48 (80 bytes)
//
// 4 xrefs:
// > ThreadViewPopup::init @ 0x75c33e
// > ThreadViewPopup::threadSendFinished @ 0x75df9c
// > ThreadViewPopup::threadSendFinished @ 0x75e0a2
// > ThreadViewPopup::threadMessagesFinished @ 0x75e46e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:58:43 +0000
//
int __fastcall ThreadViewPopup::refreshDMSubLabel(ThreadViewPopup *this)
{
int result; // r0
int v3; // r3
const char *v4; // r1
result = *((_DWORD *)this + 162);
if ( result )
{
v3 = *(_DWORD *)(*((_DWORD *)this + 141) + 172);
switch ( v3 )
{
case 1:
v4 = "Request Needed";
break;
case 2:
v4 = "Request Pending";
break;
case 3:
v4 = "Reply to Accept";
break;
default:
v4 = (const char *)&unk_B6B226;
break;
}
(*(void (__fastcall **)(int, const char *))(*(_DWORD *)result + 464))(result, v4);
return cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 162), 84.0, 0.42, 0.2);
}
return result;
}