//
// GJCompactUserCell::onViewProfile from 0x140157b80 to 0x140157bba (58 bytes)
//
// 4 xrefs:
// > GJLevelScoreCell::loadFromScore @ 0x140157537
// > GJCompactUserCell::loadFromScore @ 0x140157d1c
// > GJRequestCell::loadFromScore @ 0x140158e13
// > ??> @ 0x1409179a8
//
// 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 11:27:21 +0000
//
// Merged with: GJCompactUserCell::onViewProfile, GJLevelScoreCell::onViewProfile, GJRequestCell::onViewProfile
__int64 __fastcall GJCompactUserCell::onViewProfile(__int64 a1)
{
__int64 result; // rax
__int64 v2; // rcx
__int64 v3; // rax
result = *(_QWORD *)(a1 + 560);
if ( result )
{
v2 = *(unsigned int *)(result + 392);
if ( (int)v2 > 0 )
{
v3 = ProfilePage::create(v2, 0);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 1064LL))(v3);
}
}
return result;
}