//
// PlatformerControlsPopup::syncSourceUI from 0x140450a00 to 0x140450a95 (149 bytes)
//
// 4 xrefs:
// > PlatformerControlsPopup::onApplyCreator @ 0x1404512ba
// > PlatformerControlsPopup::onLevelControlsRefreshed @ 0x1404515a3
// > PlatformerControlsPopup::uploadActionFinished @ 0x140451e49
// > ??> @ 0x1409276d4
//
// 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:32:27 +0000
//
__int64 __fastcall PlatformerControlsPopup::syncSourceUI(_QWORD *a1, __int64 a2)
{
__int64 v3; // rcx
__int64 v4; // rax
__int64 v5; // rcx
__int64 v6; // rax
BOOL v7; // eax
void (__fastcall ***v8)(_QWORD, const char *); // rcx
const char *v9; // rdx
v3 = a1[137];
if ( v3 )
{
v4 = a1[129];
LOBYTE(a2) = v4 && *(_DWORD *)(v4 + 2096) == 1;
CCMenuItemToggler::toggle(v3, a2);
}
v5 = a1[138];
if ( v5 )
{
v6 = a1[129];
v7 = v6 && *(_DWORD *)(v6 + 2096) == 1;
v8 = (void (__fastcall ***)(_QWORD, const char *))(v5 + 360);
v9 = "Edit Global Controls";
if ( v7 )
v9 = "Edit Custom Controls";
(**v8)(v8, v9);
}
return PlatformerControlsPopup::refreshModeUI(a1);
}