//
// LeaderboardsLayer::isCorrect from 0x452a84 to 0x452ae2 (94 bytes)
//
// 2 xrefs:
// > LeaderboardsLayer::loadLeaderboardFinished @ 0x452b0a
// > LeaderboardsLayer::loadLeaderboardFailed @ 0x452ba0
//
// 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 LeaderboardsLayer::isCorrect(int a1, int a2)
{
int v4; // r7
GameLevelManager *v5; // r0
int v6; // r6
_DWORD v8[2]; // [sp+0h] [bp-8h] BYREF
v8[0] = a1;
v8[1] = a2;
if ( *(_DWORD *)(a1 + 332) == 3 )
v4 = 0;
else
v4 = *(_DWORD *)(a1 + 336);
v5 = GameLevelManager::sharedState();
GameLevelManager::getLeaderboardKey((int)v8, (int)v5, *(const char **)(a1 + 332), v4);
v6 = sub_774DBC(v8, a2);
sub_774008(v8);
return v6 == 0;
}