{"type": "func", "start": 4303032368, "end": 4303032589, "name": "InfoLayer::toggleCommentMode", "pseudocode": "// \n// InfoLayer::toggleCommentMode from 0x1007b1030 to 0x1007b110d (221 bytes)\n// \n// 2 xrefs:\n// > InfoLayer::init @ 0x1007af900\n// > InfoLayer::init @ 0x1007af9d0\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::toggleCommentMode(InfoLayer *a1, cocos2d::CCObject *a2)\n{\n  bool v2; // r14\n  GameManager *v3; // rax\n  GameManager *v4; // rax\n  bool GameVariable; // r14\n  ButtonSprite *v6; // rax\n  const char *v7; // r15\n  const char *v8; // rsi\n  ButtonSprite *v9; // rax\n\n  v2 = ((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) == 0;\n  v3 = GameManager::sharedState();\n  GameManager::setGameVariable(v3, \"0069\", v2);\n  v4 = GameManager::sharedState();\n  GameVariable = GameManager::getGameVariable(v4, \"0069\");\n  v6 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_likeBtn->getNormalImage)(a1->m_likeBtn);\n  v7 = \"GJ_button_02.png\";\n  v8 = \"GJ_button_01.png\";\n  if ( GameVariable )\n  {\n    v8 = \"GJ_button_02.png\";\n    v7 = \"GJ_button_01.png\";\n  }\n  ButtonSprite::updateBGImage(v6, v8);\n  v9 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_timeBtn->getNormalImage)(a1->m_timeBtn);\n  ButtonSprite::updateBGImage(v9, v7);\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  InfoLayer::loadPage(a1, 0, 0);\n}", "assembly": "; \n; InfoLayer::toggleCommentMode from 0x1007b1030 to 0x1007b110d (221 bytes)\n; \n; 2 xrefs:\n; > InfoLayer::init @ 0x1007af900\n; > InfoLayer::init @ 0x1007af9d0\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, 0x1007b1030\nmov     rbp, rsp                                                       ; +0x1, 0x1007b1031\npush    r15                                                            ; +0x4, 0x1007b1034\npush    r14                                                            ; +0x6, 0x1007b1036\npush    rbx                                                            ; +0x8, 0x1007b1038\npush    rax                                                            ; +0x9, 0x1007b1039\nmov     rbx, rdi                                                       ; +0xa, 0x1007b103a\nmov     rax, [rsi]                                                     ; +0xd, 0x1007b103d\nmov     rdi, rsi                                                       ; +0x10, 0x1007b1040\ncall    qword ptr [rax+40h]                                            ; +0x13, 0x1007b1043\nxor     r14d, r14d                                                     ; +0x16, 0x1007b1046\ntest    eax, eax                                                       ; +0x19, 0x1007b1049\nsetz    r14b                                                           ; +0x1b, 0x1007b104b\ncall    GameManager__sharedState                                       ; +0x1f, 0x1007b104f\nlea     r15, a0069; \"0069\"                                             ; +0x24, 0x1007b1054\nmov     rdi, rax                                                       ; +0x2b, 0x1007b105b\nmov     rsi, r15                                                       ; +0x2e, 0x1007b105e\nmov     edx, r14d                                                      ; +0x31, 0x1007b1061\ncall    GameManager__setGameVariable                                   ; +0x34, 0x1007b1064\ncall    GameManager__sharedState                                       ; +0x39, 0x1007b1069\nmov     rdi, rax                                                       ; +0x3e, 0x1007b106e\nmov     rsi, r15                                                       ; +0x41, 0x1007b1071\ncall    GameManager__getGameVariable                                   ; +0x44, 0x1007b1074\nmov     r14d, eax                                                      ; +0x49, 0x1007b1079\nmov     rdi, [rbx+2F0h]                                                ; +0x4c, 0x1007b107c\nmov     rax, [rdi]                                                     ; +0x53, 0x1007b1083\ncall    qword ptr [rax+420h]                                           ; +0x56, 0x1007b1086\nlea     r15, aGjButton02Png; \"GJ_button_02.png\"                        ; +0x5c, 0x1007b108c\nlea     rcx, aGjButton01Png; \"GJ_button_01.png\"                        ; +0x63, 0x1007b1093\ntest    r14b, r14b                                                     ; +0x6a, 0x1007b109a\nmov     rsi, rcx                                                       ; +0x6d, 0x1007b109d\ncmovnz  rsi, r15                                                       ; +0x70, 0x1007b10a0\ncmovnz  r15, rcx                                                       ; +0x74, 0x1007b10a4\nmov     rdi, rax                                                       ; +0x78, 0x1007b10a8\ncall    ButtonSprite__updateBGImage                                    ; +0x7b, 0x1007b10ab\nmov     rdi, [rbx+2F8h]                                                ; +0x80, 0x1007b10b0\nmov     rax, [rdi]                                                     ; +0x87, 0x1007b10b7\ncall    qword ptr [rax+420h]                                           ; +0x8a, 0x1007b10ba\nmov     rdi, rax                                                       ; +0x90, 0x1007b10c0\nmov     rsi, r15                                                       ; +0x93, 0x1007b10c3\ncall    ButtonSprite__updateBGImage                                    ; +0x96, 0x1007b10c6\nmov     rdi, [rbx+2F0h]                                                ; +0x9b, 0x1007b10cb\nmov     eax, r14d                                                      ; +0xa2, 0x1007b10d2\nxor     al, 1                                                          ; +0xa5, 0x1007b10d5\nmov     rcx, [rdi]                                                     ; +0xa7, 0x1007b10d7\nmovzx   esi, al                                                        ; +0xaa, 0x1007b10da\ncall    qword ptr [rcx+410h]                                           ; +0xad, 0x1007b10dd\nmov     rdi, [rbx+2F8h]                                                ; +0xb3, 0x1007b10e3\nmov     rax, [rdi]                                                     ; +0xba, 0x1007b10ea\nmovzx   esi, r14b                                                      ; +0xbd, 0x1007b10ed\ncall    qword ptr [rax+410h]                                           ; +0xc1, 0x1007b10f1\nmov     rdi, rbx                                                       ; +0xc7, 0x1007b10f7\nxor     esi, esi                                                       ; +0xca, 0x1007b10fa\nxor     edx, edx                                                       ; +0xcc, 0x1007b10fc\nadd     rsp, 8                                                         ; +0xce, 0x1007b10fe\npop     rbx                                                            ; +0xd2, 0x1007b1102\npop     r14                                                            ; +0xd3, 0x1007b1103\npop     r15                                                            ; +0xd5, 0x1007b1105\npop     rbp                                                            ; +0xd7, 0x1007b1107\njmp     InfoLayer__loadPage                                            ; +0xd8, 0x1007b1108", "xrefs": ["InfoLayer::init @ 0x1007af900", "InfoLayer::init @ 0x1007af9d0"], "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"}