//
// PriceLabel::init from 0x58df34 to 0x58e04c (280 bytes)
//
// 2 xrefs:
// > PriceLabel::create @ 0x58e090
// > ??> @ 0x580f8
//
// 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
//
// local variable allocation has failed, the output may be wrong!
bool PriceLabel::init(PriceLabel *a1, int a2)
{
cocos2d::CCString *v4; // x0
cocos2d::CCLabelBMFont *v5; // x0
cocos2d::CCSprite *v6; // x0
void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // x23
const cocos2d::CCSize *v8; // x0
cocos2d::CCSize v10; // [xsp+50h] [xbp+50h] BYREF
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", *(const char **)&a2);
cocos2d::CCString::getCString(v4);
v5 = cocos2d::CCLabelBMFont::create();
a1->m_priceLabel = v5;
a1->addChild(a1, v5);
v6 = cocos2d::CCSprite::createWithSpriteFrameName("spinItem_coin01_001.png");
a1->m_coinSprite = v6;
a1->addChild_0(a1, v6, 20);
a1->m_coinSprite->setScale(a1->m_coinSprite, 0.4);
setContentSize = a1->setContentSize;
v8 = a1->m_priceLabel->getContentSize(a1->m_priceLabel);
cocos2d::CCSize::CCSize(&v10, 0.0, v8->height);
setContentSize(a1, &v10);
PriceLabel::setPrice(a1, a2);
return 1;
}