//
// InfoLayer::toggleModRoom from 0x1403d2d30 to 0x1403d2ddb (171 bytes)
//
// 5 xrefs:
// > AccountReviewPopup::onNotes @ 0x1400b9ae1
// > InfoLayer::reloadWindow @ 0x1403d295b
// > ProfilePage::onModNotes @ 0x140557a46
// > InfoLayer::init @ 0x1403cf608
// > ??> @ 0x1409247d0
//
// 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
//
void __fastcall InfoLayer::toggleModRoom(__int64 a1)
{
__int64 v2; // rcx
__int64 v3; // rax
const char *v4; // rdx
__int64 v5; // rcx
*(_BYTE *)(a1 + 888) = *(_BYTE *)(a1 + 888) == 0;
InfoLayer::refreshUserTitle(a1);
v2 = *(_QWORD *)(a1 + 824);
if ( v2 )
{
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 952LL))(v2);
v4 = "GJ_button_01.png";
if ( *(_BYTE *)(a1 + 888) )
v4 = "GJ_button_02.png";
ButtonSprite::updateBGImage(v3, v4);
}
v5 = *(_QWORD *)(a1 + 832);
if ( v5 )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 336LL))(v5, *(unsigned __int8 *)(a1 + 888));
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 832) + 936LL))(
*(_QWORD *)(a1 + 832),
*(unsigned __int8 *)(a1 + 888));
}
InfoLayer::clearBulkSelection(a1);
*(_DWORD *)(a1 + 864) = 0;
InfoLayer::loadPage(a1, 0, 0);
}