//
// UILayer::applyLevelBindings from 0x140670be0 to 0x140670c5b (123 bytes)
//
// 2 xrefs:
// > UILayer::togglePlatformerMode @ 0x140670fef
// > ??> @ 0x1409322ac
//
// 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:35:54 +0000
//
void __fastcall UILayer::applyLevelBindings(__int64 a1)
{
__int64 v1; // rax
__int64 v2; // rdi
__int64 v3; // rbx
__int64 v4; // rax
__int64 v5; // rax
if ( (!*(_BYTE *)(a1 + 626) || *(_BYTE *)(a1 + 627))
&& *(_BYTE *)(a1 + 596)
&& (v1 = *(_QWORD *)(a1 + 640)) != 0
&& ((v2 = v1 + 72, v3 = v1 + 104, *(_QWORD *)(v1 + 88)) || *(_QWORD *)(v1 + 120)) )
{
v4 = GJKeybindManager::sharedState();
GJKeybindManager::applyMovementOverride(v4, v2, v3);
}
else
{
v5 = GJKeybindManager::sharedState();
GJKeybindManager::clearMovementOverride(v5);
}
}