//
// InfoLayer::updateCommentModeButtons from 0x1403d2a70 to 0x1403d2b66 (246 bytes)
//
// 4 xrefs:
// > InfoLayer::init @ 0x1403cf787
// > InfoLayer::commentUploadFinished @ 0x1403d23de
// > InfoLayer::toggleCommentMode @ 0x1403d2a52
// > ??> @ 0x1409247ac
//
// This function is hookable on this platform (idp: pc, 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 11:31:35 +0000
//
__int64 __fastcall InfoLayer::updateCommentModeButtons(__int64 a1)
{
__int64 v2; // rcx
bool GameVariable; // di
__int64 v4; // rax
const char *v5; // rbx
const char *v6; // rdx
__int64 v7; // rax
void *v9; // [rsp+30h] [rbp+8h]
v2 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v9 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v9);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v2 = qword_14090BFD0;
}
GameVariable = GameManager::getGameVariable(v2, "0069");
v4 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 808) + 952LL))(*(_QWORD *)(a1 + 808));
v5 = "GJ_button_01.png";
v6 = "GJ_button_01.png";
if ( GameVariable )
v6 = "GJ_button_02.png";
ButtonSprite::updateBGImage(v4, v6);
v7 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 816) + 952LL))(*(_QWORD *)(a1 + 816));
if ( !GameVariable )
v5 = "GJ_button_02.png";
ButtonSprite::updateBGImage(v7, v5);
(*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 808) + 936LL))(*(_QWORD *)(a1 + 808), !GameVariable);
return (*(__int64 (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 816) + 936LL))(
*(_QWORD *)(a1 + 816),
GameVariable);
}