//
// GJSmartBlockPreview::addCount from 0x66f044 to 0x66f0b6 (114 bytes)
//
// 1 xrefs:
// > BrowseSmartTemplateLayer::addPrefabMenuItem @ 0x673c42
//
// 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:55:49 +0000
//
int __fastcall GJSmartBlockPreview::addCount(GJSmartBlockPreview *this, const char *a2, const char *a3)
{
int v5; // r7
void (__fastcall *v6)(int, _BYTE *); // r9
int v7; // r6
void (__fastcall *v8)(int, int); // r7
cocos2d::CCString *v9; // r0
int CString; // r0
_BYTE v12[8]; // [sp+4h] [bp-10h] BYREF
GJSmartBlockPreview::createInfoLabel((int)this, (int)a2, a3);
v5 = *((_DWORD *)this + 69);
v6 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v5 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, 90.0, 90.0);
v6(v5, v12);
v7 = *((_DWORD *)this + 69);
v8 = *(void (__fastcall **)(int, int))(*(_DWORD *)v7 + 464);
v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", a2);
CString = cocos2d::CCString::getCString(v9);
v8(v7, CString);
return cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 69), 20.0, 0.6, 0.0);
}