{"type": "func", "start": 4303032784, "end": 4303032956, "name": "InfoLayer::updateCommentModeButtons", "pseudocode": "// \n// InfoLayer::updateCommentModeButtons from 0x1007b11d0 to 0x1007b127c (172 bytes)\n// \n// 0 xrefs:\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 *v1; // rax\n  bool GameVariable; // r14\n  ButtonSprite *v3; // rax\n  const char *v4; // r15\n  const char *v5; // rsi\n  ButtonSprite *v6; // rax\n\n  v1 = GameManager::sharedState();\n  GameVariable = GameManager::getGameVariable(v1, \"0069\");\n  v3 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_likeBtn->getNormalImage)(a1->m_likeBtn);\n  v4 = \"GJ_button_02.png\";\n  v5 = \"GJ_button_01.png\";\n  if ( GameVariable )\n  {\n    v5 = \"GJ_button_02.png\";\n    v4 = \"GJ_button_01.png\";\n  }\n  ButtonSprite::updateBGImage(v3, v5);\n  v6 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_timeBtn->getNormalImage)(a1->m_timeBtn);\n  ButtonSprite::updateBGImage(v6, v4);\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_likeBtn->setEnabled)(a1->m_likeBtn, !GameVariable);\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_timeBtn->setEnabled)(a1->m_timeBtn, GameVariable);\n}", "assembly": "; \n; InfoLayer::updateCommentModeButtons from 0x1007b11d0 to 0x1007b127c (172 bytes)\n; \n; 0 xrefs:\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\npush    rbp                                                            ; +0x0, 0x1007b11d0\nmov     rbp, rsp                                                       ; +0x1, 0x1007b11d1\npush    r15                                                            ; +0x4, 0x1007b11d4\npush    r14                                                            ; +0x6, 0x1007b11d6\npush    rbx                                                            ; +0x8, 0x1007b11d8\npush    rax                                                            ; +0x9, 0x1007b11d9\nmov     rbx, rdi                                                       ; +0xa, 0x1007b11da\ncall    GameManager__sharedState                                       ; +0xd, 0x1007b11dd\nlea     rsi, a0069; \"0069\"                                             ; +0x12, 0x1007b11e2\nmov     rdi, rax                                                       ; +0x19, 0x1007b11e9\ncall    GameManager__getGameVariable                                   ; +0x1c, 0x1007b11ec\nmov     r14d, eax                                                      ; +0x21, 0x1007b11f1\nmov     rdi, [rbx+2F0h]                                                ; +0x24, 0x1007b11f4\nmov     rax, [rdi]                                                     ; +0x2b, 0x1007b11fb\ncall    qword ptr [rax+420h]                                           ; +0x2e, 0x1007b11fe\nlea     r15, aGjButton02Png; \"GJ_button_02.png\"                        ; +0x34, 0x1007b1204\nlea     rcx, aGjButton01Png; \"GJ_button_01.png\"                        ; +0x3b, 0x1007b120b\ntest    r14b, r14b                                                     ; +0x42, 0x1007b1212\nmov     rsi, rcx                                                       ; +0x45, 0x1007b1215\ncmovnz  rsi, r15                                                       ; +0x48, 0x1007b1218\ncmovnz  r15, rcx                                                       ; +0x4c, 0x1007b121c\nmov     rdi, rax                                                       ; +0x50, 0x1007b1220\ncall    ButtonSprite__updateBGImage                                    ; +0x53, 0x1007b1223\nmov     rdi, [rbx+2F8h]                                                ; +0x58, 0x1007b1228\nmov     rax, [rdi]                                                     ; +0x5f, 0x1007b122f\ncall    qword ptr [rax+420h]                                           ; +0x62, 0x1007b1232\nmov     rdi, rax                                                       ; +0x68, 0x1007b1238\nmov     rsi, r15                                                       ; +0x6b, 0x1007b123b\ncall    ButtonSprite__updateBGImage                                    ; +0x6e, 0x1007b123e\nmov     rdi, [rbx+2F0h]                                                ; +0x73, 0x1007b1243\nmov     eax, r14d                                                      ; +0x7a, 0x1007b124a\nxor     al, 1                                                          ; +0x7d, 0x1007b124d\nmov     rcx, [rdi]                                                     ; +0x7f, 0x1007b124f\nmovzx   esi, al                                                        ; +0x82, 0x1007b1252\ncall    qword ptr [rcx+410h]                                           ; +0x85, 0x1007b1255\nmov     rdi, [rbx+2F8h]                                                ; +0x8b, 0x1007b125b\nmov     rax, [rdi]                                                     ; +0x92, 0x1007b1262\nmov     rax, [rax+410h]                                                ; +0x95, 0x1007b1265\nmovzx   esi, r14b                                                      ; +0x9c, 0x1007b126c\nadd     rsp, 8                                                         ; +0xa0, 0x1007b1270\npop     rbx                                                            ; +0xa4, 0x1007b1274\npop     r14                                                            ; +0xa5, 0x1007b1275\npop     r15                                                            ; +0xa7, 0x1007b1277\npop     rbp                                                            ; +0xa9, 0x1007b1279\njmp     rax                                                            ; +0xaa, 0x1007b127a", "xrefs": [], "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"}