//
// UILayer::applyLevelBindings from 0x3fc682 to 0x3fc6ca (72 bytes)
//
// 3 xrefs:
// > UILayer::reapplyLevelControls @ 0x3fd88a
// > UILayer::togglePlatformerMode @ 0x3fd8a6
// > UILayer::editorPlaytest @ 0x3fddc6
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:47:21 +0000
//
int __fastcall UILayer::applyLevelBindings(UILayer *this)
{
int v2; // r3
GJKeybindManager *v3; // r0
GJKeybindManager *v5; // r0
if ( (!*((_BYTE *)this + 494) || *((_BYTE *)this + 495))
&& *((_BYTE *)this + 476)
&& (v2 = *((_DWORD *)this + 125)) != 0
&& (*(_DWORD *)(v2 + 80) || *(_DWORD *)(v2 + 100)) )
{
v5 = (GJKeybindManager *)GJKeybindManager::sharedState(this);
return GJKeybindManager::applyMovementOverride(
v5,
(KeybindSource *)(*((_DWORD *)this + 125) + 68),
(KeybindSource *)(*((_DWORD *)this + 125) + 88));
}
else
{
v3 = (GJKeybindManager *)GJKeybindManager::sharedState(this);
return GJKeybindManager::clearMovementOverride(v3);
}
}