//
// EditorUI::getCreateMenuItemButton from 0x10000da50 to 0x10000db39 (233 bytes)
//
// 4 xrefs:
// > EditorUI::createCustomItems @ 0x1006386ee
// > EditorUI::createCustomItems @ 0x100638741
// > EditorUI::createCustomItems @ 0x100638794
// > EditorUI::createCustomItems @ 0x1006387eb
//
// 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:18:50 +0000
//
float *__fastcall EditorUI::getCreateMenuItemButton(
__int64 a1,
__int64 a2,
__int64 a3,
__int64 a4,
__int64 a5,
int a6,
float a7,
__int64 a8)
{
unsigned int v11; // r9d
const char *v12; // r8
__int64 v13; // r14
float *v14; // r15
_BYTE v16[8]; // [rsp+Ch] [rbp-34h] BYREF
float v17; // [rsp+14h] [rbp-2Ch]
v17 = a7;
v11 = a6 - 2;
if ( v11 > 4 )
v12 = "GJ_button_01.png";
else
v12 = off_100AB5540[v11];
v13 = ButtonSprite::create(a2, 32, 0, 1, v12, 1, 32.0, 1.0, 0.0);
v14 = (float *)CreateMenuItem::create(v13, 0, a1, a3, a4);
(*(void (__fastcall **)(float *, float))(*(_QWORD *)v14 + 160LL))(v14, v17);
v14[101] = v17;
if ( a5 )
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)a5 + 456LL))(a5, v14);
sub_1002782D0(v16, a8);
ButtonSprite::updateSpriteOffset(v13, v16);
return v14;
}