//
// PlayLayer::showEndLayer from 0x5c8e1c to 0x5c8e9c (128 bytes)
//
// 3 xrefs:
// > ??> @ 0x65bc8
// > PlayLayer::showCompleteText @ 0x5ca4f8
// > ??> @ 0x122b480
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void PlayLayer::showEndLayer(PlayLayer *a1)
{
EndLevelLayer *v2; // x20
PlatformToolbox::showCursor();
PlayerObject::releaseAllButtons(a1->m_player1);
UILayer::resetAllButtons(a1->m_uiLayer);
UILayer::toggleMenuVisibility(a1->m_uiLayer, 0);
a1->m_hasCompletedLevel = 1;
v2 = EndLevelLayer::create(a1);
a1->addChild_0(a1, v2, 1001);
v2->showLayer(v2, 0);
}