//
// EditorOptionsLayer::onButtonRows from 0x140291a00 to 0x140291a8a (138 bytes)
//
// 3 xrefs:
// > EditorOptionsLayer::setupOptions @ 0x1402917ff
// > EditorOptionsLayer::setupOptions @ 0x1402918b8
// > ??> @ 0x1406d19c4
//
// 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; // eax
int m_buttonRows; // edx
int v5; // r8d
int v6; // edx
cocos2d::CCLabelBMFont *m_buttonRowsLabel; // rax
cocos2d::CCLabelProtocol_vtbl *v8; // rbx
cocos2d::CCString *v9; // rax
const char *CString; // rax
v3 = a2->getTag(a2);
m_buttonRows = a1->m_buttonRows;
v5 = m_buttonRows - 1;
v6 = m_buttonRows + 1;
if ( v3 != 1 )
v6 = v5;
if ( v6 < 2 )
{
v6 = 2;
}
else if ( v6 >= 3 )
{
v6 = 3;
}
m_buttonRowsLabel = a1->m_buttonRowsLabel;
a1->m_buttonRows = v6;
v8 = m_buttonRowsLabel->cocos2d::CCLabelProtocol::__vftable;
v9 = cocos2d::CCString::createWithFormat("%i", v6);
CString = cocos2d::CCString::getCString(v9);
v8->setString(&a1->m_buttonRowsLabel->cocos2d::CCLabelProtocol, CString);
}