//
// LevelBindingsLayer::setupTabs from 0x1004efa88 to 0x1004efb7c (244 bytes)
//
// 1 xrefs:
// > ??> @ 0x100993fd0
//
// 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 11:06:44 +0000
//
__int64 __fastcall LevelBindingsLayer::setupTabs(__int64 a1)
{
__int64 v2; // x0
double WinSize; // d0
const char *v4; // x0
void *v5; // x20
float v7; // [xsp+0h] [xbp-30h] BYREF
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v9; // [xsp+1Fh] [xbp-11h]
sub_100009900(__p, "Bindings");
TabbedPopupLayer::addTab((_QWORD *)a1, (__int64)__p, nullptr);
if ( v9 < 0 )
operator delete(__p[0]);
v2 = cocos2d::CCDirector::sharedDirector();
WinSize = cocos2d::CCDirector::getWinSize(v2, __p);
if ( *(_BYTE *)(a1 + 1200) )
v4 = "Custom Controller Controls";
else
v4 = "Custom Keyboard Controls";
v5 = cocos2d::CCLabelBMFont::create_1(v4, "goldFont.fnt", WinSize);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v5 + 160LL))(v5, 0.6);
sub_1000262BC(
&v7,
*(float *)__p * 0.5,
(float)((float)(*((float *)__p + 1) * 0.5) + (float)(*(float *)(a1 + 736) * 0.5)) + -22.0);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v5 + 184LL))(v5, &v7);
return (*(__int64 (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v5);
}