//
// CCCounterLabel::create from 0x1005115e0 to 0x1005116eb (267 bytes)
//
// 1 xrefs:
// > GJShopLayer::init @ 0x100323b9f
//
// 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 *__fastcall CCCounterLabel::create(int a1, const char *a2, FormatterType a3)
{
__int64 v3; // rax
cocos2d::CCPoint v4; // xmm1_8
char *v6; // rbx
__int64 v8[6]; // [rsp+0h] [rbp-30h] BYREF
v8[0] = v3;
v6 = (char *)operator new(0x220u);
cocos2d::CCLabelBMFont::CCLabelBMFont(v6);
*(_QWORD *)v6 = off_10095DBD8;
*((_QWORD *)v6 + 40) = off_10095E030;
*((_QWORD *)v6 + 45) = off_10095E060;
*((_QWORD *)v6 + 46) = off_10095E080;
*(_QWORD *)(v6 + 516) = 0;
*(_QWORD *)(v6 + 521) = 0;
*((_DWORD *)v6 + 133) = 10;
v6[536] = 0;
*((_DWORD *)v6 + 135) = 0;
sub_10028CC60(v8, &dbl_1009A2760);
if ( cocos2d::CCLabelBMFont::initWithString((cocos2d::CCLabelBMFont *)v6, " ", a2, -1.0, kCCTextAlignmentLeft, v4) )
{
*((_DWORD *)v6 + 135) = a3;
*((_DWORD *)v6 + 130) = a1;
*((_DWORD *)v6 + 131) = a1;
CCCounterLabel::updateString((CCCounterLabel *)v6);
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v6 + 16LL))(v6);
return nullptr;
}
return (CCCounterLabel *)v6;
}