//
// GJCompactUserCell::loadFromScore from 0x745140 to 0x745308 (456 bytes)
//
// 2 xrefs:
// > CustomListView::loadCell @ 0x74d148
// > ??> @ 0x96760
//
// This function is hookable on this platform (idp: arm, 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 12:52:46 +0000
//
__int64 __fastcall GJCompactUserCell::loadFromScore(GJCompactUserCell *this, GJUserScore *a2)
{
cocos2d::CCObject *v4; // x0
cocos2d::CCMenuItem *v5; // x1
__int64 v6; // x21
__int64 v7; // x0
GameManager *v9; // x0
GameManager *v10; // x0
const char *v11; // x1
__int64 v12; // x23
__int64 v13; // x23
float v14; // s2
float v15; // s1
void (__fastcall *v16)(__int64, _BYTE *); // x19
_BYTE v17[8]; // [xsp+50h] [xbp+50h] BYREF
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 584LL))(*((_QWORD *)this + 67), 1);
v4 = *((cocos2d::CCObject **)this + 69);
if ( v4 )
{
cocos2d::CCObject::release(v4);
*((_QWORD *)this + 69) = 0;
}
if ( a2 )
{
*((_QWORD *)this + 69) = a2;
cocos2d::CCObject::retain(a2);
v6 = cocos2d::CCMenu::create(nullptr, v5);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v6 + 184LL))(v6, &unk_155C608);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 456LL))(*((_QWORD *)this + 67), v6);
GJCompactUserCell::buildUserRow(
*((_QWORD *)this + 69),
*((GJUserScore **)this + 67),
v6,
(__int64)this,
(__int64)GJCompactUserCell::onViewProfile,
0,
0,
0,
*((float *)this + 131) * 0.5);
v7 = *((_QWORD *)this + 69);
if ( *(_DWORD *)(v7 + 688) == 1 )
{
v9 = (GameManager *)*(unsigned int *)(v7 + 436);
if ( (_DWORD)v9 != 2 )
{
v10 = (GameManager *)GameManager::sharedState(v9);
if ( !(unsigned __int8)GameManager::messagesRestricted(v10) )
{
v12 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"accountBtn_messages_001.png", v11);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v12 + 160LL))(v12, 0.55);
v13 = CCMenuItemSpriteExtra::create(v12, 0, (__int64)this, (__int64)GJCompactUserCell::onSendMessage, 0);
CCMenuItemSpriteExtra::setSizeMult(v13, 1.6);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 456LL))(v6, v13);
v14 = *((float *)this + 130);
v15 = *((float *)this + 131) * 0.5;
v16 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v13 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, v14 - 22.0, v15);
v16(v13, v17);
}
}
}
}
return _stack_chk_guard;
}