//
// GJUserScore::isCurrentUser from 0x140172ba0 to 0x140172c73 (211 bytes)
//
// 4 xrefs:
// > CustomListView::setupList @ 0x1400ac0b2
// > GJScoreCell::loadFromScore @ 0x1400b8954
// > GJLevelScoreCell::loadFromScore @ 0x1400ba625
// > ??> @ 0x1406caec0
//
// 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
//
// Hidden C++ exception states: #wind=1
bool GJUserScore::isCurrentUser(GJUserScore *a1)
{
char v2; // di
GJAccountManager *v3; // rax
int v4; // edx
__int64 v5; // rdx
bool v6; // bl
void *v8; // [rsp+28h] [rbp-40h]
_QWORD Buf2[4]; // [rsp+30h] [rbp-38h] BYREF
v2 = 0;
v3 = GJAccountManager::sharedState();
v4 = v3->m_accountID - v3->m_unkInt1;
if ( !v4 || v4 != a1->m_accountID )
{
v5 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v8 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00(v8);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v5 = qword_1406C2ED8;
}
sub_14003BDB0((__int64)Buf2, v5 + 584);
v2 = 3;
if ( sub_14003A760(&a1->m_userUDID.m_data.m_bigStorage, Buf2) )
{
v6 = 0;
LABEL_8:
sub_14003A830((__int64)Buf2);
return v6;
}
}
v6 = 1;
if ( (v2 & 1) != 0 )
goto LABEL_8;
return v6;
}