//
// EditorOptionsLayer::onButtonRows from 0x8c2080 to 0x8c210c (140 bytes)
//
// 4 xrefs:
// > ??> @ 0xbe3e0
// > EditorOptionsLayer::setupOptions @ 0x8dbad8
// > EditorOptionsLayer::setupOptions @ 0x8dbba4
// > ??> @ 0x122e980
//
// 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 EditorOptionsLayer::onButtonRows(EditorOptionsLayer *a1, cocos2d::CCObject *a2)
{
int v3; // w0
int m_buttonRows; // w2
int v5; // w2
cocos2d::CCLabelBMFont *m_buttonRowsLabel; // x20
cocos2d::CCLabelBMFont_vtbl *v7; // x3
void (__fastcall *setString)(cocos2d::CCLabelBMFont *__hidden, const unsigned __int8 *); // x19
cocos2d::CCString *v9; // x0
const char *CString; // x0
v3 = a2->getTag(a2);
m_buttonRows = a1->m_buttonRows;
if ( v3 == 1 )
v5 = m_buttonRows + 1;
else
v5 = m_buttonRows - 1;
m_buttonRowsLabel = a1->m_buttonRowsLabel;
if ( v5 < 2 )
v5 = 2;
v7 = m_buttonRowsLabel->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
if ( v5 > 3 )
v5 = 3;
a1->m_buttonRows = v5;
setString = v7->setString;
v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)(unsigned int)v5);
CString = cocos2d::CCString::getCString(v9);
setString(m_buttonRowsLabel, (const unsigned __int8 *)CString);
}