//
// GJUserScore::isCurrentUser from 0x14026dfb0 to 0x14026e086 (214 bytes)
//
// 4 xrefs:
// > CustomListView::setupList @ 0x1401466e2
// > GJScoreCell::loadFromScore @ 0x140155807
// > GJLevelScoreCell::loadFromScore @ 0x140157638
// > ??> @ 0x14091ca6c
//
// 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:28:53 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall GJUserScore::isCurrentUser(__int64 a1)
{
char v2; // di
__int64 v3; // rax
int v4; // edx
__int64 v5; // rdx
unsigned __int8 v6; // bl
void *v8; // [rsp+28h] [rbp-40h]
_QWORD Buf2[4]; // [rsp+30h] [rbp-38h] BYREF
v2 = 0;
v3 = GJAccountManager::sharedState(a1);
v4 = *(_DWORD *)(v3 + 360) - *(_DWORD *)(v3 + 364);
if ( !v4 || v4 != *(_DWORD *)(a1 + 392) )
{
v5 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v8 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v8);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v5 = qword_14090BFD0;
}
sub_14003F4F0((__int64)Buf2, v5 + 624);
v2 = 3;
if ( sub_14003D160((_QWORD *)(a1 + 352), Buf2) )
{
v6 = 0;
LABEL_8:
sub_14003D310((__int64)Buf2);
return v6;
}
}
v6 = 1;
if ( (v2 & 1) != 0 )
goto LABEL_8;
return v6;
}