//
// UILayer::applyLevelBindings from 0x100050f50 to 0x100050fc8 (120 bytes)
//
// 3 xrefs:
// > UILayer::togglePlatformerMode @ 0x100050dc0
// > UILayer::reapplyLevelControls @ 0x100050fe0
// > UILayer::editorPlaytest @ 0x10005182c
//
// 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::applyLevelBindings(__int64 a1)
{
__int64 v2; // x8
__int64 v3; // x0
__int64 v5; // x0
if ( (*(_BYTE *)(a1 + 626) != 1 || *(_BYTE *)(a1 + 627) == 1)
&& *(_BYTE *)(a1 + 596) == 1
&& (v2 = *(_QWORD *)(a1 + 640)) != 0
&& (*(_QWORD *)(v2 + 96) || *(_QWORD *)(v2 + 136)) )
{
v3 = GJKeybindManager::sharedState(a1);
return GJKeybindManager::applyMovementOverride(v3, *(_QWORD *)(a1 + 640) + 72LL, *(_QWORD *)(a1 + 640) + 112LL);
}
else
{
v5 = GJKeybindManager::sharedState(a1);
return GJKeybindManager::clearMovementOverride(v5);
}
}