//
// MessageThreadsPage::updateInviteButton from 0x7468d4 to 0x7469b4 (224 bytes)
//
// 2 xrefs:
// > MessageThreadsPage::applyThreadList @ 0x751424
// > MessageThreadsPage::threadListFinished @ 0x7556f0
//
// 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:42 +0000
//
int __fastcall MessageThreadsPage::updateInviteButton(cocos2d::CCLabelBMFont **this)
{
int v2; // r5
int result; // r0
int v4; // r7
const char *v5; // r1
float v6; // s16
void (__fastcall *v7)(int, int); // r8
cocos2d::CCString *v8; // r0
int CString; // r0
bool v10; // zf
int v11; // r5
int (__fastcall *v12)(int, _BYTE *); // r7
float v13; // s15
int v14; // r0
_BYTE v15[8]; // [sp+4h] [bp-Ch] BYREF
v2 = *(_DWORD *)(GameLevelManager::sharedState((GameLevelManager *)this) + 348);
result = (int)*(this + 143);
if ( result )
{
result = (*(int (__fastcall **)(int, bool))(*(_DWORD *)result + 172))(result, v2 > 0);
if ( v2 > 0 )
{
v4 = (int)*(this + 144);
v5 = (const char *)v2;
if ( v2 >= 99 )
v5 = (char *)&dword_60 + 3;
v6 = 0.0;
v7 = *(void (__fastcall **)(int, int))(*(_DWORD *)v4 + 464);
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v5);
CString = cocos2d::CCString::getCString(v8);
v7(v4, CString);
cocos2d::CCLabelBMFont::limitLabelWidth(*(this + 144), 28.0, 0.8, 0.0);
v10 = v2 == 1;
v11 = (int)*(this + 144);
v12 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v11 + 92);
if ( v10 )
v6 = -0.5;
v13 = *(float *)(*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 143) + 164))(*(this + 143));
v14 = (*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 143) + 164))(*(this + 143));
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v15,
v6 + (float)(v13 * 0.5),
(float)(*(float *)(v14 + 4) * 0.5) + 1.0);
return v12(v11, v15);
}
}
return result;
}