//
// EditorOptionsLayer::onButtonsPerRow from 0x5d2c50 to 0x5d2c9c (76 bytes)
//
// 0 xrefs:
//
// 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:54:06 +0000
//
int __fastcall EditorOptionsLayer::onButtonsPerRow(EditorOptionsLayer *this, cocos2d::CCObject *a2)
{
int v3; // r0
int v4; // r1
const char *v5; // r1
int v6; // r4
int (__fastcall *v7)(int, int); // r5
cocos2d::CCString *v8; // r0
int CString; // r0
v3 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
v4 = *((_DWORD *)this + 195);
if ( v3 == 1 )
v5 = (const char *)(v4 + 1);
else
v5 = (const char *)(v4 - 1);
if ( (int)v5 < 6 )
v5 = &byte_6;
if ( (int)v5 >= 12 )
v5 = &byte_9[3];
*((_DWORD *)this + 195) = v5;
v6 = *((_DWORD *)this + 197);
v7 = *(int (__fastcall **)(int, int))(*(_DWORD *)v6 + 464);
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v5);
CString = cocos2d::CCString::getCString(v8);
return v7(v6, CString);
}