//
// LevelBindingsLayer::setupTabs from 0x10091fda0 to 0x10091fe94 (244 bytes)
//
// 1 xrefs:
// > ??> @ 0x100bc1348
//
// This function is hookable on this platform (idp: pc, 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:38:16 +0000
//
__int64 __fastcall LevelBindingsLayer::setupTabs(__int64 a1)
{
__int64 v2; // rax
const char *v3; // rdi
void *v4; // r14
float v6; // [rsp+8h] [rbp-38h] BYREF
__int128 v7; // [rsp+10h] [rbp-30h] BYREF
void *__p; // [rsp+20h] [rbp-20h]
LOBYTE(v7) = 16;
strcpy((char *)&v7 + 1, "Bindings");
TabbedPopupLayer::addTab((_QWORD *)a1, &v7, nullptr);
if ( (v7 & 1) != 0 )
operator delete(__p);
v2 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v7, v2);
v3 = "Custom Keyboard Controls";
if ( *(_BYTE *)(a1 + 1200) )
v3 = "Custom Controller Controls";
v4 = cocos2d::CCLabelBMFont::create_3((__int64)v3, (__int64)"goldFont.fnt");
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v4 + 160LL))(v4, 0.60000002);
sub_100278250(
&v6,
*(float *)&v7 * 0.5,
(float)((float)(0.5 * *(float *)(a1 + 736)) + (float)(*((float *)&v7 + 1) * 0.5)) + -22.0);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v4 + 184LL))(v4, &v6);
return (*(__int64 (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v4);
}