//
// GJUserScore::isCurrentUser from 0x1000aff30 to 0x1000affd4 (164 bytes)
//
// 3 xrefs:
// > GJScoreCell::loadFromScore @ 0x100107c04
// > GJLevelScoreCell::loadFromScore @ 0x1001090a0
// > CustomListView::setupList @ 0x10010b7a0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool __fastcall GJUserScore::isCurrentUser(GJUserScore *a1)
{
GJAccountManager *v2; // x0
int v3; // w8
bool v4; // w19
GameManager *v5; // x0
void *__p[2]; // [xsp+0h] [xbp-30h] BYREF
char *longStorage; // [xsp+10h] [xbp-20h]
v2 = GJAccountManager::sharedState();
v3 = v2->m_accountID - v2->m_unkInt1;
if ( v3 && v3 == a1->m_accountID )
return 1;
v5 = GameManager::sharedState();
if ( v5->m_playerUDID.m_data.m_short.shortStorage.__elems_[22] < 0 )
{
sub_1000097D0(__p, (void *)v5->m_playerUDID.m_data.m_long.capacitym1, v5->m_playerUDID.m_data.m_long.size);
}
else
{
*(_OWORD *)__p = *(_OWORD *)&v5->m_playerUDID.m_data.m_short.sizex2;
longStorage = v5->m_playerUDID.m_data.m_long.longStorage;
}
v4 = sub_1000045BC(&a1->m_userUDID.m_data.m_long.capacitym1, __p);
if ( SHIBYTE(longStorage) < 0 )
operator delete(__p[0]);
return v4;
}