//
// KeybindingsLayer::setupTabs from 0x9959f8 to 0x995c1c (548 bytes)
//
// 2 xrefs:
// > ??> @ 0xa7de8
// > ??> @ 0x1474f88
//
// 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 12:58:01 +0000
//
__int64 __fastcall KeybindingsLayer::setupTabs(KeybindingsLayer *this)
{
int v2; // w0
char v3; // w1
__int64 v5; // [xsp+30h] [xbp+30h] BYREF
__int64 v6; // [xsp+38h] [xbp+38h]
void *v7; // [xsp+40h] [xbp+40h]
v5 = 0;
v6 = 0;
v7 = nullptr;
std::string::__init(&v5, "Gameplay", 8u);
TabbedPopupLayer::addTab((int)this, (int)&v5, nullptr);
if ( (v5 & 1) != 0 )
operator delete(v7);
v5 = 0;
v6 = 0;
v7 = nullptr;
std::string::__init(&v5, "Practice", 8u);
TabbedPopupLayer::addTab((int)this, (int)&v5, nullptr);
if ( (v5 & 1) != 0 )
operator delete(v7);
v5 = 0;
v6 = 0;
v7 = nullptr;
std::string::__init(&v5, "Editor", 6u);
TabbedPopupLayer::addTab((int)this, (int)&v5, nullptr);
if ( (v5 & 1) != 0 )
operator delete(v7);
v5 = 0;
v6 = 0;
v7 = nullptr;
std::string::__init(&v5, "Tools", 5u);
TabbedPopupLayer::addTab((int)this, (int)&v5, nullptr);
if ( (v5 & 1) != 0 )
operator delete(v7);
v5 = 0;
v6 = 0;
v7 = nullptr;
std::string::__init(&v5, "View", 4u);
TabbedPopupLayer::addTab((int)this, (int)&v5, nullptr);
if ( (v5 & 1) != 0 )
operator delete(v7);
v5 = 0;
v6 = 0;
v7 = nullptr;
std::string::__init(&v5, "S", 1u);
v2 = TabbedPopupLayer::addTab((int)this, (int)&v5, "searchIcon_001.png");
v3 = v5;
*((_DWORD *)this + 296) = v2;
if ( (v3 & 1) != 0 )
operator delete(v7);
TabbedPopupLayer::createTabButtons(this);
return _stack_chk_guard;
}