//
// EditorUI::setupDeleteMenu from 0xbde78c to 0xbdf234 (2728 bytes)
//
// 2 xrefs:
// > EditorUI::init @ 0x7cfeac
// > ??> @ 0x58948
//
// This function is hookable on this platform (idp: arm, 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 13:03:45 +0000
//
__int64 __fastcall EditorUI::setupDeleteMenu(EditorUI *this)
{
cocos2d::CCDirector *v2; // x0
cocos2d::CCMenu *WinSize; // x0
__int64 v4; // x0
cocos2d::CCDirector **v5; // x22
float v6; // s8
void (__fastcall *v7)(cocos2d::CCDirector **, __int64 *); // x24
cocos2d::CCDirector *v8; // x0
float v9; // s0
float *SpriteButton; // x0
float v11; // s9
cocos2d::CCDirector *v12; // x0
float v13; // s0
cocos2d::CCNode *v14; // x22
cocos2d::CCSprite *v15; // x0
ButtonSprite *v16; // x25
const char *v17; // x1
__int64 v18; // x26
const char *v19; // x1
__int64 v20; // x26
float *v21; // x25
__int64 (__fastcall *v22)(float *, __int64 *); // x26
cocos2d::CCSprite *v23; // x0
ButtonSprite *v24; // x25
const char *v25; // x1
__int64 v26; // x22
__int64 (__fastcall *v27)(__int64, __int64 *); // x26
cocos2d::CCSprite *v28; // x0
__int64 v29; // x0
__int64 v30; // x22
void (__fastcall *v31)(__int64, __int64 *); // x26
float *v32; // x22
void (__fastcall *v33)(float *, __int64 *); // x25
cocos2d::CCNode *v34; // x24
float *v35; // x0
__int64 v36; // x25
void (__fastcall *v37)(__int64, __int64 *); // x26
float *v38; // x0
float *v39; // x0
__int64 v40; // x25
void (__fastcall *v41)(__int64, __int64 *); // x26
const char *v42; // x1
cocos2d::CCSprite *v43; // x25
__int64 v44; // x0
__int64 v45; // x26
float *v46; // x0
__int64 v47; // x23
void (__fastcall *v48)(__int64, __int64 *); // x24
const char *v49; // x1
__int64 v50; // x23
__int64 v51; // x24
cocos2d::CCNode *v52; // x25
__int64 (__fastcall *v53)(__int64, __int64 *); // x23
GameManager *v54; // x0
GameManager *v55; // x0
unsigned int IntGameVariable; // w0
cocos2d::CCString *v57; // x0
ButtonSprite *CString; // x0
const char *v59; // x6
__int64 v60; // x0
__int64 v61; // x26
GameManager *v62; // x0
GameManager *v63; // x0
unsigned int v64; // w0
cocos2d::CCString *v65; // x0
ButtonSprite *v66; // x0
const char *v67; // x6
__int64 v68; // x0
__int64 v69; // x23
void (__fastcall *v70)(__int64, __int64 *); // x24
float *v71; // x23
void (__fastcall *v72)(float *, __int64 *); // x24
float *v73; // x20
void (__fastcall *v74)(float *, __int64 *); // x23
__int64 v76; // [xsp+B0h] [xbp+B0h]
__int64 v77; // [xsp+B0h] [xbp+B0h]
__int64 v78; // [xsp+B0h] [xbp+B0h]
__int64 v79; // [xsp+B0h] [xbp+B0h]
__int64 v80; // [xsp+B0h] [xbp+B0h]
void (__fastcall *v81)(__int64, __int64 *); // [xsp+B8h] [xbp+B8h]
void (__fastcall *v82)(__int64, __int64 *); // [xsp+B8h] [xbp+B8h]
__int64 v83; // [xsp+B8h] [xbp+B8h]
__int64 v84; // [xsp+B8h] [xbp+B8h]
__int64 v85; // [xsp+B8h] [xbp+B8h]
void (__fastcall *v86)(__int64, __int64 *); // [xsp+B8h] [xbp+B8h]
__int64 v87; // [xsp+B8h] [xbp+B8h]
__int64 (__fastcall *v88)(__int64, __int64 *); // [xsp+B8h] [xbp+B8h]
__int64 v89; // [xsp+C0h] [xbp+C0h] BYREF
float v90; // [xsp+C8h] [xbp+C8h] BYREF
float v91; // [xsp+CCh] [xbp+CCh]
__int64 v92; // [xsp+D0h] [xbp+D0h] BYREF
__int64 v93; // [xsp+D8h] [xbp+D8h] BYREF
_BYTE v94[8]; // [xsp+E0h] [xbp+E0h] BYREF
__int64 v95; // [xsp+E8h] [xbp+E8h] BYREF
__int64 v96; // [xsp+F0h] [xbp+F0h] BYREF
v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard);
WinSize = (cocos2d::CCMenu *)cocos2d::CCDirector::getWinSize(&v89, v2);
v4 = cocos2d::CCMenu::create(WinSize);
*((_QWORD *)this + 113) = v4;
(*(void (__fastcall **)(EditorUI *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v4, 2);
v5 = *((cocos2d::CCDirector ***)this + 113);
v6 = *(float *)&v89 * 0.5;
v7 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v5 + 23);
v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v5);
cocos2d::CCDirector::getScreenBottom(v8);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v96, v6, v9 + (float)(*((float *)this + 214) * 0.5));
v7(v5, &v96);
v76 = *((_QWORD *)this + 113);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v96, 0.0, -1.0);
SpriteButton = EditorUI::getSpriteButton(
(__int64)this,
(cocos2d::CCSprite *)"edit_delBtn_001.png",
(__int64)EditorUI::onDeleteSelected,
0,
v76,
4,
(const cocos2d::CCPoint *)&v96,
0.9,
0.0);
*((_QWORD *)this + 154) = SpriteButton;
v11 = (float)(*(float *)&v89 * 0.5) + -5.0;
v12 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)SpriteButton);
cocos2d::CCDirector::getScreenBottom(v12);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v90, v11, (float)(v13 + *((float *)this + 214)) - 6.0);
v14 = *((cocos2d::CCNode **)this + 113);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v96,
(float)((float)((float)(v90 - 108.0) - 10.0) - 18.0) + 18.0,
v91 - 18.0);
cocos2d::CCNode::convertToNodeSpace(&v92, v14, (const cocos2d::CCPoint *)&v96);
v15 = (cocos2d::CCSprite *)(*(__int64 (__fastcall **)(_QWORD, __int64 *))(**((_QWORD **)this + 154) + 184LL))(
*((_QWORD *)this + 154),
&v92);
v16 = (ButtonSprite *)cocos2d::CCSprite::create(v15);
v18 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_deleteAllIcon_001.png", v17);
(*(void (__fastcall **)(ButtonSprite *, __int64))(*(_QWORD *)v16 + 456LL))(v16, v18);
v81 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v18 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v96, 0.0, 8.0);
v81(v18, &v96);
v20 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_eStartPosBtn_001.png", v19);
(*(void (__fastcall **)(ButtonSprite *, __int64))(*(_QWORD *)v16 + 456LL))(v16, v20);
v82 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v20 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v96, 0.0, -8.0);
v82(v20, &v96);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v20 + 160LL))(v20, 0.7);
v77 = *((_QWORD *)this + 113);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v96, 0.0, 0.0);
v21 = EditorUI::getSpriteButton(
(__int64)this,
v16,
(__int64)EditorUI::onDeleteStartPos,
0,
v77,
4,
(const cocos2d::CCPoint *)&v96,
0.9,
0.0);
v22 = *(__int64 (__fastcall **)(float *, __int64 *))(*(_QWORD *)v21 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v95, 40.0, 0.0);
cocos2d::CCPoint::operator+(&v96, &v92);
v23 = (cocos2d::CCSprite *)v22(v21, &v96);
v24 = (ButtonSprite *)cocos2d::CCSprite::create(v23);
v26 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_deleteAllIcon_001.png", v25);
(*(void (__fastcall **)(ButtonSprite *, __int64))(*(_QWORD *)v24 + 456LL))(v24, v26);
v27 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v26 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v96, 0.0, 8.0);
v28 = (cocos2d::CCSprite *)v27(v26, &v96);
v29 = cocos2d::CCSprite::create(v28);
*((_QWORD *)this + 152) = v29;
(*(void (__fastcall **)(ButtonSprite *, __int64))(*(_QWORD *)v24 + 456LL))(v24, v29);
v30 = *((_QWORD *)this + 152);
v31 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v30 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v96, 0.0, -8.0);
v31(v30, &v96);
v78 = *((_QWORD *)this + 113);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v96, 0.0, 0.0);
v32 = EditorUI::getSpriteButton(
(__int64)this,
v24,
(__int64)EditorUI::onDeleteSelectedType,
0,
v78,
4,
(const cocos2d::CCPoint *)&v96,
0.9,
0.0);
*((_QWORD *)this + 155) = v32;
v33 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v32 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v95, 0.0, -40.0);
cocos2d::CCPoint::operator+(&v96, &v92);
v33(v32, &v96);
v34 = *((cocos2d::CCNode **)this + 113);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v96, (float)(v90 + 108.0) + 10.0, v91 - 18.0);
cocos2d::CCNode::convertToNodeSpace(&v93, v34, (const cocos2d::CCPoint *)&v96);
v83 = *((_QWORD *)this + 113);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v96, (const cocos2d::CCPoint *)&unk_155EAB0);
v35 = EditorUI::getSpriteButton(
(__int64)this,
(cocos2d::CCSprite *)"deleteFilter_none_001.png",
(__int64)EditorUI::onUpdateDeleteFilter,
0,
v83,
4,
(const cocos2d::CCPoint *)&v96,
0.9,
0.0);
*((_QWORD *)this + 156) = v35;
(*(void (__fastcall **)(float *, _QWORD))(*(_QWORD *)v35 + 72LL))(v35, 0);
v36 = *((_QWORD *)this + 156);
v37 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v36 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v95, -40.0, 0.0);
cocos2d::CCPoint::operator+(&v96, &v93);
v37(v36, &v96);
v84 = *((_QWORD *)this + 113);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v96, (const cocos2d::CCPoint *)&unk_155EAB0);
v38 = EditorUI::getSpriteButton(
(__int64)this,
(cocos2d::CCSprite *)"deleteFilter_static_001.png",
(__int64)EditorUI::onUpdateDeleteFilter,
0,
v84,
4,
(const cocos2d::CCPoint *)&v96,
0.9,
0.0);
*((_QWORD *)this + 157) = v38;
(*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v38 + 72LL))(v38, 2);
(*(void (__fastcall **)(_QWORD, __int64 *))(**((_QWORD **)this + 157) + 184LL))(*((_QWORD *)this + 157), &v93);
v85 = *((_QWORD *)this + 113);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v96, (const cocos2d::CCPoint *)&unk_155EAB0);
v39 = EditorUI::getSpriteButton(
(__int64)this,
(cocos2d::CCSprite *)"deleteFilter_details_001.png",
(__int64)EditorUI::onUpdateDeleteFilter,
0,
v85,
4,
(const cocos2d::CCPoint *)&v96,
0.9,
0.0);
*((_QWORD *)this + 158) = v39;
(*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v39 + 72LL))(v39, 1);
v40 = *((_QWORD *)this + 158);
v41 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v40 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v95, -40.0, -40.0);
cocos2d::CCPoint::operator+(&v96, &v93);
v41(v40, &v96);
v43 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"deleteFilter_custom_001.png",
v42);
v44 = cocos2d::CCSprite::create(v43);
*((_QWORD *)this + 153) = v44;
(*(void (__fastcall **)(cocos2d::CCSprite *, __int64, __int64))(*(_QWORD *)v43 + 464LL))(v43, v44, 0xFFFFFFFFLL);
v45 = *((_QWORD *)this + 153);
v86 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v45 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v95, 0.0, -4.0);
cocos2d::CCNode::convertToNodeSpace(&v96, v43, (const cocos2d::CCPoint *)&v95);
v86(v45, &v96);
v87 = *((_QWORD *)this + 113);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v96, (const cocos2d::CCPoint *)&unk_155EAB0);
v46 = EditorUI::getSpriteButton(
(__int64)this,
v43,
(__int64)EditorUI::onUpdateDeleteFilter,
0,
v87,
4,
(const cocos2d::CCPoint *)&v96,
0.9,
0.0);
*((_QWORD *)this + 159) = v46;
(*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v46 + 72LL))(v46, 3);
v47 = *((_QWORD *)this + 159);
v48 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v47 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v95, 0.0, -40.0);
cocos2d::CCPoint::operator+(&v96, &v93);
v48(v47, &v96);
v50 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_infoIcon_001.png", v49);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v50 + 160LL))(v50, 0.6);
v51 = CCMenuItemSpriteExtra::create(v50, 0, (__int64)this, (__int64)EditorUI::onDeleteInfo, 0);
CCMenuItemSpriteExtra::setSizeMult(v51, 1.5);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 113) + 456LL))(*((_QWORD *)this + 113), v51);
v52 = *((cocos2d::CCNode **)this + 113);
v53 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v51 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v94, 160.0, -8.0);
cocos2d::CCPoint::operator+(&v95, &v90);
cocos2d::CCNode::convertToNodeSpace(&v96, v52, (const cocos2d::CCPoint *)&v95);
v54 = (GameManager *)v53(v51, &v96);
v55 = (GameManager *)GameManager::sharedState(v54);
IntGameVariable = GameManager::getIntGameVariable(v55, "0133");
v57 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)IntGameVariable);
CString = (ButtonSprite *)cocos2d::CCString::getCString(v57);
v60 = ButtonSprite::create(CString, (const char *)&off_18, 0, 1, 0.8, "bigFont.fnt", "GJ_button_04.png", v59, 40.0);
*((_QWORD *)this + 164) = v60;
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v60 + 160LL))(v60, 0.9);
v61 = CCMenuItemSpriteExtra::create(*((_QWORD *)this + 164), 0, (__int64)this, (__int64)EditorUI::onGroupIDFilter, 0);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 113) + 456LL))(*((_QWORD *)this + 113), v61);
v88 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v61 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v95, -80.0, 0.0);
cocos2d::CCPoint::operator+(&v96, &v93);
v62 = (GameManager *)v88(v61, &v96);
v63 = (GameManager *)GameManager::sharedState(v62);
v64 = GameManager::getIntGameVariable(v63, "0139");
v65 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v64);
v66 = (ButtonSprite *)cocos2d::CCString::getCString(v65);
v68 = ButtonSprite::create(v66, (const char *)&off_18, 0, 1, 0.8, "bigFont.fnt", "GJ_button_04.png", v67, 40.0);
*((_QWORD *)this + 165) = v68;
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v68 + 160LL))(v68, 0.9);
v69 = CCMenuItemSpriteExtra::create(*((_QWORD *)this + 165), 0, (__int64)this, (__int64)EditorUI::onColorFilter, 0);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 113) + 456LL))(*((_QWORD *)this + 113), v69);
v70 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v69 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v95, -80.0, -40.0);
cocos2d::CCPoint::operator+(&v96, &v93);
v70(v69, &v96);
v79 = *((_QWORD *)this + 113);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v96, 0.0, -1.0);
v71 = EditorUI::getSpriteButton(
(__int64)this,
(cocos2d::CCSprite *)"edit_delBtn_001.png",
(__int64)EditorUI::onResetSpecialFilter,
0,
v79,
4,
(const cocos2d::CCPoint *)&v96,
0.9,
0.0);
v72 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v71 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v95, -120.0, -40.0);
cocos2d::CCPoint::operator+(&v96, &v93);
v72(v71, &v96);
v80 = *((_QWORD *)this + 113);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v96, 0.0, -1.0);
v73 = EditorUI::getSpriteButton(
(__int64)this,
(cocos2d::CCSprite *)"edit_findBtn_001.png",
(__int64)EditorUI::onFindObject,
0,
v80,
4,
(const cocos2d::CCPoint *)&v96,
0.9,
0.0);
v74 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v73 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v95, -120.0, 0.0);
cocos2d::CCPoint::operator+(&v96, &v93);
v74(v73, &v96);
return _stack_chk_guard;
}