//
// sub_10051CEC4 from 0x10051cec4 to 0x10051cf04 (64 bytes)
//
// 4 xrefs:
// > sub_10051C06C @ 0x10051c0d0
// > sub_10051C560 @ 0x10051c5d8
// > PlatformerControlsPopup::onLevelControlsRefreshed @ 0x10051d288
// > PlatformerControlsPopup::onClose @ 0x10051d308
//
// 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 11:07:09 +0000
//
__int64 sub_10051CEC4()
{
__int64 result; // x0
__int64 v1; // x0
result = GameManager::sharedState();
if ( *(_QWORD *)(result + 544) )
{
result = GameManager::sharedState();
if ( *(_QWORD *)(*(_QWORD *)(result + 544) + 13288LL) )
{
v1 = GameManager::sharedState();
return UILayer::reapplyLevelControls(*(_QWORD *)(*(_QWORD *)(v1 + 544) + 13288LL));
}
}
return result;
}