//
// LevelSearchLayer::checkDiff from 0x496108 to 0x496168 (96 bytes)
//
// 9 xrefs:
// > LevelSearchLayer::getSearchDiffKey @ 0x496180
// > LevelSearchLayer::getSearchDiffKey @ 0x49618a
// > LevelSearchLayer::getSearchDiffKey @ 0x496194
// > LevelSearchLayer::getSearchDiffKey @ 0x49619e
// > LevelSearchLayer::getSearchDiffKey @ 0x4961a8
// > LevelSearchLayer::getSearchDiffKey @ 0x4961b2
// > LevelSearchLayer::getSearchDiffKey @ 0x4961bc
// > LevelSearchLayer::getSearchDiffKey @ 0x4961c6
// > LevelSearchLayer::toggleDifficulty @ 0x4962ca
//
// 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:49:41 +0000
//
int __fastcall LevelSearchLayer::checkDiff(LevelSearchLayer *this, const char *a2)
{
int v2; // r6
const char *DiffKey; // r7
size_t v4; // r0
cocos2d::CCString *v5; // r0
int v6; // r6
int v8[3]; // [sp+0h] [bp-14h] BYREF
v2 = *((_DWORD *)this + 88);
memset(v8, 0, sizeof(v8));
DiffKey = (const char *)LevelSearchLayer::getDiffKey(this, a2);
v4 = strlen(DiffKey);
std::string::__init(v8, DiffKey, v4);
v5 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v2, v8);
v6 = cocos2d::CCString::boolValue(v5);
std::string::~string((int)v8);
return v6;
}