//
// PlayLayer::showEndLayer from 0x10011addc to 0x10011ae58 (124 bytes)
//
// 1 xrefs:
// > PlayLayer::showCompleteText @ 0x10011ab80
//
// 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 __fastcall 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);
((void (__fastcall *)(PlayLayer *, EndLevelLayer *, __int64))a1->addChild_0)(a1, v2, 1001);
((void (__fastcall *)(EndLevelLayer *, _QWORD))v2->showLayer)(v2, 0);
}