//
// InfoLayer::getSpriteButton from 0x1402bc9b0 to 0x1402bcaeb (315 bytes)
//
// 5 xrefs:
// > InfoLayer::init @ 0x1402bc19f
// > InfoLayer::init @ 0x1402bc1f0
// > InfoLayer::init @ 0x1402bc256
// > InfoLayer::init @ 0x1402bc2b7
// > ??> @ 0x1406d27e0
//
// 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
//
// Hidden C++ exception states: #wind=1
CCMenuItemSpriteExtra *InfoLayer::getSpriteButton(
InfoLayer *a1,
const char *a2,
cocos2d::SEL_MenuHandler *a3,
cocos2d::CCMenu *a4,
float a5,
cocos2d::CCPoint a6)
{
cocos2d::CCSprite *v9; // rsi
ButtonSprite *v10; // rbx
int v11; // r9d
__int64 v12; // rax
CCMenuItemSpriteExtra *v13; // rbx
float v14; // xmm6_4
bool v16; // [rsp+30h] [rbp-48h]
ButtonSprite *v17; // [rsp+98h] [rbp+20h] BYREF
v9 = cocos2d::CCSprite::createWithSpriteFrameName(a2);
v17 = (ButtonSprite *)operator new(0x2C0u);
v10 = ButtonSprite::ButtonSprite(v17);
if ( v10 )
{
if ( ButtonSprite::init(v10, v9, 32, v11, 32.0, 1.0, v16, "GJ_button_01.png", 0) )
{
cocos2d::CCObject::autorelease(v10);
}
else
{
((void (__fastcall *)(ButtonSprite *, __int64))v10->~ButtonSprite)(v10, 1);
v10 = nullptr;
}
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v17);
cocos2d::CCPoint::operator=(&v10->m_spritePosition, v12);
ButtonSprite::updateSpriteBGSize(v10);
v13 = CCMenuItemSpriteExtra::create(v10, nullptr, a1, a3);
v14 = a5;
((void (__fastcall *)(CCMenuItemSpriteExtra *))v13->setScale_0)(v13);
*((float *)&v13->m_pDisabledImage + 1) = v14;
if ( a4 )
a4->addChild_1(a4, v13);
return v13;
}