//
// PriceLabel::setPrice from 0x2f2aec to 0x2f2be4 (248 bytes)
//
// 1 xrefs:
// > PriceLabel::init @ 0x2f2c72
//
// 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 PriceLabel::setPrice(PriceLabel *a1, int a2)
{
cocos2d::CCLabelBMFont *m_priceLabel; // r5
void (__fastcall *setString)(cocos2d::CCLabelBMFont *__hidden, const unsigned __int8 *); // r7
cocos2d::CCString *v5; // r0
const char *CString; // r0
float width; // s19
cocos2d::CCSprite *m_coinSprite; // r0
float v9; // s18
float v10; // r0
cocos2d::CCLabelBMFont *v11; // r7
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8
float v13; // s15
const cocos2d::CCSize *v14; // r0
cocos2d::CCSprite *v15; // r7
void (__fastcall *v16)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8
const cocos2d::CCSize *v17; // r0
cocos2d::CCPoint v18; // [sp+4h] [bp-Ch] BYREF
m_priceLabel = a1->m_priceLabel;
setString = m_priceLabel->setString;
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)a2);
CString = cocos2d::CCString::getCString(v5);
setString(m_priceLabel, (const unsigned __int8 *)CString);
width = a1->m_priceLabel->getContentSize(a1->m_priceLabel)->width;
m_coinSprite = a1->m_coinSprite;
v9 = m_coinSprite->m_obRect.size.width;
v10 = COERCE_FLOAT(((int (__fastcall *)(cocos2d::CCSprite *))m_coinSprite->getScale)(m_coinSprite));
v11 = a1->m_priceLabel;
setPosition = v11->setPosition;
v13 = v9 * v10;
v14 = a1->getContentSize(a1);
cocos2d::CCPoint::CCPoint(
&v18,
-(float)((float)((float)(width + v13) * 0.5) - (float)(width * 0.5)),
v14->height * 0.5);
setPosition(v11, &v18);
v15 = a1->m_coinSprite;
v16 = v15->setPosition;
v17 = a1->getContentSize(a1);
cocos2d::CCPoint::CCPoint(
&v18,
(float)((float)((float)(width + v13) * 0.5) - (float)(v13 * 0.5)) + 1.0,
(float)(v17->height * 0.5) + 5.0);
v16(v15, &v18);
}