//
// GJBaseGameLayer::hasItem from 0x46f2e4 to 0x46f33e (90 bytes)
//
// 1 xrefs:
// > EndLevelLayer::customSetup @ 0x429e26
//
// 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 GJBaseGameLayer::hasItem(GJBaseGameLayer *a1, int a2)
{
cocos2d::CCDictionary *m_collectedItems; // r6
cocos2d::CCString *v3; // r0
char *CString; // r0
int v5; // r6
bool result; // r0
std::string v7; // [sp+8h] [bp-8h] BYREF
m_collectedItems = a1->m_collectedItems;
v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)a2);
CString = (char *)cocos2d::CCString::getCString(v3);
sub_776584((int)&v7, CString);
v5 = cocos2d::CCDictionary::objectForKey(m_collectedItems, &v7);
sub_774008(&v7);
result = v5;
if ( v5 )
return 1;
return result;
}