//
// PriceLabel::init from 0x3d7c1c to 0x3d7cba (158 bytes)
//
// 1 xrefs:
// > PriceLabel::create @ 0x3d7cfa
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:46:45 +0000
//
int __fastcall PriceLabel::init(PriceLabel *this, const char *a2, int a3, int a4)
{
cocos2d::CCString *v6; // r0
cocos2d::CCLabelBMFont *CString; // r0
const char *v8; // r2
int v9; // r0
int v10; // r3
const char *v11; // r1
int v12; // r0
int v13; // r3
void (__fastcall *v14)(PriceLabel *, _DWORD *); // r8
int v15; // r0
_DWORD v17[3]; // [sp+4h] [bp-Ch] BYREF
v17[0] = a2;
v17[1] = a3;
v17[2] = a4;
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", a2);
CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v6);
v9 = cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt", v8);
v10 = *(_DWORD *)this;
*((_DWORD *)this + 66) = v9;
(*(void (__fastcall **)(PriceLabel *, int))(v10 + 228))(this, v9);
v12 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"spinItem_coin01_001.png", v11);
v13 = *(_DWORD *)this;
*((_DWORD *)this + 67) = v12;
(*(void (__fastcall **)(PriceLabel *, int, int))(v13 + 232))(this, v12, 20);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 67) + 80))(*((_DWORD *)this + 67), 1053609165);
v14 = *(void (__fastcall **)(PriceLabel *, _DWORD *))(*(_DWORD *)this + 160);
v15 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 66) + 164))(*((_DWORD *)this + 66));
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v17, 0.0, *(float *)(v15 + 4));
v14(this, v17);
PriceLabel::setPrice(this, a2);
return 1;
}