//
// CCCounterLabel::create from 0x574bfc to 0x574ce4 (232 bytes)
//
// 2 xrefs:
// > GJShopLayer::init @ 0x92e3c8
// > ??> @ 0x42420
//
// 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
//
CCCounterLabel *CCCounterLabel::create(int a1, const char *a2, FormatterType a3)
{
__int64 v6; // x19
v6 = operator new(0x200u);
cocos2d::CCLabelBMFont::CCLabelBMFont((cocos2d::CCLabelBMFont *)v6);
*(_DWORD *)(v6 + 484) = 0;
*(_QWORD *)v6 = &off_11377D0;
*(_QWORD *)(v6 + 368) = &off_1137C78;
*(_QWORD *)(v6 + 320) = &off_1137C28;
*(_QWORD *)(v6 + 360) = &off_1137C58;
*(_DWORD *)(v6 + 488) = 0;
*(_DWORD *)(v6 + 492) = 0;
*(_BYTE *)(v6 + 496) = 0;
*(_DWORD *)(v6 + 500) = 10;
*(_BYTE *)(v6 + 504) = 0;
*(_DWORD *)(v6 + 508) = 0;
if ( CCCounterLabel::init((CCCounterLabel *)v6, a1, a2, a3) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);
return (CCCounterLabel *)v6;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 16LL))(v6);
return nullptr;
}
}