//
// EditorUI::findPassesFilters from 0x1401c8a30 to 0x1401c8dcf (927 bytes)
//
// 3 xrefs:
// > EditorUI::findObject @ 0x1401c8fed
// > EditorUI::findObject @ 0x1401c9185
// > ??> @ 0x14091a864
//
// 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:28:06 +0000
//
// Hidden C++ exception states: #wind=6
bool __fastcall EditorUI::findPassesFilters(__int64 a1, __int64 a2)
{
__int64 v3; // rbx
cocos2d::CCString *v4; // rax
int v5; // edi
void *v6; // r8
__int64 v7; // rdi
cocos2d::CCString *v8; // rax
int v9; // edi
void *v10; // r8
__int64 v11; // rdi
cocos2d::CCString *v12; // rax
int v13; // edi
void *v14; // r8
int *v15; // rax
int v16; // ecx
int v17; // eax
int *v18; // rax
int v19; // ecx
int v20; // eax
void *v22; // [rsp+30h] [rbp-19h]
void *v23; // [rsp+30h] [rbp-19h]
void *v24; // [rsp+30h] [rbp-19h]
void *Block[2]; // [rsp+38h] [rbp-11h] BYREF
__int64 v26; // [rsp+48h] [rbp-1h]
unsigned __int64 v27; // [rsp+50h] [rbp+7h]
void *Src[2]; // [rsp+58h] [rbp+Fh] BYREF
__int64 v29; // [rsp+68h] [rbp+1Fh]
unsigned __int64 v30; // [rsp+70h] [rbp+27h]
void *v31[2]; // [rsp+78h] [rbp+2Fh] BYREF
__int64 v32; // [rsp+88h] [rbp+3Fh]
unsigned __int64 v33; // [rsp+90h] [rbp+47h]
v3 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v22 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v22);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v3 = qword_14090BFD0;
}
*(_OWORD *)Block = 0;
v26 = 3;
v27 = 15;
LODWORD(Block[0]) = 6256231;
sub_140044D80(Block, "0005", 4u);
v4 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v3 + 432), Block);
v5 = cocos2d::CCString::intValue(v4);
if ( v27 > 0xF )
{
v6 = Block[0];
if ( v27 + 1 >= 0x1000 )
{
v6 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v6);
}
v26 = 0;
v27 = 15;
LOBYTE(Block[0]) = 0;
if ( v5 == 3 )
{
v7 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v23 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v23);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v7 = qword_14090BFD0;
}
*(_OWORD *)Src = 0;
v29 = 3;
v30 = 15;
LODWORD(Src[0]) = 6256231;
sub_140044D80(Src, "0006", 4u);
v8 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v7 + 432), Src);
v9 = cocos2d::CCString::intValue(v8);
if ( v30 > 0xF )
{
v10 = Src[0];
if ( v30 + 1 >= 0x1000 )
{
v10 = *((void **)Src[0] - 1);
if ( (unsigned __int64)((char *)Src[0] - (char *)v10 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v10);
}
v29 = 0;
v30 = 15;
LOBYTE(Src[0]) = 0;
if ( *(_DWORD *)(a2 + 1036) != v9 )
return 0;
}
v11 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v24 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v24);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v11 = qword_14090BFD0;
}
*(_OWORD *)v31 = 0;
v32 = 3;
v33 = 15;
LODWORD(v31[0]) = 6256231;
sub_140044D80(v31, "0139", 4u);
v12 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v11 + 432), v31);
v13 = cocos2d::CCString::intValue(v12);
if ( v33 > 0xF )
{
v14 = v31[0];
if ( v33 + 1 >= 0x1000 )
{
v14 = *((void **)v31[0] - 1);
if ( (unsigned __int64)((char *)v31[0] - (char *)v14 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v14);
}
if ( !v13 )
return 1;
v15 = *(int **)(a2 + 1104);
if ( v15 )
{
v16 = v15[1];
v17 = *v15;
if ( v16 == v17 || !v17 )
v17 = v16;
if ( v17 == v13 )
return 1;
}
v18 = *(int **)(a2 + 1112);
if ( !v18 )
return 0;
v19 = v18[1];
v20 = *v18;
if ( v19 == v20 || !v20 )
v20 = v19;
return v20 == v13;
}