//
// InfoLayer::toggleCommentMode from 0x53ec24 to 0x53ec60 (60 bytes)
//
// 0 xrefs:
//
// 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::toggleCommentMode(InfoLayer *this, cocos2d::CCObject *a2)
{
GameManager *v3; // r0
GameManager *v4; // r0
const char *v5; // r2
v3 = (GameManager *)(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
if ( v3 )
{
v4 = (GameManager *)GameManager::sharedState(v3);
v5 = nullptr;
}
else
{
v4 = (GameManager *)GameManager::sharedState(nullptr);
v5 = (_BYTE *)(&dword_0 + 1);
}
GameManager::setGameVariable(v4, "0069", v5);
InfoLayer::updateCommentModeButtons(this);
return InfoLayer::loadPage(this, nullptr, 0);
}