//
// GameSettingsLayer::onButtonRows from 0x1001665ec to 0x10016666c (128 bytes)
//
// 2 xrefs:
// > GameSettingsLayer::addSpecialContent @ 0x100165de4
// > GameSettingsLayer::addSpecialContent @ 0x100165ee0
//
// This function is hookable on this platform (idp: arm, 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 10:59:48 +0000
//
__int64 __fastcall GameSettingsLayer::onButtonRows(__int64 a1, __int64 a2)
{
int v3; // w9
bool v4; // cc
int v5; // w8
int v6; // w9
__int64 v7; // x19
__int64 v8; // x0
__int64 CString; // x1
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1 )
v3 = 1;
else
v3 = -1;
v4 = *(_DWORD *)(a1 + 1152) + v3 < 3;
v5 = 2;
if ( *(_DWORD *)(a1 + 1152) + v3 < 3 )
v6 = 2;
else
v6 = 3;
*(_DWORD *)(a1 + 1152) = v6;
v7 = *(_QWORD *)(a1 + 1168);
if ( !v4 )
v5 = 3;
v8 = sub_1003065B0("%i", v5);
CString = cocos2d::CCString::getCString(v8);
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 928LL))(v7, CString);
}