//
// EditorUI::getModeBtn from 0x68796c to 0x6879c4 (88 bytes)
//
// 4 xrefs:
// > EditorUI::init @ 0x6bc2e0
// > EditorUI::init @ 0x6bc30c
// > EditorUI::init @ 0x6bc338
// > ??> @ 0x6e490
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
CCMenuItemSpriteExtra *EditorUI::getModeBtn(EditorUI *a1, const char *a2, int a3)
{
cocos2d::CCSprite *v5; // x0
CCMenuItemSpriteExtra *v6; // x19
cocos2d::SEL_MenuHandler v8; // 0:x2.16
v5 = cocos2d::CCSprite::createWithSpriteFrameName(a2);
v8.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v8.adj = (size_t)EditorUI::toggleMode;
v6 = CCMenuItemSpriteExtra::create(v5, nullptr, v8);
v6->setTag(v6, a3);
return v6;
}