//
// GJUserScore::isCurrentUser from 0x80c1f4 to 0x80c2ec (248 bytes)
//
// 4 xrefs:
// > CustomListView::setupList @ 0x736b6c
// > GJScoreCell::loadFromScore @ 0x7436b0
// > GJLevelScoreCell::loadFromScore @ 0x749820
// > ??> @ 0x746f8
//
// 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 12:54:48 +0000
//
bool __fastcall GJUserScore::isCurrentUser(GJUserScore *this)
{
__int64 v2; // x0
int v3; // w1
GameManager *v4; // x0
int v5; // w1
__int64 v6; // x0
char v7; // w1
char *v8; // x20
__int64 *v9; // x2
__int64 v10; // x0
__int64 v11; // x1
void *v12; // x2
_BOOL4 v13; // w20
__int64 v15; // [xsp+30h] [xbp+30h] BYREF
__int64 v16; // [xsp+38h] [xbp+38h]
void *v17; // [xsp+40h] [xbp+40h]
v2 = GJAccountManager::sharedState(_stack_chk_guard);
v3 = *(_DWORD *)(v2 + 352);
v4 = (GameManager *)*(unsigned int *)(v2 + 356);
v5 = v3 - (_DWORD)v4;
if ( v5 )
{
v4 = (GameManager *)*((unsigned int *)this + 94);
if ( (_DWORD)v4 == v5 )
return 1;
}
v6 = GameManager::sharedState(v4);
v7 = *(_BYTE *)(v6 + 608);
v15 = 0;
v8 = (char *)this + 344;
v16 = 0;
v17 = nullptr;
v9 = (__int64 *)(v6 + 608);
if ( (v7 & 1) != 0 )
{
std::string::__init(&v15, *(void **)(v6 + 624), *(_QWORD *)(v6 + 616));
v13 = sub_7FEA60((__int64)v8, (__int64)&v15);
if ( (v15 & 1) == 0 )
return v13;
LABEL_7:
operator delete(v17);
return v13;
}
v10 = *v9;
v11 = v9[1];
v12 = (void *)v9[2];
v15 = v10;
v16 = v11;
v17 = v12;
v13 = sub_7FEA60((__int64)v8, (__int64)&v15);
if ( (v15 & 1) != 0 )
goto LABEL_7;
return v13;
}