//
// EditorSoundsLayer::setupTabs from 0xcd5e40 to 0xcd6064 (548 bytes)
//
// 2 xrefs:
// > EditorSoundsLayer::init @ 0xcd6cb0
// > ??> @ 0xa3ae0
//
// 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 13:06:30 +0000
//
__int64 __fastcall EditorSoundsLayer::setupTabs(EditorSoundsLayer *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, "Object", 6u);
TabbedPopupLayer::addTab((__int64)this, (char *)&v5, nullptr);
if ( (v5 & 1) != 0 )
operator delete(v7);
v5 = 0;
v6 = 0;
v7 = nullptr;
std::string::__init(&v5, "Transform", 9u);
TabbedPopupLayer::addTab((__int64)this, (char *)&v5, nullptr);
if ( (v5 & 1) != 0 )
operator delete(v7);
v5 = 0;
v6 = 0;
v7 = nullptr;
std::string::__init(&v5, "View", 4u);
TabbedPopupLayer::addTab((__int64)this, (char *)&v5, nullptr);
if ( (v5 & 1) != 0 )
operator delete(v7);
v5 = 0;
v6 = 0;
v7 = nullptr;
std::string::__init(&v5, "Actions", 7u);
TabbedPopupLayer::addTab((__int64)this, (char *)&v5, nullptr);
if ( (v5 & 1) != 0 )
operator delete(v7);
v5 = 0;
v6 = 0;
v7 = nullptr;
std::string::__init(&v5, "Gameplay", 8u);
TabbedPopupLayer::addTab((__int64)this, (char *)&v5, nullptr);
if ( (v5 & 1) != 0 )
operator delete(v7);
v5 = 0;
v6 = 0;
v7 = nullptr;
std::string::__init(&v5, "S", 1u);
v2 = TabbedPopupLayer::addTab((__int64)this, (char *)&v5, "searchIcon_001.png");
v3 = v5;
*((_DWORD *)this + 286) = v2;
if ( (v3 & 1) != 0 )
operator delete(v7);
TabbedPopupLayer::createTabButtons(this);
return _stack_chk_guard;
}