//
// LevelSearchLayer::clearFilters from 0x140436d90 to 0x140437eff (4463 bytes)
//
// 2 xrefs:
// > LevelSearchLayer::FLAlert_Clicked @ 0x140437f29
// > ??> @ 0x140926e04
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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:32:18 +0000
//
// Hidden C++ exception states: #wind=20
void __fastcall LevelSearchLayer::clearFilters(__int64 a1)
{
__int64 v2; // rcx
cocos2d::CCString *v3; // rax
bool v4; // bl
void *v5; // r8
int i; // ebx
int j; // ebx
__int64 v8; // rbx
__int64 v9; // rbx
struct cocos2d::CCString *v10; // rax
void *v11; // rcx
__int64 v12; // rbx
__int64 v13; // rbx
struct cocos2d::CCString *v14; // rax
void *v15; // rcx
__int64 v16; // rbx
__int64 v17; // rbx
struct cocos2d::CCString *v18; // rax
void *v19; // rcx
__int64 v20; // rbx
__int64 v21; // rbx
struct cocos2d::CCString *v22; // rax
void *v23; // rcx
__int64 v24; // rbx
__int64 v25; // rbx
struct cocos2d::CCString *v26; // rax
void *v27; // rcx
__int64 v28; // rbx
__int64 v29; // rbx
struct cocos2d::CCString *v30; // rax
void *v31; // rcx
__int64 v32; // rbx
__int64 v33; // rbx
struct cocos2d::CCString *v34; // rax
void *v35; // rcx
__int64 v36; // rbx
__int64 v37; // rbx
struct cocos2d::CCString *v38; // rax
void *v39; // rcx
__int64 v40; // rbx
__int64 v41; // rbx
struct cocos2d::CCString *v42; // rax
void *v43; // rcx
__int64 v44; // rbx
__int64 v45; // rbx
struct cocos2d::CCString *v46; // rax
void *v47; // rcx
__int64 v48; // rbx
__int64 v49; // rbx
struct cocos2d::CCString *v50; // rax
void *v51; // rcx
__int64 v52; // rbx
__int64 v53; // rbx
struct cocos2d::CCString *v54; // rax
void *v55; // rcx
__int64 v56; // rbx
__int64 v57; // rbx
struct cocos2d::CCString *v58; // rax
void *v59; // rcx
__int64 v60; // rbx
__int64 v61; // rbx
struct cocos2d::CCString *v62; // rax
void *v63; // rcx
__int64 v64; // rbx
__int64 v65; // rbx
struct cocos2d::CCString *v66; // rax
void *v67; // rcx
__int64 v68; // rbx
__int64 v69; // rbx
struct cocos2d::CCString *v70; // rax
void *v71; // rcx
void *v72; // [rsp+30h] [rbp-19h]
void *v73; // [rsp+30h] [rbp-19h]
void *v74; // [rsp+30h] [rbp-19h]
void *v75; // [rsp+30h] [rbp-19h]
void *v76; // [rsp+30h] [rbp-19h]
void *v77; // [rsp+30h] [rbp-19h]
void *v78; // [rsp+30h] [rbp-19h]
void *v79; // [rsp+30h] [rbp-19h]
void *v80; // [rsp+30h] [rbp-19h]
void *v81; // [rsp+30h] [rbp-19h]
void *v82; // [rsp+30h] [rbp-19h]
void *v83; // [rsp+30h] [rbp-19h]
void *v84; // [rsp+30h] [rbp-19h]
void *v85; // [rsp+30h] [rbp-19h]
void *v86; // [rsp+30h] [rbp-19h]
void *v87; // [rsp+30h] [rbp-19h]
void *v88; // [rsp+30h] [rbp-19h]
void *Block[2]; // [rsp+38h] [rbp-11h] BYREF
__int64 v90; // [rsp+48h] [rbp-1h]
unsigned __int64 v91; // [rsp+50h] [rbp+7h]
void *v92[2]; // [rsp+58h] [rbp+Fh] BYREF
__int64 v93; // [rsp+68h] [rbp+1Fh]
unsigned __int64 v94; // [rsp+70h] [rbp+27h]
void *v95[2]; // [rsp+78h] [rbp+2Fh] BYREF
__int64 v96; // [rsp+88h] [rbp+3Fh]
unsigned __int64 v97; // [rsp+90h] [rbp+47h]
v2 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v72 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v72);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v2 = *(_QWORD *)&qword_14090BFB0;
}
v90 = 11;
v91 = 15;
Block[0] = (void *)0x6C69665F72617473LL;
Block[1] = (void *)7497076;
v3 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v2 + 848), Block);
v4 = cocos2d::CCString::boolValue(v3);
if ( v91 > 0xF )
{
v5 = Block[0];
if ( v91 + 1 >= 0x1000 )
{
v5 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v5 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v5);
}
v90 = 0;
v91 = 15;
LOBYTE(Block[0]) = 0;
if ( v4 )
LevelSearchLayer::toggleStar(a1, 0);
for ( i = 0; i < 8; ++i )
LevelSearchLayer::toggleDifficultyNum(a1, (unsigned int)i, 0);
for ( j = 0; j <= 5; ++j )
LevelSearchLayer::toggleTimeNum(a1, (unsigned int)j, 0);
v8 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v73 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v73);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v8 = *(_QWORD *)&qword_14090BFB0;
}
*(_OWORD *)v92 = 0;
v93 = 0;
v94 = 0;
v92[0] = sub_14003D460(0x20u);
v93 = 18;
v94 = 31;
strcpy((char *)v92[0], "uncompleted_filter");
v9 = *(_QWORD *)(v8 + 848);
v10 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, 0);
cocos2d::CCDictionary::setObject(v9, v10, v92);
if ( v94 > 0xF )
{
v11 = v92[0];
if ( v94 + 1 >= 0x1000 )
{
v11 = *((void **)v92[0] - 1);
if ( (unsigned __int64)((char *)v92[0] - (char *)v11 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v11);
}
v93 = 0;
v94 = 15;
LOBYTE(v92[0]) = 0;
v12 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v74 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v74);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v12 = *(_QWORD *)&qword_14090BFB0;
}
*(_OWORD *)v95 = 0;
v96 = 0;
v97 = 0;
v95[0] = sub_14003D460(0x20u);
v96 = 16;
v97 = 31;
strcpy((char *)v95[0], "completed_filter");
v13 = *(_QWORD *)(v12 + 848);
v14 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, 0);
cocos2d::CCDictionary::setObject(v13, v14, v95);
if ( v97 > 0xF )
{
v15 = v95[0];
if ( v97 + 1 >= 0x1000 )
{
v15 = *((void **)v95[0] - 1);
if ( (unsigned __int64)((char *)v95[0] - (char *)v15 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v15);
}
v96 = 0;
v97 = 15;
LOBYTE(v95[0]) = 0;
v16 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v75 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v75);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v16 = *(_QWORD *)&qword_14090BFB0;
}
v90 = 15;
v91 = 15;
strcpy((char *)Block, "featured_filter");
v17 = *(_QWORD *)(v16 + 848);
v18 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, 0);
cocos2d::CCDictionary::setObject(v17, v18, Block);
if ( v91 > 0xF )
{
v19 = Block[0];
if ( v91 + 1 >= 0x1000 )
{
v19 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v19 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v19);
}
v90 = 0;
v91 = 15;
LOBYTE(Block[0]) = 0;
v20 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v76 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v76);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v20 = *(_QWORD *)&qword_14090BFB0;
}
v93 = 11;
v94 = 15;
v92[0] = (void *)0x6C69665F676E6F73LL;
v92[1] = (void *)7497076;
v21 = *(_QWORD *)(v20 + 848);
v22 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, 0);
cocos2d::CCDictionary::setObject(v21, v22, v92);
if ( v94 > 0xF )
{
v23 = v92[0];
if ( v94 + 1 >= 0x1000 )
{
v23 = *((void **)v92[0] - 1);
if ( (unsigned __int64)((char *)v92[0] - (char *)v23 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v23);
}
v93 = 0;
v94 = 15;
LOBYTE(v92[0]) = 0;
v24 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v77 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v77);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v24 = *(_QWORD *)&qword_14090BFB0;
}
v90 = 15;
v91 = 15;
strcpy((char *)Block, "original_filter");
v25 = *(_QWORD *)(v24 + 848);
v26 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, 0);
cocos2d::CCDictionary::setObject(v25, v26, Block);
if ( v91 > 0xF )
{
v27 = Block[0];
if ( v91 + 1 >= 0x1000 )
{
v27 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v27 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v27);
}
v90 = 0;
v91 = 15;
LOBYTE(Block[0]) = 0;
v28 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v78 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v78);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v28 = *(_QWORD *)&qword_14090BFB0;
}
v93 = 11;
v94 = 15;
v92[0] = (void *)0x6C69665F506F7774LL;
v92[1] = (void *)7497076;
v29 = *(_QWORD *)(v28 + 848);
v30 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, 0);
cocos2d::CCDictionary::setObject(v29, v30, v92);
if ( v94 > 0xF )
{
v31 = v92[0];
if ( v94 + 1 >= 0x1000 )
{
v31 = *((void **)v92[0] - 1);
if ( (unsigned __int64)((char *)v92[0] - (char *)v31 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v31);
}
v93 = 0;
v94 = 15;
LOBYTE(v92[0]) = 0;
v32 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v79 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v79);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v32 = *(_QWORD *)&qword_14090BFB0;
}
*(_OWORD *)v95 = 0;
v96 = 0;
v97 = 0;
v95[0] = sub_14003D460(0x20u);
v96 = 17;
v97 = 31;
strcpy((char *)v95[0], "enable_songFilter");
v33 = *(_QWORD *)(v32 + 848);
v34 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, 0);
cocos2d::CCDictionary::setObject(v33, v34, v95);
if ( v97 > 0xF )
{
v35 = v95[0];
if ( v97 + 1 >= 0x1000 )
{
v35 = *((void **)v95[0] - 1);
if ( (unsigned __int64)((char *)v95[0] - (char *)v35 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v35);
}
v96 = 0;
v97 = 15;
LOBYTE(v95[0]) = 0;
v36 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v80 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v80);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v36 = *(_QWORD *)&qword_14090BFB0;
}
*(_OWORD *)Block = 0;
v90 = 0;
v91 = 0;
Block[0] = sub_14003D460(0x20u);
v90 = 17;
v91 = 31;
strcpy((char *)Block[0], "customsong_filter");
v37 = *(_QWORD *)(v36 + 848);
v38 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, 0);
cocos2d::CCDictionary::setObject(v37, v38, Block);
if ( v91 > 0xF )
{
v39 = Block[0];
if ( v91 + 1 >= 0x1000 )
{
v39 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v39 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v39);
}
v90 = 0;
v91 = 15;
LOBYTE(Block[0]) = 0;
v40 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v81 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v81);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v40 = *(_QWORD *)&qword_14090BFB0;
}
v93 = 13;
v94 = 15;
strcpy((char *)v92, "nostar_filter");
HIWORD(v92[1]) = 0;
v41 = *(_QWORD *)(v40 + 848);
v42 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, 0);
cocos2d::CCDictionary::setObject(v41, v42, v92);
if ( v94 > 0xF )
{
v43 = v92[0];
if ( v94 + 1 >= 0x1000 )
{
v43 = *((void **)v92[0] - 1);
if ( (unsigned __int64)((char *)v92[0] - (char *)v43 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v43);
}
v93 = 0;
v94 = 15;
LOBYTE(v92[0]) = 0;
v44 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v82 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v82);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v44 = *(_QWORD *)&qword_14090BFB0;
}
v90 = 11;
v91 = 15;
Block[0] = (void *)0x6C69665F6E696F63LL;
Block[1] = (void *)7497076;
v45 = *(_QWORD *)(v44 + 848);
v46 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, 0);
cocos2d::CCDictionary::setObject(v45, v46, Block);
if ( v91 > 0xF )
{
v47 = Block[0];
if ( v91 + 1 >= 0x1000 )
{
v47 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v47 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v47);
}
v90 = 0;
v91 = 15;
LOBYTE(Block[0]) = 0;
v48 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v83 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v83);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v48 = *(_QWORD *)&qword_14090BFB0;
}
v93 = 13;
v94 = 15;
strcpy((char *)v92, "follow_filter");
HIWORD(v92[1]) = 0;
v49 = *(_QWORD *)(v48 + 848);
v50 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, 0);
cocos2d::CCDictionary::setObject(v49, v50, v92);
if ( v94 > 0xF )
{
v51 = v92[0];
if ( v94 + 1 >= 0x1000 )
{
v51 = *((void **)v92[0] - 1);
if ( (unsigned __int64)((char *)v92[0] - (char *)v51 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v51);
}
v93 = 0;
v94 = 15;
LOBYTE(v92[0]) = 0;
v52 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v84 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v84);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v52 = *(_QWORD *)&qword_14090BFB0;
}
v90 = 13;
v91 = 15;
strcpy((char *)Block, "friend_filter");
HIWORD(Block[1]) = 0;
v53 = *(_QWORD *)(v52 + 848);
v54 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, 0);
cocos2d::CCDictionary::setObject(v53, v54, Block);
if ( v91 > 0xF )
{
v55 = Block[0];
if ( v91 + 1 >= 0x1000 )
{
v55 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v55 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v55);
}
v90 = 0;
v91 = 15;
LOBYTE(Block[0]) = 0;
v56 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v85 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v85);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v56 = *(_QWORD *)&qword_14090BFB0;
}
v93 = 11;
v94 = 15;
v92[0] = (void *)0x6C69665F63697065LL;
v92[1] = (void *)7497076;
v57 = *(_QWORD *)(v56 + 848);
v58 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, 0);
cocos2d::CCDictionary::setObject(v57, v58, v92);
if ( v94 > 0xF )
{
v59 = v92[0];
if ( v94 + 1 >= 0x1000 )
{
v59 = *((void **)v92[0] - 1);
if ( (unsigned __int64)((char *)v92[0] - (char *)v59 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v59);
}
v93 = 0;
v94 = 15;
LOBYTE(v92[0]) = 0;
v60 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v86 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v86);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v60 = *(_QWORD *)&qword_14090BFB0;
}
v90 = 13;
v91 = 15;
strcpy((char *)Block, "mythic_filter");
HIWORD(Block[1]) = 0;
v61 = *(_QWORD *)(v60 + 848);
v62 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, 0);
cocos2d::CCDictionary::setObject(v61, v62, Block);
if ( v91 > 0xF )
{
v63 = Block[0];
if ( v91 + 1 >= 0x1000 )
{
v63 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v63 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v63);
}
v90 = 0;
v91 = 15;
LOBYTE(Block[0]) = 0;
v64 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v87 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v87);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v64 = *(_QWORD *)&qword_14090BFB0;
}
*(_OWORD *)v95 = 0;
v96 = 0;
v97 = 0;
v95[0] = sub_14003D460(0x20u);
v96 = 16;
v97 = 31;
strcpy((char *)v95[0], "legendary_filter");
v65 = *(_QWORD *)(v64 + 848);
v66 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, 0);
cocos2d::CCDictionary::setObject(v65, v66, v95);
if ( v97 > 0xF )
{
v67 = v95[0];
if ( v97 + 1 >= 0x1000 )
{
v67 = *((void **)v95[0] - 1);
if ( (unsigned __int64)((char *)v95[0] - (char *)v67 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v67);
}
v96 = 0;
v97 = 15;
LOBYTE(v95[0]) = 0;
v68 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v88 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v88);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v68 = *(_QWORD *)&qword_14090BFB0;
}
v93 = 12;
v94 = 15;
strcpy((char *)v92, "demon_filter");
BYTE5(v92[1]) = 0;
HIWORD(v92[1]) = 0;
v69 = *(_QWORD *)(v68 + 848);
v70 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, 0);
cocos2d::CCDictionary::setObject(v69, v70, v92);
if ( v94 > 0xF )
{
v71 = v92[0];
if ( v94 + 1 >= 0x1000 )
{
v71 = *((void **)v92[0] - 1);
if ( (unsigned __int64)((char *)v92[0] - (char *)v71 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v71);
}
}