//
// EditorCommandsPopup::addCommandButton from 0x1008dea60 to 0x1008deaff (159 bytes)
//
// 0 xrefs:
//
// 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 12:37:45 +0000
//
__int64 __fastcall EditorCommandsPopup::addCommandButton(__int64 a1, __int64 a2, unsigned int a3)
{
char *v4; // r15
void *v5; // r15
v4 = ButtonSprite::create_1(a2, 0x104u, 0, 1u, (__int64)"bigFont.fnt", (__int64)"GJ_button_04.png", 0.80000001, 32.0);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v4 + 160LL))(v4, 0.5);
v5 = CCMenuItemSpriteExtra::create((__int64)v4, 0, a1, (__int64)EditorCommandsPopup::onCommand, 0);
(*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v5 + 72LL))(v5, a3);
return (*(__int64 (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 1048) + 456LL))(*(_QWORD *)(a1 + 1048), v5);
}