//
// CCCounterLabel::init from 0x2e59a0 to 0x2e59fe (94 bytes)
//
// 1 xrefs:
// > CCCounterLabel::create @ 0x2e5a72
//
// 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 CCCounterLabel::init(CCCounterLabel *a1, int a2, const char *a3, FormatterType a4)
{
_BOOL4 v8; // r6
cocos2d::CCPoint v10; // [sp+4h] [bp-18h]
cocos2d::CCPoint v11; // [sp+Ch] [bp-10h] BYREF
cocos2d::CCPoint::CCPoint(&v11, &stru_AC5250);
LODWORD(v10.x) = &v11;
v8 = cocos2d::CCLabelBMFont::initWithString(a1, " ", a3, -1.0, kCCTextAlignmentLeft, v10);
if ( v8 )
{
a1->m_formatterType = a4;
a1->m_targetCount = a2;
CCCounterLabel::fastUpdateCounter(a1);
}
return v8;
}