//
// EditorUI::getCreateMenuItemButton from 0x100474c4c to 0x100474d48 (252 bytes)
//
// 4 xrefs:
// > EditorUI::createCustomItems @ 0x100184a00
// > EditorUI::createCustomItems @ 0x100184a50
// > EditorUI::createCustomItems @ 0x100184aa0
// > EditorUI::createCustomItems @ 0x100184af0
//
// 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 11:05:40 +0000
//
float *__fastcall EditorUI::getCreateMenuItemButton(
__int64 a1,
__int64 a2,
__int64 a3,
__int64 a4,
__int64 a5,
int a6,
double *a7,
float a8)
{
const char *v14; // x4
void *v15; // x24
float *v16; // x21
__int64 v18; // [xsp+8h] [xbp-48h] BYREF
if ( (unsigned int)(a6 - 2) > 4 )
v14 = "GJ_button_01.png";
else
v14 = off_10096D770[a6 - 2];
v15 = ButtonSprite::create(a2, 32, 0, 1, (__int64)v14, 1, 32.0, 1.0, 0.0);
v16 = (float *)CreateMenuItem::create((__int64)v15, 0, a1, a3, a4);
(*(void (__fastcall **)(float *, float))(*(_QWORD *)v16 + 160LL))(v16, a8);
v16[101] = a8;
if ( a5 )
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)a5 + 456LL))(a5, v16);
sub_1000262F4(&v18, a7);
sub_1000687DC((__int64)v15, (double *)&v18);
return v16;
}