//
// RateStarsLayer::getStarsButton from 0x455a5c to 0x455ac8 (108 bytes)
//
// 1 xrefs:
// > RateStarsLayer::init @ 0x455c74
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
CCMenuItemSpriteExtra *RateStarsLayer::getStarsButton(
RateStarsLayer *a1,
int a2,
cocos2d::SEL_MenuHandler a3,
cocos2d::CCMenu *a4,
float a5)
{
cocos2d::CCString *v6; // r0
ButtonSprite *CString; // r0
ButtonSprite *v8; // r0
CCMenuItemSpriteExtra *v9; // r4
void (__cdecl *ptr)(cocos2d::CCObject *); // [sp+10h] [bp-8h]
unsigned int v12; // [sp+10h] [bp-8h]
ptr = a3.ptr;
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)a2);
CString = (ButtonSprite *)cocos2d::CCString::getCString(v6);
v8 = ButtonSprite::create(
CString,
(const char *)&dword_14,
0,
0.5,
1,
"bigFont.fnt",
"GJ_button_01.png",
(const char *)0x41F00000,
*(float *)&ptr);
v9 = CCMenuItemSpriteExtra::create(v8, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(v12, (unsigned int)a1));
((void (__fastcall *)(CCMenuItemSpriteExtra *, _DWORD))v9->setScale)(v9, LODWORD(a5));
v9->m_baseScale = a5;
if ( a4 )
a4->addChild(a4, v9);
return v9;
}