//
// CustomSongWidget::addExtraVisuals from 0x3dd730 to 0x3dd7fa (202 bytes)
//
// 1 xrefs:
// > CustomMusicCell::loadFromObject @ 0x3355c0
//
// 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
//
void CustomSongWidget::addExtraVisuals(CustomSongWidget *a1, bool a2, bool a3)
{
_BOOL4 v3; // r5
const char *v5; // r0
cocos2d::CCSprite *v6; // r8
void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r9
cocos2d::CCNode *v8; // r5
int (__fastcall *getTag)(const cocos2d::CCObject *__hidden); // r2
void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // r8
float v11; // r2
float v12; // r3
cocos2d::CCRect v13; // [sp+Ch] [bp-18h] BYREF
cocos2d::CCSize v14; // 0:^0.8
cocos2d::CCRect v15; // 0:kr00_16.16
v3 = a3;
if ( a2 )
{
if ( a3 )
v5 = "newMusicIcon2_001.png";
else
v5 = "newMusicIcon_001.png";
}
else
{
if ( !a3 )
return;
v5 = "newMusicIcon2_001.png";
}
v6 = cocos2d::CCSprite::createWithSpriteFrameName(v5);
a1->addChild_0(a1, v6, 4);
setPosition = v6->setPosition;
cocos2d::CCPoint::CCPoint(&v13.origin, -157.0, 20.0);
setPosition(v6, &v13.origin);
if ( v3 )
{
cocos2d::CCRect::CCRect(&v13, 0.0, 0.0, 80.0, 80.0);
v15.origin.x = v11;
v15.origin.y = v12;
v15.size = v14;
v8 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create(
(cocos2d::extension::CCScale9Sprite *)"GJ_square07.png",
(const char *)&v13,
v15);
getTag = v8->__vftable[1].getTag;
LOWORD(v13.origin.x) = -256;
BYTE2(v13.origin.x) = -1;
((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCRect *))getTag)(v8, &v13);
setContentSize = v8->setContentSize;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v13, 320.0, 50.0);
setContentSize(v8, (const cocos2d::CCSize *)&v13);
a1->addChild_0(a1, v8, -1);
}
}