//
// UILayer::togglePlatformerMode from 0x100050da4 to 0x100050dd8 (52 bytes)
//
// 4 xrefs:
// > UILayer::init @ 0x100050a94
// > UILayer::updateDualMode @ 0x100050e30
// > PlayLayer::setupHasCompleted @ 0x10013f74c
// > LevelEditorLayer::onPlaytest @ 0x100404654
//
// 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 10:57:43 +0000
//
__int64 __fastcall UILayer::togglePlatformerMode(__int64 a1, char a2)
{
*(_BYTE *)(a1 + 596) = a2;
UILayer::refreshDpad();
UILayer::applyLevelBindings(a1);
return UILayer::updateUINodeVisibility(a1, *(unsigned __int8 *)(a1 + 596));
}