//
// sub_788CEC from 0x788cec to 0x788d36 (74 bytes)
//
// 2 xrefs:
// > EditorSoundConfigUploadPopup::updateVisibilityState @ 0x788d6e
// > EditorSoundConfigUploadPopup::updateVisibilityState @ 0x788db4
//
// 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:34 +0000
//
int __fastcall sub_788CEC(int result, int a2, int a3)
{
char v4; // r3
_DWORD v5[3]; // [sp+0h] [bp-Ch] BYREF
v5[0] = result;
v5[1] = a2;
v5[2] = a3;
if ( a3 )
v4 = -1;
else
v4 = 125;
LOBYTE(v5[0]) = v4;
BYTE1(v5[0]) = v4;
BYTE2(v5[0]) = v4;
if ( result )
result = CCMenuItemToggler::setSpriteColor(result, (int)v5);
if ( a2 )
return (*(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)a2 + 536))(a2, v5);
return result;
}