{"type": "func", "start": 4298448504, "end": 4298448668, "name": "InfoLayer::updateCommentModeButtons", "pseudocode": "// \n// InfoLayer::updateCommentModeButtons from 0x100351e78 to 0x100351f1c (164 bytes)\n// \n// 3 xrefs:\n// > InfoLayer::init @ 0x100350dc0\n// > InfoLayer::toggleCommentMode @ 0x100351db0\n// > InfoLayer::commentUploadFinished @ 0x1003530e4\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall InfoLayer::updateCommentModeButtons(InfoLayer *a1)\n{\n  GameManager *v2; // x0\n  _BOOL8 GameVariable; // x20\n  ButtonSprite *v4; // x0\n  const char *v5; // x1\n  const char *v6; // x21\n  ButtonSprite *v7; // x0\n\n  v2 = GameManager::sharedState();\n  GameVariable = GameManager::getGameVariable(v2, \"0069\");\n  v4 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_likeBtn->getNormalImage)(a1->m_likeBtn);\n  if ( GameVariable )\n    v5 = \"GJ_button_02.png\";\n  else\n    v5 = \"GJ_button_01.png\";\n  if ( GameVariable )\n    v6 = \"GJ_button_01.png\";\n  else\n    v6 = \"GJ_button_02.png\";\n  ButtonSprite::updateBGImage(v4, v5);\n  v7 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_timeBtn->getNormalImage)(a1->m_timeBtn);\n  ButtonSprite::updateBGImage(v7, v6);\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_likeBtn->setEnabled)(\n    a1->m_likeBtn,\n    (unsigned int)GameVariable ^ 1);\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, _BOOL8))a1->m_timeBtn->setEnabled)(a1->m_timeBtn, GameVariable);\n}", "assembly": "; \n; InfoLayer::updateCommentModeButtons from 0x100351e78 to 0x100351f1c (164 bytes)\n; \n; 3 xrefs:\n; > InfoLayer::init @ 0x100350dc0\n; > InfoLayer::toggleCommentMode @ 0x100351db0\n; > InfoLayer::commentUploadFinished @ 0x1003530e4\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100351e78\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100351e7c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100351e80\nADD             X29, SP, #0x20                                         ; +0xc, 0x100351e84\nMOV             X19, X0                                                ; +0x10, 0x100351e88\nBL              GameManager__sharedState                               ; +0x14, 0x100351e8c\nADRL            X1, a0069; \"0069\"                                      ; +0x18, 0x100351e90\nBL              GameManager__getGameVariable                           ; +0x20, 0x100351e98\nMOV             X20, X0                                                ; +0x24, 0x100351e9c\nLDR             X0, [X19,#0x2F0]                                       ; +0x28, 0x100351ea0\nLDR             X8, [X0]                                               ; +0x2c, 0x100351ea4\nLDR             X8, [X8,#0x420]                                        ; +0x30, 0x100351ea8\nBLR             X8                                                     ; +0x34, 0x100351eac\nADRL            X8, aGjButton01Png; \"GJ_button_01.png\"                 ; +0x38, 0x100351eb0\nADRL            X9, aGjButton02Png; \"GJ_button_02.png\"                 ; +0x40, 0x100351eb8\nCMP             W20, #0                                                ; +0x48, 0x100351ec0\nCSEL            X1, X9, X8, NE                                         ; +0x4c, 0x100351ec4\nCSEL            X21, X8, X9, NE                                        ; +0x50, 0x100351ec8\nBL              ButtonSprite__updateBGImage                            ; +0x54, 0x100351ecc\nLDR             X0, [X19,#0x2F8]                                       ; +0x58, 0x100351ed0\nLDR             X8, [X0]                                               ; +0x5c, 0x100351ed4\nLDR             X8, [X8,#0x420]                                        ; +0x60, 0x100351ed8\nBLR             X8                                                     ; +0x64, 0x100351edc\nMOV             X1, X21                                                ; +0x68, 0x100351ee0\nBL              ButtonSprite__updateBGImage                            ; +0x6c, 0x100351ee4\nLDR             X0, [X19,#0x2F0]                                       ; +0x70, 0x100351ee8\nLDR             X8, [X0]                                               ; +0x74, 0x100351eec\nLDR             X8, [X8,#0x410]                                        ; +0x78, 0x100351ef0\nEOR             W1, W20, #1                                            ; +0x7c, 0x100351ef4\nBLR             X8                                                     ; +0x80, 0x100351ef8\nLDR             X0, [X19,#0x2F8]                                       ; +0x84, 0x100351efc\nLDR             X8, [X0]                                               ; +0x88, 0x100351f00\nLDR             X2, [X8,#0x410]                                        ; +0x8c, 0x100351f04\nMOV             X1, X20                                                ; +0x90, 0x100351f08\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x94, 0x100351f0c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x98, 0x100351f10\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x9c, 0x100351f14\nBR              X2                                                     ; +0xa0, 0x100351f18", "xrefs": ["InfoLayer::init @ 0x100350dc0", "InfoLayer::toggleCommentMode @ 0x100351db0", "InfoLayer::commentUploadFinished @ 0x1003530e4"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}