//
// UILayer::applyLevelBindings from 0x6ee878 to 0x6ee8e4 (108 bytes)
//
// 4 xrefs:
// > UILayer::reapplyLevelControls @ 0x6f03f4
// > UILayer::togglePlatformerMode @ 0x6f0424
// > UILayer::editorPlaytest @ 0x6f0b18
// > ??> @ 0xfc748
//
// 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 12:51:47 +0000
//
__int64 __fastcall UILayer::applyLevelBindings(UILayer *this)
{
GJKeybindManager *v2; // x0
GJKeybindManager *v3; // x0
GJKeybindManager *v5; // x0
if ( (!*((_BYTE *)this + 626) || (v2 = (GJKeybindManager *)*((unsigned __int8 *)this + 627), *((_BYTE *)this + 627)))
&& (v2 = (GJKeybindManager *)*((unsigned __int8 *)this + 596), *((_BYTE *)this + 596))
&& (v2 = *((GJKeybindManager **)this + 80)) != nullptr
&& (*((_QWORD *)v2 + 12) || (v2 = *((GJKeybindManager **)v2 + 17)) != nullptr) )
{
v3 = (GJKeybindManager *)GJKeybindManager::sharedState(v2);
return GJKeybindManager::applyMovementOverride(
v3,
(KeybindSource *)(*((_QWORD *)this + 80) + 72LL),
(KeybindSource *)(*((_QWORD *)this + 80) + 112LL));
}
else
{
v5 = (GJKeybindManager *)GJKeybindManager::sharedState(v2);
return GJKeybindManager::clearMovementOverride(v5);
}
}