//
// EditorUI::onGroupIDFilter from 0x1401b1550 to 0x1401b176e (542 bytes)
//
// 3 xrefs:
// > EditorUI::handleEditorAction @ 0x1401c3ace
// > EditorUI::setupDeleteMenu @ 0x1401f4ce0
// > ??> @ 0x140919f40
//
// 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=4
__int64 __fastcall EditorUI::onGroupIDFilter(__int64 a1)
{
__int64 v2; // rbx
cocos2d::CCString *v3; // rax
int v4; // ebx
void *v5; // r8
_QWORD *v6; // rbx
__int64 v7; // rcx
char v9[16]; // [rsp+50h] [rbp-29h] BYREF
__int64 v10; // [rsp+60h] [rbp-19h]
__int64 v11; // [rsp+68h] [rbp-11h]
__int128 v12; // [rsp+70h] [rbp-9h] BYREF
__int64 v13; // [rsp+80h] [rbp+7h]
__int64 v14; // [rsp+88h] [rbp+Fh]
__int128 *v15; // [rsp+90h] [rbp+17h]
char *v16; // [rsp+98h] [rbp+1Fh]
void *v17; // [rsp+A0h] [rbp+27h]
void *Block[2]; // [rsp+A8h] [rbp+2Fh] BYREF
__int64 v19; // [rsp+B8h] [rbp+3Fh]
unsigned __int64 v20; // [rsp+C0h] [rbp+47h]
v15 = &v12;
v16 = v9;
v12 = 0;
v13 = 2;
v14 = 15;
strcpy((char *)&v12, "OK");
v9[15] = 0;
v10 = 14;
v11 = 15;
strcpy(v9, "GroupID Filter");
v2 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v17 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v17);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v2 = qword_14090BFD0;
}
*(_OWORD *)Block = 0;
v19 = 3;
v20 = 15;
LODWORD(Block[0]) = 6256231;
sub_140044D80(Block, "0133", 4u);
v3 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v2 + 432), Block);
v4 = cocos2d::CCString::intValue(v3);
if ( v20 > 0xF )
{
v5 = Block[0];
if ( v20 + 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);
}
v6 = (_QWORD *)SetIDPopup::create(v4, 0, 9999, (unsigned int)v9, (__int64)&v12, 1, 0, 0, 1);
(*(void (__fastcall **)(_QWORD *, __int64))(*v6 + 64LL))(v6, 1);
v7 = a1 + 456;
if ( !a1 )
v7 = 0;
v6[87] = v7;
return (*(__int64 (__fastcall **)(_QWORD *))(*v6 + 1064LL))(v6);
}