//
// UILayer::announceLevelControls from 0x1004c3010 to 0x1004c319d (397 bytes)
//
// 1 xrefs:
// > PlayLayer::onEnterTransitionDidFinish @ 0x10008de30
//
// 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:31:06 +0000
//
void __fastcall UILayer::announceLevelControls(__int64 a1)
{
__int64 v1; // rcx
std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0 v2; // al
std::string::size_type size; // rax
const std::string::value_type *v4; // rsi
std::string::size_type v5; // rax
__int64 v6; // rsi
const char *v7; // rsi
char v8; // al
_BYTE v9[16]; // [rsp+8h] [rbp-38h] BYREF
void *__p; // [rsp+18h] [rbp-28h]
std::string v11; // [rsp+20h] [rbp-20h] BYREF
if ( *(_BYTE *)(a1 + 648)
|| *(_BYTE *)(a1 + 626)
|| *(_BYTE *)(a1 + 596) != 1
|| !*(_QWORD *)(a1 + 640)
|| !*(_QWORD *)(GameManager::sharedState() + 544) )
{
return;
}
*(_BYTE *)(a1 + 648) = 1;
memset(&v11, 0, sizeof(v11));
v1 = *(_QWORD *)(a1 + 640);
if ( *(_QWORD *)(v1 + 96) )
{
std::string::assign(&v11, "Keyboard");
v2 = v11.__r_.__value_.__s.0;
if ( !*(_QWORD *)(*(_QWORD *)(a1 + 640) + 136LL) )
goto LABEL_16;
LABEL_10:
if ( (*(_BYTE *)&v2 & 1) != 0 )
size = v11.__r_.__value_.__l.__size_;
else
size = *(unsigned __int8 *)&v2 >> 1;
v4 = " + Controller";
if ( !size )
v4 = "Controller";
std::string::append(&v11, v4);
v2 = v11.__r_.__value_.__s.0;
goto LABEL_16;
}
v2 = 0;
if ( *(_QWORD *)(v1 + 136) )
goto LABEL_10;
LABEL_16:
if ( (*(_BYTE *)&v2 & 1) != 0 )
v5 = v11.__r_.__value_.__l.__size_;
else
v5 = *(unsigned __int8 *)&v2 >> 1;
if ( v5 )
{
v6 = *(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 544) + 1936LL);
if ( *(_BYTE *)(v6 + 1844) )
{
v7 = "Custom Controls: ";
}
else
{
v8 = sub_1004C3200(v6 + 1816, v6 + 1784);
v7 = "Custom Controls: ";
if ( v8 )
v7 = "Creator Controls: ";
}
std::operator+(v9, v7, &v11);
UILayer::showTextAlert(a1, v9, 0, 1, 2.0);
if ( (v9[0] & 1) != 0 )
operator delete(__p);
}
if ( (*(_BYTE *)&v11.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v11.__r_.__value_.__l.__data_);
}