//
// TabbedPopupLayer::dTabbedPopupLayer from 0x1005fdda0 to 0x1005fdf22 (386 bytes)
//
// 11 xrefs:
// > sub_1005FDCA0 @ 0x1005fdd93
// > GameSettingsLayer::dGameSettingsLayer @ 0x1005fe023
// > sub_1005FE030 @ 0x1005fe11a
// > sub_1005FE120 @ 0x1005fe20f
// > sub_1005FE220 @ 0x1005fe306
// > sub_100640170 @ 0x100640175
// > sub_100640180 @ 0x100640189
// > sub_1006401A0 @ 0x1006401ac
// > sub_1006401C0 @ 0x1006401d3
// > KeybindingsLayer::dKeybindingsLayer @ 0x1006e146f
// > sub_1008FD200 @ 0x1008fd37d
//
// 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:34:29 +0000
//
__int64 __fastcall TabbedPopupLayer::dTabbedPopupLayer(_QWORD *a1)
{
__int64 v2; // r14
__int64 v3; // r15
void *v4; // rdi
void *v5; // rdi
__int64 v6; // r14
__int64 v7; // r15
void *v8; // rdi
__int64 v9; // r12
*a1 = off_100B80528;
a1[40] = off_100B80B20;
a1[41] = &off_100B80B90;
a1[42] = off_100B80BA8;
a1[43] = off_100B80BC8;
a1[44] = off_100B80BF0;
a1[51] = off_100B80C20;
a1[54] = off_100B80CA0;
a1[68] = off_100B80CC0;
a1[83] = &off_100B80D08;
a1[84] = off_100B80D20;
v2 = a1[130];
if ( v2 )
{
v3 = a1[131];
v4 = (void *)a1[130];
if ( v3 != v2 )
{
do
{
v5 = *(void **)(v3 - 24);
if ( v5 )
{
*(_QWORD *)(v3 - 16) = v5;
operator delete(v5);
}
v3 -= 24;
}
while ( v3 != v2 );
v4 = (void *)a1[130];
}
a1[131] = v2;
operator delete(v4);
}
v6 = a1[127];
if ( v6 )
{
v7 = a1[128];
v8 = (void *)a1[127];
if ( v7 == v6 )
{
LABEL_19:
a1[128] = v6;
operator delete(v8);
return SetupTriggerPopup::dSetupTriggerPopup((__int64)a1);
}
while ( 1 )
{
if ( (*(_BYTE *)(v7 - 48) & 1) != 0 )
{
operator delete(*(void **)(v7 - 32));
v9 = v7 - 72;
if ( (*(_BYTE *)(v7 - 72) & 1) != 0 )
LABEL_17:
operator delete(*(void **)(v7 - 56));
}
else
{
v9 = v7 - 72;
if ( (*(_BYTE *)(v7 - 72) & 1) != 0 )
goto LABEL_17;
}
v7 = v9;
if ( v9 == v6 )
{
v8 = (void *)a1[127];
goto LABEL_19;
}
}
}
return SetupTriggerPopup::dSetupTriggerPopup((__int64)a1);
}