//
// InfoLayer::getSpriteButton from 0x53cbc0 to 0x53cc60 (160 bytes)
//
// 5 xrefs:
// > InfoLayer::init @ 0x53fc66
// > InfoLayer::init @ 0x53fce6
// > InfoLayer::init @ 0x53fd2e
// > InfoLayer::init @ 0x53fd7e
// > InfoLayer::init @ 0x53fdd6
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:15 +0000
//
_DWORD *__fastcall InfoLayer::getSpriteButton(
int a1,
cocos2d::CCSprite *a2,
int a3,
int a4,
int a5,
int a6,
const cocos2d::CCPoint *a7)
{
ButtonSprite *v8; // r0
ButtonSprite *v9; // r8
_DWORD *v10; // r5
float v12; // [sp+14h] [bp-20h]
_BYTE v15[8]; // [sp+24h] [bp-10h] BYREF
v8 = (ButtonSprite *)cocos2d::CCSprite::createWithSpriteFrameName(a2, (const char *)a2);
v9 = ButtonSprite::create(v8, (cocos2d::CCSprite *)&dword_20, 0, 32.0, 1.0, 1, "GJ_button_01.png", nullptr, 0.0, v12);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, a7);
ButtonSprite::updateSpriteOffset(v9, (int)v15);
v10 = (_DWORD *)CCMenuItemSpriteExtra::create((int)v9, 0, a1, a3, a4);
(*(void (__fastcall **)(_DWORD *, int))(*v10 + 80))(v10, a6);
v10[79] = a6;
if ( a5 )
(*(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)a5 + 228))(a5, v10);
return v10;
}