//
// PriceLabel::init from 0x2f2bec to 0x2f2c8a (158 bytes)
//
// 1 xrefs:
// > PriceLabel::create @ 0x2f2cca
//
// 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
//
bool PriceLabel::init(PriceLabel *a1, int a2)
{
cocos2d::CCString *v4; // r0
cocos2d::CCLabelBMFont *v5; // r0
PriceLabel_vtbl *v6; // r3
cocos2d::CCSprite *v7; // r0
PriceLabel_vtbl *v8; // r3
void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // r8
const cocos2d::CCSize *v10; // r0
cocos2d::CCSize v12; // [sp+4h] [bp-Ch] BYREF
LODWORD(v12.width) = a2;
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)a2);
cocos2d::CCString::getCString(v4);
v5 = cocos2d::CCLabelBMFont::create();
v6 = a1->__vftable;
a1->m_priceLabel = v5;
v6->addChild(a1, v5);
v7 = cocos2d::CCSprite::createWithSpriteFrameName("spinItem_coin01_001.png");
v8 = a1->__vftable;
a1->m_coinSprite = v7;
v8->addChild_0(a1, v7, 20);
((void (__fastcall *)(cocos2d::CCSprite *, int))a1->m_coinSprite->setScale)(a1->m_coinSprite, 1053609165);
setContentSize = a1->setContentSize;
v10 = a1->m_priceLabel->getContentSize(a1->m_priceLabel);
cocos2d::CCSize::CCSize(&v12, 0.0, v10->height);
setContentSize(a1, &v12);
PriceLabel::setPrice(a1, a2);
return 1;
}