//
// EditorUI::getSimpleButton from 0x7c108c to 0x7c1188 (252 bytes)
//
// 1 xrefs:
// > ??> @ 0xe8960
//
// 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 12:54:06 +0000
//
__int64 __fastcall EditorUI::getSimpleButton(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5)
{
cocos2d::CCSprite *v8; // x0
__int64 v10; // x19
void (__fastcall *v11)(__int64, long double); // x24
float v12; // s9
float v13; // s0
__int64 (__fastcall *v14)(__int64); // x1
long double v15; // q0
__int64 v16; // x19
v8 = (cocos2d::CCSprite *)(a2 + 1);
if ( (*(_BYTE *)a2 & 1) != 0 )
v8 = *(cocos2d::CCSprite **)(a2 + 16);
v10 = cocos2d::CCSprite::createWithSpriteFrameName(v8, (const char *)a2);
v11 = *(void (__fastcall **)(__int64, long double))(*(_QWORD *)v10 + 160LL);
v12 = 18.0 / *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 328LL))(v10);
v13 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 328LL))(v10) + 4);
v14 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 328LL);
if ( v12 <= (float)(18.0 / v13) )
*(float *)&v15 = 18.0 / *(float *)v14(v10);
else
*(float *)&v15 = 18.0 / *(float *)(v14(v10) + 4);
v11(v10, v15);
v16 = CCMenuItemSpriteExtra::create(v10, 0, a1, a3, a4);
if ( a5 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a5 + 456LL))(a5, v16);
return v16;
}