//
// PlayLayer::showEndLayer from 0x6f70ec to 0x6f716c (128 bytes)
//
// 3 xrefs:
// > ??> @ 0x8a328
// > PlayLayer::showCompleteText @ 0x6f3b78
// > ??> @ 0x1543a18
//
// 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:51 +0000
//
__int64 __fastcall PlayLayer::showEndLayer(UILayer **this)
{
__int64 v2; // x20
PlatformToolbox::showCursor((PlatformToolbox *)this);
PlayLayer::releaseAllPlayerButtons(this);
UILayer::resetAllButtons(*(this + 1661));
UILayer::toggleMenuVisibility(*(this + 1661), 0);
*((_BYTE *)this + 14637) = 1;
v2 = EndLevelLayer::create((EndLevelLayer *)this, (PlayLayer *)(this + 1536));
(*((void (__fastcall **)(UILayer **, __int64, __int64))*this + 58))(this, v2, 1001);
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2 + 1328LL))(v2, 0);
}