//
// NewThreadPopup::updateRecipientLabel from 0x755cfc to 0x755e72 (374 bytes)
//
// 3 xrefs:
// > NewThreadPopup::applyMode @ 0x7560ea
// > NewThreadPopup::onToggleMode @ 0x7572cc
// > NewThreadPopup::friendPicked @ 0x7573aa
//
// 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:55 +0000
//
cocos2d::CCArray *__fastcall NewThreadPopup::updateRecipientLabel(cocos2d::CCArray *this)
{
cocos2d::CCArray *v1; // r4
int v2; // r8
const char *v3; // r1
int v4; // r0
char *v5; // r1
int v6; // r0
int *v7; // r0
size_t v8; // r1
char *v9; // r2
char *v10; // r1
size_t v11; // r2
cocos2d::CCString *v12; // r0
char *CString; // r0
int v14[3]; // [sp+0h] [bp-2Ch] BYREF
int v15[3]; // [sp+Ch] [bp-20h] BYREF
int v16; // [sp+18h] [bp-14h] BYREF
size_t v17; // [sp+1Ch] [bp-10h]
char *v18; // [sp+20h] [bp-Ch]
v1 = this;
if ( *((_DWORD *)this + 155) )
{
this = *((cocos2d::CCArray **)this + 138);
if ( this )
{
v2 = cocos2d::CCArray::count(this);
if ( v2 )
{
v4 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)v1 + 138), 0);
std::string::basic_string(v14, v4 + 264);
if ( v2 > 1 )
{
v6 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)v1 + 138), 1u);
std::string::basic_string(v15, v6 + 264);
v7 = std::string::insert(v15, 0, ", ");
v8 = v7[1];
v9 = (char *)v7[2];
v16 = *v7;
v17 = v8;
v18 = v9;
*v7 = 0;
v7[1] = 0;
v7[2] = 0;
if ( (v16 & 1) != 0 )
{
v10 = v18;
v11 = v17;
}
else
{
v11 = (int)(unsigned __int8)v16 >> 1;
v10 = (char *)&v16 + 1;
}
std::string::append(v14, v10, v11);
std::string::~string((int)&v16);
std::string::~string((int)v15);
if ( v2 != 2 )
{
v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)" +%i",
(const char *)(v2 - 2));
CString = (char *)cocos2d::CCString::getCString(v12);
std::string::append(v14, CString);
}
}
if ( (v14[0] & 1) != 0 )
v5 = (char *)v14[2];
else
v5 = (char *)v14 + 1;
(*(void (__fastcall **)(_DWORD, char *, int))(**((_DWORD **)v1 + 155) + 464))(
*((_DWORD *)v1 + 155),
v5,
LOBYTE(v14[0]) << 31);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)v1 + 155) + 80))(*((_DWORD *)v1 + 155), 1055286886);
cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)v1 + 155), 264.0, 0.45, 0.2);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)v1 + 155) + 512))(*((_DWORD *)v1 + 155), 255);
return (cocos2d::CCArray *)std::string::~string((int)v14);
}
else
{
if ( *((_BYTE *)v1 + 557) )
v3 = "Select user";
else
v3 = "Select users...";
(*(void (__fastcall **)(_DWORD, const char *))(**((_DWORD **)v1 + 155) + 464))(*((_DWORD *)v1 + 155), v3);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)v1 + 155) + 80))(*((_DWORD *)v1 + 155), 1055286886);
return (cocos2d::CCArray *)(*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)v1 + 155) + 512))(
*((_DWORD *)v1 + 155),
120);
}
}
}
return this;
}