//
// UILayer::applyLevelBindings from 0x1004c2d10 to 0x1004c2d86 (118 bytes)
//
// 0 xrefs:
//
// 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 12:31:06 +0000
//
__int64 __fastcall UILayer::applyLevelBindings(__int64 a1)
{
__int64 v1; // rax
__int64 v2; // rax
__int64 v4; // rax
if ( (*(_BYTE *)(a1 + 626) != 1 || *(_BYTE *)(a1 + 627) == 1)
&& *(_BYTE *)(a1 + 596) == 1
&& (v1 = *(_QWORD *)(a1 + 640)) != 0
&& (*(_QWORD *)(v1 + 96) || *(_QWORD *)(v1 + 136)) )
{
v2 = GJKeybindManager::sharedState(a1);
return GJKeybindManager::applyMovementOverride(v2, *(_QWORD *)(a1 + 640) + 72LL, *(_QWORD *)(a1 + 640) + 112LL);
}
else
{
v4 = GJKeybindManager::sharedState(a1);
return GJKeybindManager::clearMovementOverride(v4);
}
}