//
// SongSelectNode::updateWidgetVisibility from 0x140168aa0 to 0x140168b29 (137 bytes)
//
// 3 xrefs:
// > SongSelectNode::onSongMode @ 0x140168a98
// > SetupSongTriggerPopup::pageChanged @ 0x1405f3afa
// > ??> @ 0x140918014
//
// 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 11:27:28 +0000
//
__int64 __fastcall SongSelectNode::updateWidgetVisibility(__int64 a1, __int64 a2)
{
int v3; // ebx
__int64 v4; // rdx
__int64 v5; // rdx
if ( !*(_BYTE *)(a1 + 348) )
{
v3 = 0;
goto LABEL_5;
}
v3 = *(_DWORD *)(a1 + 344);
if ( !v3 )
{
LABEL_5:
a2 = 0;
goto LABEL_6;
}
LOBYTE(a2) = 1;
LABEL_6:
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 416) + 336LL))(*(_QWORD *)(a1 + 416), a2);
if ( !*(_BYTE *)(a1 + 348) || v3 )
v4 = 0;
else
LOBYTE(v4) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 400) + 336LL))(*(_QWORD *)(a1 + 400), v4);
if ( *(_BYTE *)(a1 + 348) && v3 )
LOBYTE(v5) = 1;
else
v5 = 0;
return (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 408) + 336LL))(*(_QWORD *)(a1 + 408), v5);
}