//
// ThreadViewPopup::senderNameFor from 0x74d374 to 0x74d464 (240 bytes)
//
// 2 xrefs:
// > ThreadViewPopup::onMessageOptions @ 0x753d4e
// > ThreadViewPopup::mountVirtualRow @ 0x75f320
//
// 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:48 +0000
//
ThreadViewPopup *__fastcall ThreadViewPopup::senderNameFor(ThreadViewPopup *this, ThreadViewPopup *a2, int a3)
{
GJAccountManager *v6; // r0
int v7; // r0
int v8; // r3
int v9; // r1
int *v10; // r0
int v11; // r1
int v12; // r0
cocos2d::CCDictionary **v13; // r0
int v14; // r3
int v16; // [sp+0h] [bp-14h] BYREF
int v17; // [sp+4h] [bp-10h]
v6 = (GJAccountManager *)GJAccountManager::sharedState(this);
if ( a3 == *((_DWORD *)v6 + 70) - *((_DWORD *)v6 + 71) )
{
v7 = GJAccountManager::sharedState(v6);
std::string::basic_string(&v16, v7 + 268);
if ( (v16 & 1) != 0 )
v8 = v17;
else
v8 = (int)(unsigned __int8)v16 >> 1;
if ( !v8 )
{
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
std::string::__init((int *)this, "You", 3u);
LABEL_19:
std::string::~string((int)&v16);
return this;
}
LABEL_7:
std::string::basic_string((int *)this, (int)&v16);
goto LABEL_19;
}
v9 = *((_DWORD *)a2 + 141);
if ( *(_BYTE *)(v9 + 168) && a3 == *(_DWORD *)(v9 + 56) )
{
v10 = (int *)this;
v11 = v9 + 60;
}
else
{
v12 = ThreadViewPopup::senderScoreFor(a2, a3);
if ( !v12 )
{
v13 = (cocos2d::CCDictionary **)GameLevelManager::sharedState(nullptr);
GameLevelManager::tryGetUsername((GameLevelManager *)&v16, v13, a3);
if ( (v16 & 1) != 0 )
v14 = v17;
else
v14 = (int)(unsigned __int8)v16 >> 1;
if ( !v14 )
{
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
std::string::__init((int *)this, "?", 1u);
goto LABEL_19;
}
goto LABEL_7;
}
v11 = v12 + 264;
v10 = (int *)this;
}
std::string::basic_string(v10, v11);
return this;
}