//
// PlayLayer::showEndLayer from 0x100082b00 to 0x100082b81 (129 bytes)
//
// 1 xrefs:
// > PlayLayer::showCompleteText @ 0x10008285a
//
// This function is hookable on this platform (idp: pc, 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:20:02 +0000
//
__int64 __fastcall PlayLayer::showEndLayer(__int64 a1)
{
__int64 v2; // rdi
__int64 v3; // r14
PlatformToolbox::showCursor(a1);
PlayerObject::releaseAllButtons(*(_QWORD *)(a1 + 3256));
v2 = *(_QWORD *)(a1 + 3264);
if ( v2 )
PlayerObject::releaseAllButtons(v2);
UILayer::resetAllButtons(*(_QWORD *)(a1 + 13288));
UILayer::toggleMenuVisibility(*(_QWORD *)(a1 + 13288), 0);
*(_BYTE *)(a1 + 14637) = 1;
v3 = EndLevelLayer::create(a1);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v3, 1001);
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 1328LL))(v3, 0);
}