//
// GJSmartBlockPreview::addCount from 0x100009340 to 0x1000093e4 (164 bytes)
//
// 1 xrefs:
// > BrowseSmartTemplateLayer::addPrefabMenuItem @ 0x100071f04
//
// 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
//
void __fastcall GJSmartBlockPreview::addCount(GJSmartBlockPreview *a1, int a2)
{
cocos2d::CCLabelBMFont *m_infoLabel; // x21
__n128 v5; // q0
__n128 v6; // q1
cocos2d::CCLabelBMFont *v7; // x21
cocos2d::CCString *v8; // x0
const char *CString; // x0
_BYTE v10[8]; // [xsp+8h] [xbp-28h] BYREF
cocos2d::CCPoint v11; // 0:kr00_8.8
GJSmartBlockPreview::createInfoLabel(a1);
m_infoLabel = a1->m_infoLabel;
v5.n128_u32[0] = 1119092736;
v6.n128_u32[0] = 1119092736;
v11 = sub_100022980(v5, v6);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, _BYTE *, float, float))m_infoLabel->setPosition)(
m_infoLabel,
v10,
v11.x,
v11.y);
v7 = a1->m_infoLabel;
v8 = (cocos2d::CCString *)sub_100268F4C("%i", a2);
CString = cocos2d::CCString::getCString(v8);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))v7->setString)(v7, CString);
cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_infoLabel, 20.0, 0.6, 0.0);
}