//
// GameStatsManager::getItemUnlockState from 0x525ffc to 0x526076 (122 bytes)
//
// 4 xrefs:
// > ItemInfoPopup::init @ 0x50dd92
// > GJGarageLayer::setupSpecialPage @ 0x50f028
// > GameStatsManager::getItemUnlockStateLite @ 0x528dec
// > CharacterColorPage::updateColorMode @ 0x69ceea
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:51:54 +0000
//
int __fastcall GameStatsManager::getItemUnlockState(int a1, int a2, int a3)
{
int v3; // r7
int v7; // r7
_DWORD v9[2]; // [sp+0h] [bp-1Ch] BYREF
_BYTE v10[12]; // [sp+8h] [bp-14h] BYREF
v3 = *(_DWORD *)(a1 + 528);
GameStatsManager::getItemKey((GameStatsManager *)v10, a1, a2, a3);
v7 = cocos2d::CCDictionary::objectForKey(v3, v10);
std::string::~string((int)v10);
if ( v7 )
return (*(int (__fastcall **)(int))(*(_DWORD *)v7 + 32))(v7);
v9[0] = a3;
v9[1] = a2;
if ( std::__tree>::__count_unique>((_DWORD *)(a1 + 556), v9) )
return 3;
else
return 0;
}