//
// LevelSearchLayer::checkDiff from 0x10005507c to 0x1000550e8 (108 bytes)
//
// 9 xrefs:
// > LevelSearchLayer::toggleDifficulty @ 0x100053efc
// > LevelSearchLayer::getSearchDiffKey @ 0x100054f00
// > LevelSearchLayer::getSearchDiffKey @ 0x100054f10
// > LevelSearchLayer::getSearchDiffKey @ 0x100054f20
// > LevelSearchLayer::getSearchDiffKey @ 0x100054f30
// > LevelSearchLayer::getSearchDiffKey @ 0x100054f40
// > LevelSearchLayer::getSearchDiffKey @ 0x100054f50
// > LevelSearchLayer::getSearchDiffKey @ 0x100054f60
// > LevelSearchLayer::getSearchDiffKey @ 0x100054f70
//
// 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 LevelSearchLayer::checkDiff(LevelSearchLayer *a1, int a2)
{
cocos2d::CCDictionary *m_difficultyDict; // x19
cocos2d::CCString *v3; // x0
char *CString; // x0
cocos2d::CCString *v5; // x0
bool v6; // w19
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v9; // [xsp+1Fh] [xbp-11h]
m_difficultyDict = a1->m_difficultyDict;
v3 = (cocos2d::CCString *)sub_100268F4C("D%i", a2);
CString = (char *)cocos2d::CCString::getCString(v3);
sub_100009900(__p, CString);
v5 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(m_difficultyDict, __p);
v6 = cocos2d::CCString::boolValue(v5);
if ( v9 < 0 )
operator delete(__p[0]);
return v6;
}