//
// InfoLayer::getSpriteButton from 0x100351c8c to 0x100351d70 (228 bytes)
//
// 4 xrefs:
// > InfoLayer::init @ 0x100350c70
// > InfoLayer::init @ 0x100350cb8
// > InfoLayer::init @ 0x100350d14
// > InfoLayer::init @ 0x100350d78
//
// 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 *__fastcall InfoLayer::getSpriteButton(
InfoLayer *a1,
const char *a2,
cocos2d::SEL_MenuHandler a3,
cocos2d::CCMenu *a4,
float a5,
cocos2d::CCPoint a6)
{
__int64 *v6; // x5
__int64 *v7; // x20
size_t adj; // x21
void (__cdecl *ptr)(cocos2d::CCObject *); // x22
cocos2d::CCSprite *v13; // x0
ButtonSprite *v14; // x24
CCMenuItemSpriteExtra *v15; // x20
__int64 v17; // [xsp+8h] [xbp-48h] BYREF
cocos2d::SEL_MenuHandler v18; // 0:x3.16
cocos2d::CCPoint v19; // 0:s0.4,4:s1.4
v7 = v6;
adj = a3.adj;
ptr = a3.ptr;
v13 = cocos2d::CCSprite::createWithSpriteFrameName(a2);
v14 = ButtonSprite::create(v13, 32, 0, 32.0, 1.0, 1, "GJ_button_01.png", 0);
v19.x = sub_1000229B8(&v17, v7);
ButtonSprite::updateSpriteOffset(v14, v19);
v18.ptr = ptr;
v18.adj = adj;
v15 = CCMenuItemSpriteExtra::create(v14, nullptr, a1, v18);
((void (__fastcall *)(CCMenuItemSpriteExtra *, float))v15->setScale)(v15, a5);
v15->m_baseScale = a5;
if ( a4 )
((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a4->addChild)(a4, v15);
return v15;
}