//
// EditorSoundConfigUploadPopup::updateVisibilityState from 0x788d3c to 0x788dba (126 bytes)
//
// 2 xrefs:
// > EditorSoundConfigUploadPopup::onToggleUnlisted @ 0x788e3e
// > EditorSoundConfigUploadPopup::init @ 0x7898de
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:35 +0000
//
int __fastcall EditorSoundConfigUploadPopup::updateVisibilityState(EditorSoundConfigUploadPopup *this)
{
int v2; // r3
int v3; // r0
_BOOL4 v4; // r6
int v5; // r1
CCMenuItemToggler *v6; // r0
int v7; // r5
int result; // r0
v2 = *((_DWORD *)this + 184);
v3 = *((_DWORD *)this + 185);
v4 = *(_DWORD *)(v2 + 264) > 0;
if ( v3 )
{
(*(void (__fastcall **)(int, bool))(*(_DWORD *)v3 + 528))(v3, *(_DWORD *)(v2 + 264) <= 0);
sub_788CEC(*((_DWORD *)this + 185), *((_DWORD *)this + 187), !v4);
}
v5 = *((unsigned __int8 *)this + 756);
if ( !*((_BYTE *)this + 756) )
{
if ( *((_BYTE *)this + 757) )
{
v6 = *((CCMenuItemToggler **)this + 186);
*((_BYTE *)this + 757) = v5;
if ( v6 )
CCMenuItemToggler::toggle(v6, v5);
}
}
v7 = *((unsigned __int8 *)this + 756);
if ( *((_BYTE *)this + 756) )
v7 = !v4;
result = *((_DWORD *)this + 186);
if ( result )
{
(*(void (__fastcall **)(int, int))(*(_DWORD *)result + 528))(result, v7);
return sub_788CEC(*((_DWORD *)this + 186), *((_DWORD *)this + 188), v7);
}
return result;
}