//
// GJUserScore::isCurrentUser from 0x1000d5004 to 0x1000d50a8 (164 bytes)
//
// 3 xrefs:
// > GJScoreCell::loadFromScore @ 0x10012d12c
// > GJLevelScoreCell::loadFromScore @ 0x10012e5c8
// > CustomListView::setupList @ 0x1001320e8
//
// 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 10:58:56 +0000
//
__int64 __fastcall GJUserScore::isCurrentUser(__int64 a1)
{
__int64 v2; // x0
int v3; // w8
_BOOL8 v4; // x19
__int64 v5; // x0
void *__p[2]; // [xsp+0h] [xbp-30h] BYREF
__int64 v8; // [xsp+10h] [xbp-20h]
v2 = GJAccountManager::sharedState(a1);
v3 = *(_DWORD *)(v2 + 352) - *(_DWORD *)(v2 + 356);
if ( v3 && v3 == *(_DWORD *)(a1 + 376) )
return 1;
v5 = GameManager::sharedState(v2);
if ( *(char *)(v5 + 631) < 0 )
{
sub_1000097D0(__p, *(void **)(v5 + 608), *(_QWORD *)(v5 + 616));
}
else
{
*(_OWORD *)__p = *(_OWORD *)(v5 + 608);
v8 = *(_QWORD *)(v5 + 624);
}
v4 = sub_1000045BC((_QWORD *)(a1 + 344), __p);
if ( SHIBYTE(v8) < 0 )
operator delete(__p[0]);
return v4;
}