//
// InfoLayer::toggleSmallCommentMode from 0x1403d25b0 to 0x1403d2736 (390 bytes)
//
// 2 xrefs:
// > InfoLayer::init @ 0x1403cf544
// > ??> @ 0x140924788
//
// 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 11:31:35 +0000
//
// Hidden C++ exception states: #wind=4
__int64 __fastcall InfoLayer::toggleSmallCommentMode(__int64 a1)
{
int ID; // eax
__int64 v3; // r9
int v4; // eax
__int64 v5; // r9
__int64 v7; // rcx
void *v8; // [rsp+30h] [rbp+8h]
void *v9; // [rsp+30h] [rbp+8h]
void *v10; // [rsp+30h] [rbp+8h]
void *v11; // [rsp+30h] [rbp+8h]
if ( !qword_14090BFD0 )
{
v8 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v8);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
}
GameManager::toggleGameVariable(a1, "0088");
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v9 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v9);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
}
ID = InfoLayer::getID((_QWORD *)a1);
GameLevelManager::resetCommentTimersForLevelID(v3, ID, *(_DWORD *)(a1 + 884));
if ( (unsigned __int8)InfoLayer::canToggleModRoom(a1) )
{
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v10 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v10);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
}
v4 = InfoLayer::getID((_QWORD *)a1);
GameLevelManager::resetCommentTimersForLevelID(v5, v4, 4);
return InfoLayer::reloadWindow(a1);
}
else
{
if ( *(_QWORD *)(a1 + 704) && *(_BYTE *)(a1 + 888) )
{
v7 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v11 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v11);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v7 = *(_QWORD *)&qword_14090BFB0;
}
GameLevelManager::resetCommentTimersForLevelID(v7, *(_DWORD *)(*(_QWORD *)(a1 + 704) + 392LL), 5);
}
return InfoLayer::reloadWindow(a1);
}
}