//
// GameSettingsLayer::setupTabs from 0x7109a8 to 0x710b48 (416 bytes)
//
// 1 xrefs:
// > GameSettingsLayer::init @ 0x712f12
//
// 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:57:44 +0000
//
float __fastcall GameSettingsLayer::setupTabs(const cocos2d::CCPoint **this)
{
cocos2d::CCArray *TabButtons; // r0
unsigned int v3; // r4
cocos2d::CCArray *i; // r6
int v5; // r2
int v6; // r2
const cocos2d::CCPoint *v7; // r8
float v9[2]; // [sp+0h] [bp-2Ch] BYREF
_BYTE v10[8]; // [sp+8h] [bp-24h] BYREF
_BYTE v11[8]; // [sp+10h] [bp-1Ch] BYREF
int v12; // [sp+18h] [bp-14h] BYREF
int v13; // [sp+1Ch] [bp-10h]
int v14; // [sp+20h] [bp-Ch]
cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v9);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "Gameplay", 8u);
TabbedPopupLayer::addTab(this, &v12, 0);
std::string::~string((int)&v12);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "Visual", 6u);
TabbedPopupLayer::addTab(this, &v12, 0);
std::string::~string((int)&v12);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "Practice", 8u);
TabbedPopupLayer::addTab(this, &v12, 0);
std::string::~string((int)&v12);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "Editor", 6u);
TabbedPopupLayer::addTab(this, &v12, 0);
std::string::~string((int)&v12);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "Audio", 5u);
TabbedPopupLayer::addTab(this, &v12, 0);
std::string::~string((int)&v12);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "Other", 5u);
TabbedPopupLayer::addTab(this, &v12, 0);
std::string::~string((int)&v12);
TabButtons = (cocos2d::CCArray *)TabbedPopupLayer::createTabButtons((TabbedPopupLayer *)this);
v3 = 0;
for ( i = (cocos2d::CCArray *)cocos2d::CCArray::create(TabButtons);
;
cocos2d::CCArray::addObject(i, *(cocos2d::CCObject **)(v6 + 40)) )
{
v5 = (int)*(this + 178);
if ( v3 >= -1171354717 * (((int)*(this + 179) - v5) >> 2) )
break;
v6 = v5 + 44 * v3++;
}
v7 = *(this + 111);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v10,
v9[0] * 0.5,
(float)((float)(*((float *)this + 140) * 0.5) + (float)(v9[1] * 0.5)) - 20.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v11, v7);
return GameToolbox::alignItemsHorisontally(*(float *)&i, 4.0, (int)v11, 0);
}