//
// InfoLayer::updateCommentModeButtons from 0x1402bf5a0 to 0x1402bf693 (243 bytes)
//
// 4 xrefs:
// > InfoLayer::init @ 0x1402bc340
// > InfoLayer::commentUploadFinished @ 0x1402beffa
// > InfoLayer::toggleCommentMode @ 0x1402bf57c
// > ??> @ 0x1406d2900
//
// 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 InfoLayer::updateCommentModeButtons(InfoLayer *a1)
{
GameManager *v2; // rcx
bool GameVariable; // di
ButtonSprite *v4; // rax
const char *v5; // rbx
const char *v6; // rdx
ButtonSprite *v7; // rax
void *v8; // [rsp+30h] [rbp+8h]
v2 = (GameManager *)qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v8 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v8);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v2 = (GameManager *)qword_1406C2ED8;
}
GameVariable = GameManager::getGameVariable(v2, "0069");
v4 = (ButtonSprite *)a1->m_likeBtn->getNormalImage(a1->m_likeBtn);
v5 = "GJ_button_01.png";
v6 = "GJ_button_01.png";
if ( GameVariable )
v6 = "GJ_button_02.png";
ButtonSprite::updateBGImage(v4, v6);
v7 = (ButtonSprite *)a1->m_timeBtn->getNormalImage(a1->m_timeBtn);
if ( !GameVariable )
v5 = "GJ_button_02.png";
ButtonSprite::updateBGImage(v7, v5);
a1->m_likeBtn->setEnabled(a1->m_likeBtn, !GameVariable);
a1->m_timeBtn->setEnabled(a1->m_timeBtn, GameVariable);
}