//
// EditorUI::menuItemFromObjectString from 0x100185120 to 0x1001852f0 (464 bytes)
//
// 1 xrefs:
// > EditorUI::createCustomItems @ 0x100184960
//
// 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 10:59:50 +0000
//
_DWORD *__fastcall EditorUI::menuItemFromObjectString(__int64 a1, __int64 a2, int a3)
{
__int64 v5; // x21
float v6; // s8
_BOOL4 v7; // w22
__int64 v8; // x0
void *v9; // x22
float32x2_t *v10; // x23
double v11; // d0
_DWORD *v12; // x21
float32x2_t v14; // [xsp+0h] [xbp-70h] BYREF
float32x2_t v15; // [xsp+8h] [xbp-68h] BYREF
void *__p[2]; // [xsp+10h] [xbp-60h] BYREF
__int64 v17; // [xsp+20h] [xbp-50h]
if ( *(char *)(a2 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)a2, *(_QWORD *)(a2 + 8));
}
else
{
*(_OWORD *)__p = *(_OWORD *)a2;
v17 = *(_QWORD *)(a2 + 16);
}
v5 = EditorUI::spriteFromObjectString(a1, (__int64)__p, 1u, 0, 100, 0, 0, 0);
if ( SHIBYTE(v17) < 0 )
operator delete(__p[0]);
v6 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 328LL))(v5);
v7 = v6 <= *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 328LL))(v5) + 4);
v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 328LL))(v5);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v5 + 160LL))(v5, 40.0 / *(float *)(v8 + 4LL * v7));
v9 = ButtonSprite::create(v5, 32, 0, 1, (__int64)"GJ_button_04.png", 0, 32.0, 1.0, 0.0);
v10 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 192LL))(v5);
sub_1000262BC((float *)&v14, 0.0, -1.0);
*(float32x2_t *)&v11 = sub_100026318(v10, &v14, &v15);
(*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v5 + 184LL))(v5, &v15, v11);
v12 = (_DWORD *)CreateMenuItem::create(v9, 0, a1, EditorUI::onCreateButton, 0);
v12[132] = a3;
(*(void (__fastcall **)(_DWORD *, float))(*(_QWORD *)v12 + 160LL))(v12, 0.9);
v12[101] = 1063675494;
sub_1002E74E0(*(_QWORD *)(a1 + 1360), v12);
return v12;
}