//
// InfoLayer::getSpriteButton from 0x1403cffc0 to 0x1403d010a (330 bytes)
//
// 6 xrefs:
// > InfoLayer::init @ 0x1403cf434
// > InfoLayer::init @ 0x1403cf489
// > InfoLayer::init @ 0x1403cf4f1
// > InfoLayer::init @ 0x1403cf555
// > InfoLayer::init @ 0x1403cf619
// > ??> @ 0x140924674
//
// This function is hookable on this platform (idp: pc, 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:31:34 +0000
//
// Hidden C++ exception states: #wind=1
cocos2d::CCObject *__fastcall InfoLayer::getSpriteButton(
int a1,
const char *a2,
__int64 a3,
__int64 a4,
int a5,
const struct cocos2d::CCPoint *a6)
{
struct cocos2d::CCSprite *v9; // rsi
cocos2d::CCObject *v10; // rbx
__int64 v11; // r9
__int64 v12; // rax
cocos2d::CCObject *v13; // rbx
int v14; // xmm6_4
__int64 v16; // [rsp+30h] [rbp-48h]
void *v17; // [rsp+98h] [rbp+20h] BYREF
v9 = cocos2d::CCSprite::createWithSpriteFrameName(a2);
v17 = operator new(0x2C8u);
v10 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v17);
if ( v10 )
{
if ( ButtonSprite::init((__int64 *)v10, (__int64)v9, 32, v11, 32.0, 1065353216, v16, "GJ_button_01.png", 0, 0) )
{
cocos2d::CCObject::autorelease(v10);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v10 + 8LL))(v10, 1);
v10 = nullptr;
}
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v17, a6);
cocos2d::CCPoint::operator=((char *)v10 + 672, v12);
ButtonSprite::updateSpriteBGSize((__int64 *)v10);
v13 = CCMenuItemSpriteExtra::create((int)v10, 0, a1, a3);
v14 = a5;
(*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v13 + 160LL))(v13);
*((_DWORD *)v13 + 101) = v14;
if ( a4 )
(*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)a4 + 464LL))(a4, v13);
return v13;
}