//
// GJCompactUserCell::loadFromScore from 0x100231b80 to 0x100231d1e (414 bytes)
//
// 1 xrefs:
// > CustomListView::loadCell @ 0x100228307
//
// This function is hookable on this platform (idp: pc, 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:27:10 +0000
//
__int64 __fastcall GJCompactUserCell::loadFromScore(__int64 a1, __int64 a2)
{
__int64 v2; // rax
__int64 result; // rax
__int64 v5; // rdi
int v6; // edx
int v7; // ecx
int v8; // r8d
int v9; // r9d
__int64 v10; // r14
__int64 v11; // rdi
__int64 v12; // rsi
__int64 v13; // rdx
double v14; // xmm0_8
__int64 v15; // rax
__int64 v16; // r15
__int64 v17; // r15
_QWORD v18[4]; // [rsp+0h] [rbp-20h] BYREF
v18[0] = v2;
result = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 584LL))(*(_QWORD *)(a1 + 536), 1);
v5 = *(_QWORD *)(a1 + 552);
if ( v5 )
{
result = cocos2d::CCObject::release(v5);
*(_QWORD *)(a1 + 552) = 0;
}
if ( a2 )
{
*(_QWORD *)(a1 + 552) = a2;
cocos2d::CCObject::retain(a2);
v10 = sub_1008735E0(0, 1, v6, v7, v8, v9);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v10 + 184LL))(v10, &unk_100BE17E0);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v10);
v11 = *(_QWORD *)(a1 + 552);
v12 = *(_QWORD *)(a1 + 536);
GJCompactUserCell::buildUserRow(v11, v12, v10, a1, (unsigned int)GJCompactUserCell::onViewProfile, 0, 0, 0);
result = *(_QWORD *)(a1 + 552);
if ( *(_DWORD *)(result + 688) == 1 && *(_DWORD *)(result + 436) != 2 )
{
*(_QWORD *)&v14 = GameManager::sharedState(v11, v12, v13).u64[0];
result = sub_10036D800(v15, v14);
if ( !(_BYTE)result )
{
v16 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_messages_001.png");
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v16 + 160LL))(v16, 0.55000001);
v17 = CCMenuItemSpriteExtra::create(v16, 0, a1, GJCompactUserCell::onSendMessage, 0);
CCMenuItemSpriteExtra::setSizeMult(v17, 1.6);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 456LL))(v10, v17);
sub_100278250(v18, *(float *)(a1 + 520) + -22.0, *(float *)(a1 + 524) * 0.5);
return (*(__int64 (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v17 + 184LL))(v17, v18);
}
}
}
return result;
}