//
// sub_10051CF04 from 0x10051cf04 to 0x10051cf84 (128 bytes)
//
// 3 xrefs:
// > sub_10051C560 @ 0x10051c5d4
// > PlatformerControlsPopup::onLevelControlsRefreshed @ 0x10051d290
// > PlatformerControlsPopup::uploadActionFinished @ 0x10051d3ec
//
// 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 11:07:09 +0000
//
__int64 __fastcall sub_10051CF04(_QWORD *a1)
{
__int64 v2; // x0
__int64 v3; // x8
_BOOL8 v4; // x1
__int64 v5; // x0
__int64 v6; // x8
const char *v7; // x1
v2 = a1[138];
if ( v2 )
{
v3 = a1[131];
if ( v3 )
v4 = *(_DWORD *)(v3 + 1840) == 1;
else
v4 = 0;
CCMenuItemToggler::toggle(v2, v4);
}
v5 = a1[139];
if ( v5 )
{
v6 = a1[131];
v7 = "Edit Global Controls";
if ( v6 && *(_DWORD *)(v6 + 1840) == 1 )
v7 = "Edit Custom Controls";
(*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v5 + 928LL))(v5, v7);
}
return sub_10051C7A4((__int64)a1);
}