//
// LevelSearchLayer::getSearchObject from 0x14030fd80 to 0x140310fa3 (4643 bytes)
//
// 13 xrefs:
// > LevelSearchLayer::onMostDownloaded @ 0x140310ffb
// > LevelSearchLayer::onMostLikes @ 0x1403110bb
// > LevelSearchLayer::onSuggested @ 0x14031117b
// > LevelSearchLayer::onTrending @ 0x14031123b
// > LevelSearchLayer::onMagic @ 0x1403112fb
// > LevelSearchLayer::onMostRecent @ 0x1403113bb
// > LevelSearchLayer::onLatestStars @ 0x14031147b
// > LevelSearchLayer::onFriends @ 0x14031153b
// > LevelSearchLayer::onFollowed @ 0x1403115fb
// > LevelSearchLayer::onStarAward @ 0x1403116bb
// > LevelSearchLayer::onSearch @ 0x1403118a2
// > LevelSearchLayer::onSearchUser @ 0x140311ae0
// > ??> @ 0x1406d4784
//
// 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
//
// Hidden C++ exception states: #wind=36
char *__fastcall LevelSearchLayer::getSearchObject(LevelSearchLayer *a1, int a2, __int64 a3)
{
char v4; // r15
char v5; // r14
char v6; // si
char v7; // di
char v8; // bl
char v9; // al
__int64 v10; // rcx
char v11; // r13
char v12; // r12
char v13; // r15
char v14; // r14
char v15; // si
char v16; // di
char v17; // bl
char v18; // al
__int64 v19; // rcx
__int64 v20; // rcx
cocos2d::CCString *v21; // rax
void *v22; // rcx
__int64 v23; // rbx
cocos2d::CCString *v24; // rax
void *v25; // rcx
__int64 v26; // rbx
cocos2d::CCString *v27; // rax
void *v28; // rcx
__int64 v29; // rcx
cocos2d::CCString *v30; // rax
void *v31; // rcx
__int64 v32; // rcx
cocos2d::CCString *v33; // rax
void *v34; // rcx
__int64 v35; // rcx
cocos2d::CCString *v36; // rax
void *v37; // rcx
__int64 v38; // rcx
cocos2d::CCString *v39; // rax
void *v40; // rcx
__int64 v41; // rbx
cocos2d::CCString *v42; // rax
void *v43; // rcx
__int64 v44; // rbx
cocos2d::CCString *v45; // rax
char v46; // r13
void *v47; // rcx
__int64 v48; // rcx
cocos2d::CCString *v49; // rax
char v50; // r12
void *v51; // rcx
__int64 v52; // rcx
cocos2d::CCString *v53; // rax
int v54; // r15d
void *v55; // rcx
__int64 v56; // rcx
cocos2d::CCString *v57; // rax
int v58; // r14d
void *v59; // rcx
__int64 v60; // rcx
cocos2d::CCString *v61; // rax
char v62; // si
void *v63; // rcx
__int64 v64; // rbx
cocos2d::CCString *v65; // rax
char v66; // di
void *v67; // rcx
__int64 v68; // rcx
cocos2d::CCString *v69; // rax
char v70; // bl
void *v71; // rcx
char *v72; // rbx
char v74; // [rsp+B0h] [rbp-80h]
char v75; // [rsp+B1h] [rbp-7Fh]
char v76; // [rsp+B2h] [rbp-7Eh]
char v77; // [rsp+B3h] [rbp-7Dh]
char v78; // [rsp+B4h] [rbp-7Ch]
char v79; // [rsp+B5h] [rbp-7Bh]
char v80; // [rsp+B6h] [rbp-7Ah]
void *v81; // [rsp+B8h] [rbp-78h]
void *v82; // [rsp+B8h] [rbp-78h]
void *v83; // [rsp+B8h] [rbp-78h]
void *v84; // [rsp+B8h] [rbp-78h]
void *v85; // [rsp+B8h] [rbp-78h]
void *v86; // [rsp+B8h] [rbp-78h]
void *v87; // [rsp+B8h] [rbp-78h]
void *v88; // [rsp+B8h] [rbp-78h]
void *v89; // [rsp+B8h] [rbp-78h]
void *v90; // [rsp+B8h] [rbp-78h]
void *v91; // [rsp+B8h] [rbp-78h]
void *v92; // [rsp+B8h] [rbp-78h]
void *v93; // [rsp+B8h] [rbp-78h]
void *v94; // [rsp+B8h] [rbp-78h]
void *v95; // [rsp+C0h] [rbp-70h]
int v96; // [rsp+C0h] [rbp-70h]
void *v99; // [rsp+D8h] [rbp-58h]
void *v100; // [rsp+D8h] [rbp-58h]
__int64 v101; // [rsp+D8h] [rbp-58h]
_QWORD v103[4]; // [rsp+100h] [rbp-30h] BYREF
_BYTE v104[32]; // [rsp+120h] [rbp-10h] BYREF
_BYTE v105[32]; // [rsp+140h] [rbp+10h] BYREF
__int64 v106; // [rsp+160h] [rbp+30h]
_QWORD v107[2]; // [rsp+168h] [rbp+38h] BYREF
__int64 v108; // [rsp+178h] [rbp+48h]
unsigned __int64 v109; // [rsp+180h] [rbp+50h]
_QWORD v110[2]; // [rsp+188h] [rbp+58h] BYREF
__int64 v111; // [rsp+198h] [rbp+68h]
unsigned __int64 v112; // [rsp+1A0h] [rbp+70h]
void *v113[2]; // [rsp+1A8h] [rbp+78h] BYREF
__int64 v114; // [rsp+1B8h] [rbp+88h]
unsigned __int64 v115; // [rsp+1C0h] [rbp+90h]
void *v116[2]; // [rsp+1C8h] [rbp+98h] BYREF
__int64 v117; // [rsp+1D8h] [rbp+A8h]
unsigned __int64 v118; // [rsp+1E0h] [rbp+B0h]
void *v119[2]; // [rsp+1E8h] [rbp+B8h] BYREF
__int64 v120; // [rsp+1F8h] [rbp+C8h]
unsigned __int64 v121; // [rsp+200h] [rbp+D0h]
void *v122[2]; // [rsp+208h] [rbp+D8h] BYREF
__int64 v123; // [rsp+218h] [rbp+E8h]
unsigned __int64 v124; // [rsp+220h] [rbp+F0h]
void *v125[2]; // [rsp+228h] [rbp+F8h] BYREF
__int64 v126; // [rsp+238h] [rbp+108h]
unsigned __int64 v127; // [rsp+240h] [rbp+110h]
void *v128[2]; // [rsp+248h] [rbp+118h] BYREF
__int64 v129; // [rsp+258h] [rbp+128h]
unsigned __int64 v130; // [rsp+260h] [rbp+130h]
void *v131[2]; // [rsp+268h] [rbp+138h] BYREF
__int64 v132; // [rsp+278h] [rbp+148h]
unsigned __int64 v133; // [rsp+280h] [rbp+150h]
char Block[13]; // [rsp+288h] [rbp+158h] BYREF
char v135; // [rsp+295h] [rbp+165h]
__int16 v136; // [rsp+296h] [rbp+166h]
__int64 v137; // [rsp+298h] [rbp+168h]
unsigned __int64 v138; // [rsp+2A0h] [rbp+170h]
void *v139[2]; // [rsp+2A8h] [rbp+178h] BYREF
__int64 v140; // [rsp+2B8h] [rbp+188h]
unsigned __int64 v141; // [rsp+2C0h] [rbp+190h]
void *v142[2]; // [rsp+2C8h] [rbp+198h] BYREF
__int64 v143; // [rsp+2D8h] [rbp+1A8h]
unsigned __int64 v144; // [rsp+2E0h] [rbp+1B0h]
void *v145[2]; // [rsp+2E8h] [rbp+1B8h] BYREF
__int64 v146; // [rsp+2F8h] [rbp+1C8h]
unsigned __int64 v147; // [rsp+300h] [rbp+1D0h]
void *v148[2]; // [rsp+308h] [rbp+1D8h] BYREF
__int64 v149; // [rsp+318h] [rbp+1E8h]
unsigned __int64 v150; // [rsp+320h] [rbp+1F0h]
void *v151[2]; // [rsp+328h] [rbp+1F8h] BYREF
__int64 v152; // [rsp+338h] [rbp+208h]
unsigned __int64 v153; // [rsp+340h] [rbp+210h]
v106 = a3;
if ( !qword_1406C2EC0 )
{
v99 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280((__int64)v99);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
}
v4 = LevelSearchLayer::checkTime(a1, 5);
v5 = LevelSearchLayer::checkTime(a1, 4);
v6 = LevelSearchLayer::checkTime(a1, 3);
v7 = LevelSearchLayer::checkTime(a1, 2);
v8 = LevelSearchLayer::checkTime(a1, 1);
v9 = LevelSearchLayer::checkTime(a1, 0);
GameLevelManager::getLengthStr(v10, v103, v9, v8, v7, v6, v5, v4);
if ( !qword_1406C2EC0 )
{
v100 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280((__int64)v100);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
}
v11 = LevelSearchLayer::checkDiff(a1, 7);
v12 = LevelSearchLayer::checkDiff(a1, 6);
v13 = LevelSearchLayer::checkDiff(a1, 5);
v14 = LevelSearchLayer::checkDiff(a1, 4);
v15 = LevelSearchLayer::checkDiff(a1, 3);
v16 = LevelSearchLayer::checkDiff(a1, 2);
v17 = LevelSearchLayer::checkDiff(a1, 1);
v18 = LevelSearchLayer::checkDiff(a1, 0);
GameLevelManager::getDifficultyStr(v19, (__int64)v104, v18, v17, v16, v15, v14, v13, v12, v11);
v101 = sub_14003BDB0((__int64)v105, a3);
v20 = qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v95 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280((__int64)v95);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v20 = qword_1406C2EC0;
}
v135 = 0;
v136 = 0;
v137 = 12;
v138 = 15;
strcpy(Block, "demon_filter");
v21 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v20 + 344), Block);
v96 = cocos2d::CCString::intValue(v21);
if ( v138 > 0xF )
{
v22 = *(void **)Block;
if ( v138 + 1 >= 0x1000 )
{
v22 = *(void **)(*(_QWORD *)Block - 8LL);
if ( (unsigned __int64)(*(_QWORD *)Block - (_QWORD)v22 - 8LL) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v22);
}
v137 = 0;
v138 = 15;
Block[0] = 0;
v23 = qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v81 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280((__int64)v81);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v23 = qword_1406C2EC0;
}
*(_OWORD *)v139 = 0;
v140 = 0;
v141 = 15;
v139[0] = sub_14003AA10(0x20u);
v140 = 16;
v141 = 31;
strcpy((char *)v139[0], "completed_filter");
v24 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v23 + 344), v139);
v74 = cocos2d::CCString::boolValue(v24);
if ( v141 > 0xF )
{
v25 = v139[0];
if ( v141 + 1 >= 0x1000 )
{
v25 = *((void **)v139[0] - 1);
if ( (unsigned __int64)((char *)v139[0] - (char *)v25 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v25);
}
v140 = 0;
v141 = 15;
LOBYTE(v139[0]) = 0;
v26 = qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v82 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280((__int64)v82);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v26 = qword_1406C2EC0;
}
*(_OWORD *)v142 = 0;
v143 = 0;
v144 = 15;
v142[0] = sub_14003AA10(0x20u);
v143 = 16;
v144 = 31;
strcpy((char *)v142[0], "legendary_filter");
v27 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v26 + 344), v142);
v75 = cocos2d::CCString::boolValue(v27);
if ( v144 > 0xF )
{
v28 = v142[0];
if ( v144 + 1 >= 0x1000 )
{
v28 = *((void **)v142[0] - 1);
if ( (unsigned __int64)((char *)v142[0] - (char *)v28 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v28);
}
v143 = 0;
v144 = 15;
LOBYTE(v142[0]) = 0;
v29 = qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v83 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280((__int64)v83);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v29 = qword_1406C2EC0;
}
v114 = 13;
v115 = 15;
strcpy((char *)v113, "mythic_filter");
HIWORD(v113[1]) = 0;
v30 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v29 + 344), v113);
v76 = cocos2d::CCString::boolValue(v30);
if ( v115 > 0xF )
{
v31 = v113[0];
if ( v115 + 1 >= 0x1000 )
{
v31 = *((void **)v113[0] - 1);
if ( (unsigned __int64)((char *)v113[0] - (char *)v31 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v31);
}
v114 = 0;
v115 = 15;
LOBYTE(v113[0]) = 0;
v32 = qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v84 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280((__int64)v84);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v32 = qword_1406C2EC0;
}
v117 = 11;
v118 = 15;
v116[0] = (void *)0x6C69665F63697065LL;
v116[1] = (void *)7497076;
v33 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v32 + 344), v116);
v77 = cocos2d::CCString::boolValue(v33);
if ( v118 > 0xF )
{
v34 = v116[0];
if ( v118 + 1 >= 0x1000 )
{
v34 = *((void **)v116[0] - 1);
if ( (unsigned __int64)((char *)v116[0] - (char *)v34 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v34);
}
v117 = 0;
v118 = 15;
LOBYTE(v116[0]) = 0;
v35 = qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v85 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280((__int64)v85);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v35 = qword_1406C2EC0;
}
v120 = 11;
v121 = 15;
v119[0] = (void *)0x6C69665F6E696F63LL;
v119[1] = (void *)7497076;
v36 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v35 + 344), v119);
v78 = cocos2d::CCString::boolValue(v36);
if ( v121 > 0xF )
{
v37 = v119[0];
if ( v121 + 1 >= 0x1000 )
{
v37 = *((void **)v119[0] - 1);
if ( (unsigned __int64)((char *)v119[0] - (char *)v37 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v37);
}
v120 = 0;
v121 = 15;
LOBYTE(v119[0]) = 0;
v38 = qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v86 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280((__int64)v86);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v38 = qword_1406C2EC0;
}
v123 = 13;
v124 = 15;
strcpy((char *)v122, "nostar_filter");
HIWORD(v122[1]) = 0;
v39 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v38 + 344), v122);
v79 = cocos2d::CCString::boolValue(v39);
if ( v124 > 0xF )
{
v40 = v122[0];
if ( v124 + 1 >= 0x1000 )
{
v40 = *((void **)v122[0] - 1);
if ( (unsigned __int64)((char *)v122[0] - (char *)v40 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v40);
}
v123 = 0;
v124 = 15;
LOBYTE(v122[0]) = 0;
v41 = qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v87 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280((__int64)v87);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v41 = qword_1406C2EC0;
}
*(_OWORD *)v145 = 0;
v146 = 0;
v147 = 15;
v145[0] = sub_14003AA10(0x20u);
v146 = 17;
v147 = 31;
strcpy((char *)v145[0], "enable_songFilter");
v42 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v41 + 344), v145);
v80 = cocos2d::CCString::boolValue(v42);
if ( v147 > 0xF )
{
v43 = v145[0];
if ( v147 + 1 >= 0x1000 )
{
v43 = *((void **)v145[0] - 1);
if ( (unsigned __int64)((char *)v145[0] - (char *)v43 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v43);
}
v146 = 0;
v147 = 15;
LOBYTE(v145[0]) = 0;
v44 = qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v88 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280((__int64)v88);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v44 = qword_1406C2EC0;
}
*(_OWORD *)v148 = 0;
v149 = 0;
v150 = 15;
v148[0] = sub_14003AA10(0x20u);
v149 = 17;
v150 = 31;
strcpy((char *)v148[0], "customsong_filter");
v45 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v44 + 344), v148);
v46 = cocos2d::CCString::boolValue(v45);
if ( v150 > 0xF )
{
v47 = v148[0];
if ( v150 + 1 >= 0x1000 )
{
v47 = *((void **)v148[0] - 1);
if ( (unsigned __int64)((char *)v148[0] - (char *)v47 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v47);
}
v149 = 0;
v150 = 15;
LOBYTE(v148[0]) = 0;
v48 = qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v89 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280((__int64)v89);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v48 = qword_1406C2EC0;
}
v126 = 11;
v127 = 15;
v125[0] = (void *)0x6C69665F506F7774LL;
v125[1] = (void *)7497076;
v49 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v48 + 344), v125);
v50 = cocos2d::CCString::boolValue(v49);
if ( v127 > 0xF )
{
v51 = v125[0];
if ( v127 + 1 >= 0x1000 )
{
v51 = *((void **)v125[0] - 1);
if ( (unsigned __int64)((char *)v125[0] - (char *)v51 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v51);
}
v126 = 0;
v127 = 15;
LOBYTE(v125[0]) = 0;
v52 = qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v90 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280((__int64)v90);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v52 = qword_1406C2EC0;
}
v111 = 15;
v112 = 15;
strcpy((char *)v110, "original_filter");
v53 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v52 + 344), v110);
v54 = cocos2d::CCString::intValue(v53);
if ( v112 > 0xF )
{
v55 = (void *)v110[0];
if ( v112 + 1 >= 0x1000 )
{
v55 = *(void **)(v110[0] - 8LL);
if ( (unsigned __int64)(v110[0] - (_QWORD)v55 - 8LL) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v55);
}
v111 = 0;
v112 = 15;
LOBYTE(v110[0]) = 0;
v56 = qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v91 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280((__int64)v91);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v56 = qword_1406C2EC0;
}
v129 = 11;
v130 = 15;
v128[0] = (void *)0x6C69665F676E6F73LL;
v128[1] = (void *)7497076;
v57 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v56 + 344), v128);
v58 = cocos2d::CCString::intValue(v57);
if ( v130 > 0xF )
{
v59 = v128[0];
if ( v130 + 1 >= 0x1000 )
{
v59 = *((void **)v128[0] - 1);
if ( (unsigned __int64)((char *)v128[0] - (char *)v59 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v59);
}
v129 = 0;
v130 = 15;
LOBYTE(v128[0]) = 0;
v60 = qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v92 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280((__int64)v92);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v60 = qword_1406C2EC0;
}
v108 = 15;
v109 = 15;
strcpy((char *)v107, "featured_filter");
v61 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v60 + 344), v107);
v62 = cocos2d::CCString::boolValue(v61);
if ( v109 > 0xF )
{
v63 = (void *)v107[0];
if ( v109 + 1 >= 0x1000 )
{
v63 = *(void **)(v107[0] - 8LL);
if ( (unsigned __int64)(v107[0] - (_QWORD)v63 - 8LL) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v63);
}
v108 = 0;
v109 = 15;
LOBYTE(v107[0]) = 0;
v64 = qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v93 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280((__int64)v93);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v64 = qword_1406C2EC0;
}
*(_OWORD *)v151 = 0;
v152 = 0;
v153 = 15;
v151[0] = sub_14003AA10(0x20u);
v152 = 18;
v153 = 31;
strcpy((char *)v151[0], "uncompleted_filter");
v65 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v64 + 344), v151);
v66 = cocos2d::CCString::boolValue(v65);
if ( v153 > 0xF )
{
v67 = v151[0];
if ( v153 + 1 >= 0x1000 )
{
v67 = *((void **)v151[0] - 1);
if ( (unsigned __int64)((char *)v151[0] - (char *)v67 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v67);
}
v152 = 0;
v153 = 15;
LOBYTE(v151[0]) = 0;
v68 = qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v94 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280((__int64)v94);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v68 = qword_1406C2EC0;
}
v132 = 11;
v133 = 15;
v131[0] = (void *)0x6C69665F72617473LL;
v131[1] = (void *)7497076;
v69 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v68 + 344), v131);
v70 = cocos2d::CCString::boolValue(v69);
if ( v133 > 0xF )
{
v71 = v131[0];
if ( v133 + 1 >= 0x1000 )
{
v71 = *((void **)v131[0] - 1);
if ( (unsigned __int64)((char *)v131[0] - (char *)v71 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v71);
}
v132 = 0;
v133 = 15;
LOBYTE(v131[0]) = 0;
v72 = GJSearchObject::create(
a2,
v101,
(__int64)v104,
(__int64)v103,
0,
v70,
v66,
v62,
v58,
v54 != 0,
v50,
v46,
v80,
v79,
v78,
v77,
v76,
v75,
v74,
v96,
0,
a1->m_type);
sub_14003A830(a3);
return v72;
}