//
// LevelSearchLayer::toggleTime from 0x3ad6e8 to 0x3ad794 (172 bytes)
//
// 0 xrefs:
//
// 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
//
void LevelSearchLayer::toggleTime(LevelSearchLayer *a1, cocos2d::CCObject *a2)
{
int v3; // r8
bool v4; // r0
cocos2d::CCDictionary *m_difficultyDict; // r10
const char *v6; // r7
cocos2d::CCObject *v7; // r9
char *TimeKey; // r0
void (*v9)(void); // r2
char v10; // r3
GameLevelManager *v11; // r0
_BYTE v12[4]; // [sp+8h] [bp-8h] BYREF
v3 = a2->getTag(a2);
v4 = LevelSearchLayer::checkTime(a1, v3);
m_difficultyDict = a1->m_difficultyDict;
v6 = (const char *)!v4;
v7 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v6);
TimeKey = (char *)LevelSearchLayer::getTimeKey(a1, v3);
sub_776584((int)v12, TimeKey);
cocos2d::CCDictionary::setObject((int)m_difficultyDict, v7);
sub_774008(v12);
v9 = *(void (**)(void))(*(_DWORD *)cocos2d::CCArray::objectAtIndex(a1->m_lengthSprites, v3) + 528);
if ( v6 )
v10 = -1;
else
v10 = 125;
v12[0] = v10;
v12[1] = v10;
v12[2] = v10;
v9();
v11 = GameLevelManager::sharedState();
GameLevelManager::setLenVal(v11, v3, (bool)v6);
}