//
// InfoLayer::toggleCommentMode from 0x1007b1030 to 0x1007b110d (221 bytes)
//
// 2 xrefs:
// > InfoLayer::init @ 0x1007af900
// > InfoLayer::init @ 0x1007af9d0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall InfoLayer::toggleCommentMode(InfoLayer *a1, cocos2d::CCObject *a2)
{
bool v2; // r14
GameManager *v3; // rax
GameManager *v4; // rax
bool GameVariable; // r14
ButtonSprite *v6; // rax
const char *v7; // r15
const char *v8; // rsi
ButtonSprite *v9; // rax
v2 = ((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) == 0;
v3 = GameManager::sharedState();
GameManager::setGameVariable(v3, "0069", v2);
v4 = GameManager::sharedState();
GameVariable = GameManager::getGameVariable(v4, "0069");
v6 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_likeBtn->getNormalImage)(a1->m_likeBtn);
v7 = "GJ_button_02.png";
v8 = "GJ_button_01.png";
if ( GameVariable )
{
v8 = "GJ_button_02.png";
v7 = "GJ_button_01.png";
}
ButtonSprite::updateBGImage(v6, v8);
v9 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_timeBtn->getNormalImage)(a1->m_timeBtn);
ButtonSprite::updateBGImage(v9, v7);
((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_likeBtn->setEnabled)(a1->m_likeBtn, !GameVariable);
((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_timeBtn->setEnabled)(a1->m_timeBtn, GameVariable);
InfoLayer::loadPage(a1, 0, 0);
}