//
// LevelSearchLayer::toggleTimeNum from 0x100054498 to 0x100054588 (240 bytes)
//
// 2 xrefs:
// > LevelSearchLayer::init @ 0x100052d80
// > LevelSearchLayer::clearFilters @ 0x100054850
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void __fastcall LevelSearchLayer::toggleTimeNum(LevelSearchLayer *a1, int a2, bool a3)
{
_BOOL4 v3; // w19
__int64 v4; // x20
cocos2d::CCDictionary *m_difficultyDict; // x22
__int64 v7; // x23
cocos2d::CCString *v8; // x0
char *CString; // x0
__int64 v10; // x0
__int16 v11; // w8
GameLevelManager *v12; // x0
void *__p[2]; // [xsp+8h] [xbp-48h] BYREF
char v14; // [xsp+1Fh] [xbp-31h]
if ( a1->m_type != 1 )
{
v3 = a3;
v4 = *(_QWORD *)&a2;
m_difficultyDict = a1->m_difficultyDict;
v7 = sub_100268F4C("%i", a3);
v8 = (cocos2d::CCString *)sub_100268F4C("T%i", v4);
CString = (char *)cocos2d::CCString::getCString(v8);
sub_100009900(__p, CString);
cocos2d::CCDictionary::setObject_1(m_difficultyDict, v7, __p);
if ( v14 < 0 )
operator delete(__p[0]);
v10 = sub_10024A388(a1->m_lengthSprites, v4);
if ( v3 )
{
BYTE2(__p[0]) = -1;
v11 = -1;
}
else
{
BYTE2(__p[0]) = 125;
v11 = 32125;
}
LOWORD(__p[0]) = v11;
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v10 + 1056LL))(v10, __p);
v12 = GameLevelManager::sharedState();
GameLevelManager::setLenVal(v12, v4, v3);
}
}