//
// EditorUI::getSpriteButton from 0x100474acc to 0x100474c4c (384 bytes)
//
// 5 xrefs:
// > sub_100186174 @ 0x100186724
// > EditorUI::setupDeleteMenu @ 0x100187068
// > EditorUI::setupDeleteMenu @ 0x100187178
// > EditorUI::setupDeleteMenu @ 0x100187418
// > EditorUI::getSpriteButton_1 @ 0x100470d8c
//
// 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::getSpriteButton(
__int64 a1,
__int64 a2,
__int64 a3,
__int64 a4,
__int64 a5,
int a6,
double *a7,
float a8,
float a9)
{
const char *v17; // x25
double *v18; // x0
float32x2_t v19; // d0
float v20; // s1
__int64 v21; // x1
__int64 v22; // x0
__int64 v23; // x4
__int64 v24; // x5
void *v25; // x24
float *v26; // x21
float32x2_t v28; // [xsp+8h] [xbp-58h] BYREF
if ( (unsigned int)(a6 - 2) > 4 )
v17 = "GJ_button_01.png";
else
v17 = off_10096D770[a6 - 2];
if ( a9 <= 0.0 )
{
v20 = 1.0;
v22 = a2;
v21 = 32;
v23 = (__int64)v17;
v24 = 1;
}
else
{
v18 = (double *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 328LL))(a2);
sub_100026438(&v28, v18);
v19 = vdiv_f32((float32x2_t)0x4200000042000000LL, v28);
if ( v19.f32[0] > v19.f32[1] )
v19.f32[0] = v19.f32[1];
v20 = fminf(v19.f32[0], 1.0);
v21 = (unsigned int)(int)(float)(a9 + -8.0);
v22 = a2;
v23 = (__int64)v17;
v24 = 0;
}
v25 = ButtonSprite::create(v22, v21, 0, 1, v23, v24, 32.0, v20, 0.0);
v26 = (float *)CCMenuItemSpriteExtra::create((__int64)v25, 0, a1, a3, a4);
(*(void (__fastcall **)(float *, float))(*(_QWORD *)v26 + 160LL))(v26, a8);
v26[101] = a8;
if ( a5 )
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)a5 + 456LL))(a5, v26);
sub_1000262F4(&v28, a7);
sub_1000687DC((__int64)v25, (double *)&v28);
return v26;
}