//
// InfoLayer::updateCommentModeButtons from 0x907a0c to 0x907aec (224 bytes)
//
// 5 xrefs:
// > InfoLayer::commentUploadFinished @ 0x90afc4
// > InfoLayer::toggleCommentMode @ 0x90b024
// > InfoLayer::toggleCommentMode @ 0x90b058
// > InfoLayer::init @ 0x90b8e0
// > ??> @ 0xf7510
//
// 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:09 +0000
//
__int64 __fastcall InfoLayer::updateCommentModeButtons(InfoLayer *this)
{
GameManager *v2; // x0
unsigned int GameVariable; // w21
ButtonSprite *v4; // x0
ButtonSprite *v5; // x0
ButtonSprite *v7; // x0
v2 = (GameManager *)GameManager::sharedState(this);
GameVariable = (unsigned __int8)GameManager::getGameVariable(v2, "0069");
v4 = (ButtonSprite *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 100) + 1072LL))(*((_QWORD *)this + 100));
if ( GameVariable )
{
ButtonSprite::updateBGImage(v4, "GJ_button_02.png");
v5 = (ButtonSprite *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 101) + 1072LL))(*((_QWORD *)this + 101));
ButtonSprite::updateBGImage(v5, "GJ_button_01.png");
}
else
{
ButtonSprite::updateBGImage(v4, "GJ_button_01.png");
v7 = (ButtonSprite *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 101) + 1072LL))(*((_QWORD *)this + 101));
ButtonSprite::updateBGImage(v7, "GJ_button_02.png");
}
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 100) + 1056LL))(
*((_QWORD *)this + 100),
GameVariable ^ 1);
return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 101) + 1056LL))(
*((_QWORD *)this + 101),
GameVariable);
}