//
// GJSmartBlockPreview::addCount from 0xb0d004 to 0xb0d0cc (200 bytes)
//
// 2 xrefs:
// > BrowseSmartTemplateLayer::addPrefabMenuItem @ 0xb17848
// > ??> @ 0x884c8
//
// 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 13:01:26 +0000
//
__int64 __fastcall GJSmartBlockPreview::addCount(GJSmartBlockPreview *this, unsigned int a2, const char *a3)
{
__int64 v5; // x22
void (__fastcall *v6)(__int64, _BYTE *); // x20
__int64 v7; // x20
void (__fastcall *v8)(__int64, __int64); // x22
cocos2d::CCString *v9; // x0
__int64 CString; // x0
_BYTE v12[8]; // [xsp+50h] [xbp+50h] BYREF
GJSmartBlockPreview::createInfoLabel((__int64 *)this, _stack_chk_guard, a3);
v5 = *((_QWORD *)this + 43);
v6 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v5 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, 90.0, 90.0);
v6(v5, v12);
v7 = *((_QWORD *)this + 43);
v8 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 928LL);
v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)a2);
CString = cocos2d::CCString::getCString(v9);
v8(v7, CString);
cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 43), 20.0, 0.6, 0.0);
return _stack_chk_guard;
}