//
// PriceLabel::init from 0x6af330 to 0x6af448 (280 bytes)
//
// 2 xrefs:
// > PriceLabel::create @ 0x6af48c
// > ??> @ 0x795b8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:50:50 +0000
//
__int64 __fastcall PriceLabel::init(PriceLabel *this, const char *a2)
{
unsigned int v3; // w22
cocos2d::CCString *v4; // x0
cocos2d::CCLabelBMFont *CString; // x0
const char *v6; // x2
__int64 v7; // x0
const char *v8; // x1
__int64 v9; // x0
void (__fastcall *v10)(PriceLabel *, _BYTE *); // x23
__int64 v11; // x0
_BYTE v13[8]; // [xsp+50h] [xbp+50h] BYREF
v3 = (unsigned int)a2;
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", a2);
CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v4);
v7 = cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt", v6);
*((_QWORD *)this + 40) = v7;
(*(void (__fastcall **)(PriceLabel *, __int64))(*(_QWORD *)this + 456LL))(this, v7);
v9 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"spinItem_coin01_001.png", v8);
*((_QWORD *)this + 41) = v9;
(*(void (__fastcall **)(PriceLabel *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v9, 20);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 41) + 160LL))(*((_QWORD *)this + 41), 0.4);
v10 = *(void (__fastcall **)(PriceLabel *, _BYTE *))(*(_QWORD *)this + 320LL);
v11 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 40) + 328LL))(*((_QWORD *)this + 40));
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v13, 0.0, *(float *)(v11 + 4));
v10(this, v13);
PriceLabel::setPrice(this, (const char *)v3);
return 1;
}