//
// EditorUI::getSimpleButton from 0x10000d970 to 0x10000da50 (224 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:18:50 +0000
//
__int64 __fastcall EditorUI::getSimpleButton(__int64 a1, __int64 a2, __int64 a3, __int64 a4, _QWORD *a5)
{
__int64 v7; // rsi
__int64 v8; // r13
__m128 v9; // xmm0
__int64 v10; // rax
__int64 result; // rax
__int64 v12; // rcx
_QWORD *v13; // rdi
__int64 v14; // rbx
__m128 v15; // [rsp+0h] [rbp-40h]
if ( (*(_BYTE *)a2 & 1) != 0 )
v7 = *(_QWORD *)(a2 + 16);
else
v7 = a2 + 1;
v8 = cocos2d::CCSprite::createWithSpriteFrameName(v7);
v15 = (__m128)*(unsigned int *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 328LL))(v8);
v9 = _mm_div_ps(
(__m128)xmmword_100A03870,
_mm_insert_ps(
v15,
(__m128)*(unsigned int *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 328LL))(v8) + 4),
16));
v10 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 328LL))(v8);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v8 + 160LL))(
v8,
18.0 / *(float *)(v10 + 4LL * (v9.f32[0] > _mm_movehdup_ps(v9).f32[0])));
result = CCMenuItemSpriteExtra::create(v8, 0, a1, a3, a4);
if ( a5 )
{
v12 = *a5;
v13 = a5;
v14 = result;
(*(void (__fastcall **)(_QWORD *, __int64))(v12 + 456))(v13, result);
return v14;
}
return result;
}