//
// InfoLayer::toggleCommentMode from 0x90afe8 to 0x90b074 (140 bytes)
//
// 4 xrefs:
// > ??> @ 0x74ff8
// > InfoLayer::init @ 0x90b728
// > InfoLayer::init @ 0x90b770
// > ??> @ 0x1542f48
//
// 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::toggleCommentMode(InfoLayer *this, cocos2d::CCObject *a2)
{
GameManager *v3; // x0
GameManager *v4; // x0
GameManager *v5; // x0
v3 = (GameManager *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)v3 )
{
v4 = (GameManager *)GameManager::sharedState(v3);
GameManager::setGameVariable(v4, "0069", 0);
}
else
{
v5 = (GameManager *)GameManager::sharedState(v3);
GameManager::setGameVariable(v5, "0069", 1u);
}
InfoLayer::updateCommentModeButtons(this);
return InfoLayer::loadPage(this, 0, 0);
}