//
// GameSettingsLayer::onButtonsPerRow from 0x100602540 to 0x1006025b6 (118 bytes)
//
// 2 xrefs:
// > GameSettingsLayer::addSpecialContent @ 0x10060112b
// > GameSettingsLayer::addSpecialContent @ 0x100601225
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 12:34:31 +0000
//
__int64 __fastcall GameSettingsLayer::onButtonsPerRow(__int64 a1, __int64 a2)
{
char v2; // al
int v3; // eax
int v4; // ecx
int v5; // esi
__int64 v6; // rbx
__int64 v7; // rax
__int64 CString; // rax
char v10; // [rsp-8h] [rbp-10h]
v10 = v2;
v3 = *(_DWORD *)(a1 + 1148) + 2 * ((*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1) - 1;
v4 = 6;
if ( v3 >= 7 )
v4 = v3;
v5 = 12;
if ( v4 < 12 )
v5 = v4;
*(_DWORD *)(a1 + 1148) = v5;
v6 = *(_QWORD *)(a1 + 1160);
v7 = sub_10088E820("%i", v10);
CString = cocos2d::CCString::getCString(v7);
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 928LL))(v6, CString);
}