//
// SongSelectNode::updateWidgetVisibility from 0x97fa2c to 0x97fac4 (152 bytes)
//
// 3 xrefs:
// > SongSelectNode::onSongMode @ 0x97fbe8
// > SetupSongTriggerPopup::pageChanged @ 0xaea444
// > ??> @ 0xa1ae8
//
// 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 12:57:50 +0000
//
__int64 __fastcall SongSelectNode::updateWidgetVisibility(SongSelectNode *this)
{
int v2; // w20
__int64 v3; // x1
int v4; // w2
v2 = *((unsigned __int8 *)this + 348);
v3 = *((_QWORD *)this + 52);
if ( *((_BYTE *)this + 348) )
{
v4 = *((_DWORD *)this + 86);
v2 = v4 != 0;
(*(void (__fastcall **)(_QWORD, bool))(*(_QWORD *)v3 + 344LL))(*((_QWORD *)this + 52), v4 != 0);
}
else
{
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v3 + 344LL))(
*((_QWORD *)this + 52),
*((unsigned __int8 *)this + 348));
}
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 50) + 344LL))(
*((_QWORD *)this + 50),
(v2 | *((unsigned __int8 *)this + 348) ^ 1) ^ 1u);
return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 51) + 344LL))(
*((_QWORD *)this + 51),
(unsigned __int8)(v2 & *((_BYTE *)this + 348)));
}