//
// InfoLayer::toggleModRoom from 0x90b074 to 0x90b120 (172 bytes)
//
// 6 xrefs:
// > InfoLayer::reloadWindow @ 0x90d394
// > ProfilePage::onModNotes @ 0xa53738
// > AccountReviewPopup::openUserComments @ 0xc4059c
// > ??> @ 0x49e28
// > InfoLayer::init @ 0x90c7c8
// > ??> @ 0x1541730
//
// 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:57:12 +0000
//
__int64 __fastcall InfoLayer::toggleModRoom(InfoLayer *this, cocos2d::CCObject *a2)
{
__int64 v3; // x0
ButtonSprite *v4; // x0
__int64 v5; // x0
*((_BYTE *)this + 880) ^= 1u;
InfoLayer::refreshUserTitle(this);
v3 = *((_QWORD *)this + 102);
if ( v3 )
{
v4 = (ButtonSprite *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 1072LL))(v3);
if ( *((_BYTE *)this + 880) )
ButtonSprite::updateBGImage(v4, "GJ_button_02.png");
else
ButtonSprite::updateBGImage(v4, "GJ_button_01.png");
}
v5 = *((_QWORD *)this + 103);
if ( v5 )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 344LL))(v5, *((unsigned __int8 *)this + 880));
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 103) + 1056LL))(
*((_QWORD *)this + 103),
*((unsigned __int8 *)this + 880));
}
InfoLayer::clearBulkSelection(this);
*((_DWORD *)this + 214) = 0;
return InfoLayer::loadPage(this, 0, 0);
}