//
// InfoLayer::toggleModRoom from 0x53ec68 to 0x53ecd8 (112 bytes)
//
// 3 xrefs:
// > InfoLayer::reloadWindow @ 0x540642
// > ProfilePage::onModNotes @ 0x5f5b6a
// > AccountReviewPopup::openUserComments @ 0x732574
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:17 +0000
//
int __fastcall InfoLayer::toggleModRoom(InfoLayer *this, cocos2d::CCObject *a2)
{
int v3; // r0
char *v4; // r0
const char *v5; // r1
int v6; // r0
*((_BYTE *)this + 640) ^= 1u;
InfoLayer::refreshUserTitle((int)this);
v3 = *((_DWORD *)this + 149);
if ( v3 )
{
v4 = (char *)(*(int (__fastcall **)(int))(*(_DWORD *)v3 + 536))(v3);
if ( *((_BYTE *)this + 640) )
v5 = "GJ_button_02.png";
else
v5 = "GJ_button_01.png";
ButtonSprite::updateBGImage(v4, v5);
}
v6 = *((_DWORD *)this + 150);
if ( v6 )
{
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v6 + 172))(v6, *((unsigned __int8 *)this + 640));
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 150) + 528))(
*((_DWORD *)this + 150),
*((unsigned __int8 *)this + 640));
}
InfoLayer::clearBulkSelection(this);
*((_DWORD *)this + 154) = 0;
return InfoLayer::loadPage(this, nullptr, 0);
}