//
// EditorUI::onResetSpecialFilter from 0x1401b19c0 to 0x1401b1c24 (612 bytes)
//
// 3 xrefs:
// > EditorUI::handleEditorAction @ 0x1401c3ab5
// > EditorUI::setupDeleteMenu @ 0x1401f4fa9
// > ??> @ 0x140919f58
//
// 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:27:56 +0000
//
// Hidden C++ exception states: #wind=3
_UNKNOWN **__fastcall EditorUI::onResetSpecialFilter(__int64 a1)
{
__int64 v2; // rbx
__int64 v3; // rbx
struct cocos2d::CCString *v4; // rax
void *v5; // rcx
__int64 v6; // rbx
__int64 v7; // rbx
struct cocos2d::CCString *v8; // rax
void *v9; // rcx
void *v11; // [rsp+30h] [rbp-38h]
void *v12; // [rsp+30h] [rbp-38h]
void *Block[2]; // [rsp+38h] [rbp-30h] BYREF
__int64 v14; // [rsp+48h] [rbp-20h]
unsigned __int64 v15; // [rsp+50h] [rbp-18h]
v2 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v11 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v11);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v2 = qword_14090BFD0;
}
*(_OWORD *)Block = 0;
v14 = 3;
v15 = 15;
LODWORD(Block[0]) = 6256231;
sub_140044D80(Block, "0133", 4u);
v3 = *(_QWORD *)(v2 + 432);
v4 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, 0);
cocos2d::CCDictionary::setObject(v3, v4, Block);
if ( v15 > 0xF )
{
v5 = Block[0];
if ( v15 + 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);
}
ButtonSprite::setString(*(__int64 **)(a1 + 1360), "0");
v6 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v12 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v12);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v6 = qword_14090BFD0;
}
*(_OWORD *)Block = 0;
v14 = 3;
v15 = 15;
LODWORD(Block[0]) = 6256231;
sub_140044D80(Block, "0139", 4u);
v7 = *(_QWORD *)(v6 + 432);
v8 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, 0);
cocos2d::CCDictionary::setObject(v7, v8, Block);
if ( v15 > 0xF )
{
v9 = Block[0];
if ( v15 + 1 >= 0x1000 )
{
v9 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v9 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v9);
}
return ButtonSprite::setString(*(__int64 **)(a1 + 1368), "0");
}