//
// EditorUI::setupViewMenu from 0xbfefb4 to 0xbffe8c (3800 bytes)
//
// 2 xrefs:
// > EditorUI::init @ 0x7cfed4
// > ??> @ 0x4aed8
//
// 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:48 +0000
//
__int64 __fastcall EditorUI::setupViewMenu(EditorUI *this)
{
cocos2d::CCDirector *v2; // x0
cocos2d::CCDictionary *WinSize; // x0
cocos2d::CCObject *v4; // x0
cocos2d::CCArray *v5; // x0
cocos2d::CCArray *v6; // x23
cocos2d::CCDirector *v7; // x0
float v8; // s8
cocos2d::CCDirector *v9; // x0
float v10; // s0
_QWORD *v11; // x0
__int64 v13; // [xsp+68h] [xbp+68h] BYREF
_BYTE v14[8]; // [xsp+70h] [xbp+70h] BYREF
__int64 v15; // [xsp+78h] [xbp+78h] BYREF
__int64 v16; // [xsp+80h] [xbp+80h]
void *v17; // [xsp+88h] [xbp+88h]
__int64 v18; // [xsp+90h] [xbp+90h] BYREF
__int64 v19; // [xsp+98h] [xbp+98h]
void *v20; // [xsp+A0h] [xbp+A0h]
v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard);
WinSize = (cocos2d::CCDictionary *)cocos2d::CCDirector::getWinSize(&v13, v2);
v4 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(WinSize);
*((_QWORD *)this + 172) = v4;
v5 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v4);
v6 = (cocos2d::CCArray *)cocos2d::CCArray::create(v5);
v15 = 0;
v16 = 0;
v17 = nullptr;
std::string::__init(&v15, "edit_previewModeBtn_001.png", 0x1Bu);
v18 = 0;
v19 = 0;
v20 = nullptr;
std::string::__init(&v18, "0036", 4u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 0.0, -2.0);
EditorUI::createViewButton((__int64)this, (__int64)&v15, 9u, (__int64)&v18, (cocos2d::CCPoint *)v14, v6, 1.3);
if ( (v18 & 1) != 0 )
operator delete(v20);
if ( (v15 & 1) != 0 )
operator delete(v17);
v15 = 0;
v16 = 0;
v17 = nullptr;
std::string::__init(&v15, "edit_hitboxesBtn_001.png", 0x18u);
v18 = 0;
v19 = 0;
v20 = nullptr;
std::string::__init(&v18, "0045", 4u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 0.0, -2.0);
EditorUI::createViewButton((__int64)this, (__int64)&v15, 0xBu, (__int64)&v18, (cocos2d::CCPoint *)v14, v6, 1.3);
if ( (v18 & 1) != 0 )
operator delete(v20);
if ( (v15 & 1) != 0 )
operator delete(v17);
v15 = 0;
v16 = 0;
v17 = nullptr;
std::string::__init(&v15, "edit_showHiddenBtn_001.png", 0x1Au);
v18 = 0;
v19 = 0;
v20 = nullptr;
std::string::__init(&v18, "0121", 4u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 0.0, -2.0);
EditorUI::createViewButton((__int64)this, (__int64)&v15, 0xAu, (__int64)&v18, (cocos2d::CCPoint *)v14, v6, 1.3);
if ( (v18 & 1) != 0 )
operator delete(v20);
if ( (v15 & 1) != 0 )
operator delete(v17);
v15 = 0;
v16 = 0;
v17 = nullptr;
std::string::__init(&v15, "edit_LDMBtn_001.png", 0x13u);
v18 = 0;
v19 = 0;
v20 = nullptr;
std::string::__init(&v18, "0209", 4u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 0.0, -2.0);
EditorUI::createViewButton((__int64)this, (__int64)&v15, 0x14u, (__int64)&v18, (cocos2d::CCPoint *)v14, v6, 1.3);
if ( (v18 & 1) != 0 )
operator delete(v20);
if ( (v15 & 1) != 0 )
operator delete(v17);
v15 = 0;
v16 = 0;
v17 = nullptr;
std::string::__init(&v15, "edit_animsBtn_001.png", 0x15u);
v18 = 0;
v19 = 0;
v20 = nullptr;
std::string::__init(&v18, "0118", 4u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 0.0, -1.5);
EditorUI::createViewButton((__int64)this, (__int64)&v15, 8u, (__int64)&v18, (cocos2d::CCPoint *)v14, v6, 1.35);
if ( (v18 & 1) != 0 )
operator delete(v20);
if ( (v15 & 1) != 0 )
operator delete(v17);
v15 = 0;
v16 = 0;
v17 = nullptr;
std::string::__init(&v15, "edit_particlesBtn_001.png", 0x19u);
v18 = 0;
v19 = 0;
v20 = nullptr;
std::string::__init(&v18, "0117", 4u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 0.0, -2.0);
EditorUI::createViewButton((__int64)this, (__int64)&v15, 7u, (__int64)&v18, (cocos2d::CCPoint *)v14, v6, 1.3);
if ( (v18 & 1) != 0 )
operator delete(v20);
if ( (v15 & 1) != 0 )
operator delete(v17);
v15 = 0;
v16 = 0;
v17 = nullptr;
std::string::__init(&v15, "edit_shadersBtn_001.png", 0x17u);
v18 = 0;
v19 = 0;
v20 = nullptr;
std::string::__init(&v18, "0158", 4u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 0.0, -2.0);
EditorUI::createViewButton((__int64)this, (__int64)&v15, 6u, (__int64)&v18, (cocos2d::CCPoint *)v14, v6, 1.3);
if ( (v18 & 1) != 0 )
operator delete(v20);
if ( (v15 & 1) != 0 )
operator delete(v17);
v15 = 0;
v16 = 0;
v17 = nullptr;
std::string::__init(&v15, "edit_groundBtn_001.png", 0x16u);
v18 = 0;
v19 = 0;
v20 = nullptr;
std::string::__init(&v18, "0037", 4u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 0.0, -2.0);
EditorUI::createViewButton((__int64)this, (__int64)&v15, 5u, (__int64)&v18, (cocos2d::CCPoint *)v14, v6, 1.3);
if ( (v18 & 1) != 0 )
operator delete(v20);
if ( (v15 & 1) != 0 )
operator delete(v17);
v15 = 0;
v16 = 0;
v17 = nullptr;
std::string::__init(&v15, "edit_objInfoBtn_001.png", 0x17u);
v18 = 0;
v19 = 0;
v20 = nullptr;
std::string::__init(&v18, "0041", 4u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 0.0, -2.0);
EditorUI::createViewButton((__int64)this, (__int64)&v15, 4u, (__int64)&v18, (cocos2d::CCPoint *)v14, v6, 1.3);
if ( (v18 & 1) != 0 )
operator delete(v20);
if ( (v15 & 1) != 0 )
operator delete(v17);
v15 = 0;
v16 = 0;
v17 = nullptr;
std::string::__init(&v15, "edit_gridBtn_001.png", 0x14u);
v18 = 0;
v19 = 0;
v20 = nullptr;
std::string::__init(&v18, "0038", 4u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 0.0, -2.0);
EditorUI::createViewButton((__int64)this, (__int64)&v15, 3u, (__int64)&v18, (cocos2d::CCPoint *)v14, v6, 1.3);
if ( (v18 & 1) != 0 )
operator delete(v20);
if ( (v15 & 1) != 0 )
operator delete(v17);
v15 = 0;
v16 = 0;
v17 = nullptr;
std::string::__init(&v15, "edit_selectFilterBtn_001.png", 0x1Cu);
v18 = 0;
v19 = 0;
v20 = nullptr;
std::string::__init(&v18, "0064", 4u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 0.0, -2.0);
EditorUI::createViewButton((__int64)this, (__int64)&v15, 2u, (__int64)&v18, (cocos2d::CCPoint *)v14, v6, 1.3);
if ( (v18 & 1) != 0 )
operator delete(v20);
if ( (v15 & 1) != 0 )
operator delete(v17);
v15 = 0;
v16 = 0;
v17 = nullptr;
std::string::__init(&v15, "edit_ignoreDamageBtn_001.png", 0x1Cu);
v18 = 0;
v19 = 0;
v20 = nullptr;
std::string::__init(&v18, "0009", 4u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 0.0, -2.0);
EditorUI::createViewButton((__int64)this, (__int64)&v15, 1u, (__int64)&v18, (cocos2d::CCPoint *)v14, v6, 1.3);
if ( (v18 & 1) != 0 )
operator delete(v20);
if ( (v15 & 1) != 0 )
operator delete(v17);
v15 = 0;
v16 = 0;
v17 = nullptr;
std::string::__init(&v15, "edit_effectLinesBtn_001.png", 0x1Bu);
v18 = 0;
v19 = 0;
v20 = nullptr;
std::string::__init(&v18, "0043", 4u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 0.0, -2.0);
EditorUI::createViewButton((__int64)this, (__int64)&v15, 0xCu, (__int64)&v18, (cocos2d::CCPoint *)v14, v6, 1.3);
if ( (v18 & 1) != 0 )
operator delete(v20);
if ( (v15 & 1) != 0 )
operator delete(v17);
v15 = 0;
v16 = 0;
v17 = nullptr;
std::string::__init(&v15, "edit_durationLinesBtn_001.png", 0x1Du);
v18 = 0;
v19 = 0;
v20 = nullptr;
std::string::__init(&v18, "0058", 4u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 0.0, -2.0);
EditorUI::createViewButton((__int64)this, (__int64)&v15, 0xDu, (__int64)&v18, (cocos2d::CCPoint *)v14, v6, 1.3);
if ( (v18 & 1) != 0 )
operator delete(v20);
if ( (v15 & 1) != 0 )
operator delete(v17);
v15 = 0;
v16 = 0;
v17 = nullptr;
std::string::__init(&v15, "edit_songLinesBtn_001.png", 0x19u);
v18 = 0;
v19 = 0;
v20 = nullptr;
std::string::__init(&v18, &byte_11B8890, 0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 0.0, -2.0);
EditorUI::createViewButton((__int64)this, (__int64)&v15, 0xEu, (__int64)&v18, (cocos2d::CCPoint *)v14, v6, 1.3);
if ( (v18 & 1) != 0 )
operator delete(v20);
if ( (v15 & 1) != 0 )
operator delete(v17);
v15 = 0;
v16 = 0;
v17 = nullptr;
std::string::__init(&v15, "edit_bpmLinesBtn_001.png", 0x18u);
v18 = 0;
v19 = 0;
v20 = nullptr;
std::string::__init(&v18, &byte_11B8890, 0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 0.0, -2.0);
EditorUI::createViewButton((__int64)this, (__int64)&v15, 0xFu, (__int64)&v18, (cocos2d::CCPoint *)v14, v6, 1.3);
if ( (v18 & 1) != 0 )
operator delete(v20);
if ( (v15 & 1) != 0 )
operator delete(v17);
v15 = 0;
v16 = 0;
v17 = nullptr;
std::string::__init(&v15, "edit_keyframeLinesBtn_001.png", 0x1Du);
v18 = 0;
v19 = 0;
v20 = nullptr;
std::string::__init(&v18, "0182", 4u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 0.0, -2.0);
EditorUI::createViewButton((__int64)this, (__int64)&v15, 0xFFFFFFF0, (__int64)&v18, (cocos2d::CCPoint *)v14, v6, 1.3);
if ( (v18 & 1) != 0 )
operator delete(v20);
if ( (v15 & 1) != 0 )
operator delete(v17);
v15 = 0;
v16 = 0;
v17 = nullptr;
std::string::__init(&v15, "deathMarker_x_white_001.png", 0x1Bu);
v18 = 0;
v19 = 0;
v20 = nullptr;
std::string::__init(&v18, &byte_11B8890, 0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 0.0, 0.0);
EditorUI::createViewButton((__int64)this, (__int64)&v15, 0x11u, (__int64)&v18, (cocos2d::CCPoint *)v14, v6, 0.6);
if ( (v18 & 1) != 0 )
operator delete(v20);
if ( (v15 & 1) != 0 )
operator delete(v17);
v15 = 0;
v16 = 0;
v17 = nullptr;
std::string::__init(&v15, "deathMarker_red_global_001.png", 0x1Eu);
v18 = 0;
v19 = 0;
v20 = nullptr;
std::string::__init(&v18, &byte_11B8890, 0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 0.0, 0.0);
EditorUI::createViewButton((__int64)this, (__int64)&v15, 0x12u, (__int64)&v18, (cocos2d::CCPoint *)v14, v6, 0.6);
if ( (v18 & 1) != 0 )
operator delete(v20);
if ( (v15 & 1) != 0 )
operator delete(v17);
v15 = 0;
v16 = 0;
v17 = nullptr;
std::string::__init(&v15, "deathMarker_bg_001.png", 0x16u);
v18 = 0;
v19 = 0;
v20 = nullptr;
std::string::__init(&v18, &byte_11B8890, 0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 0.0, 0.0);
EditorUI::createViewButton((__int64)this, (__int64)&v15, 0x13u, (__int64)&v18, (cocos2d::CCPoint *)v14, v6, 0.6);
if ( (v18 & 1) != 0 )
operator delete(v20);
if ( (v15 & 1) != 0 )
operator delete(v17);
v15 = 0;
v16 = 0;
v17 = nullptr;
std::string::__init(&v15, "edit_traceInBtn_001.png", 0x17u);
v18 = 0;
v19 = 0;
v20 = nullptr;
std::string::__init(&v18, &byte_11B8890, 0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 0.0, -2.0);
EditorUI::createViewButton((__int64)this, (__int64)&v15, 0x15u, (__int64)&v18, (cocos2d::CCPoint *)v14, v6, 1.3);
if ( (v18 & 1) != 0 )
operator delete(v20);
if ( (v15 & 1) != 0 )
operator delete(v17);
v15 = 0;
v16 = 0;
v17 = nullptr;
std::string::__init(&v15, "edit_traceOutBtn_001.png", 0x18u);
v18 = 0;
v19 = 0;
v20 = nullptr;
std::string::__init(&v18, &byte_11B8890, 0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 0.0, -2.0);
EditorUI::createViewButton((__int64)this, (__int64)&v15, 0x16u, (__int64)&v18, (cocos2d::CCPoint *)v14, v6, 1.3);
if ( (v18 & 1) != 0 )
operator delete(v20);
v7 = (cocos2d::CCDirector *)(unsigned __int8)v15;
if ( (v15 & 1) != 0 )
operator delete(v17);
v8 = *(float *)&v13 * 0.5;
v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7);
cocos2d::CCDirector::getScreenBottom(v9);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, v8, (float)(v10 + *((float *)this + 214)) - 6.0);
v11 = EditButtonBar::create(v6, (const cocos2d::CCPoint *)v14, 0, 0, 11, 2);
*((_QWORD *)this + 173) = v11;
(*(void (__fastcall **)(EditorUI *, _QWORD *, __int64))(*(_QWORD *)this + 464LL))(this, v11, 10);
EditorUI::updateViewButtons(this);
return _stack_chk_guard;
}