{"type": "func", "start": 5371590048, "end": 5371590291, "name": "InfoLayer::updateCommentModeButtons", "pseudocode": "// \n// InfoLayer::updateCommentModeButtons from 0x1402bf5a0 to 0x1402bf693 (243 bytes)\n// \n// 4 xrefs:\n// > InfoLayer::init @ 0x1402bc340\n// > InfoLayer::commentUploadFinished @ 0x1402beffa\n// > InfoLayer::toggleCommentMode @ 0x1402bf57c\n// > <???> @ 0x1406d2900\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 InfoLayer::updateCommentModeButtons(InfoLayer *a1)\n{\n  GameManager *v2; // rcx\n  bool GameVariable; // di\n  ButtonSprite *v4; // rax\n  const char *v5; // rbx\n  const char *v6; // rdx\n  ButtonSprite *v7; // rax\n  void *v8; // [rsp+30h] [rbp+8h]\n\n  v2 = (GameManager *)qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v8 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v8);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v2 = (GameManager *)qword_1406C2ED8;\n  }\n  GameVariable = GameManager::getGameVariable(v2, \"0069\");\n  v4 = (ButtonSprite *)a1->m_likeBtn->getNormalImage(a1->m_likeBtn);\n  v5 = \"GJ_button_01.png\";\n  v6 = \"GJ_button_01.png\";\n  if ( GameVariable )\n    v6 = \"GJ_button_02.png\";\n  ButtonSprite::updateBGImage(v4, v6);\n  v7 = (ButtonSprite *)a1->m_timeBtn->getNormalImage(a1->m_timeBtn);\n  if ( !GameVariable )\n    v5 = \"GJ_button_02.png\";\n  ButtonSprite::updateBGImage(v7, v5);\n  a1->m_likeBtn->setEnabled(a1->m_likeBtn, !GameVariable);\n  a1->m_timeBtn->setEnabled(a1->m_timeBtn, GameVariable);\n}", "assembly": "; \n; InfoLayer::updateCommentModeButtons from 0x1402bf5a0 to 0x1402bf693 (243 bytes)\n; \n; 4 xrefs:\n; > InfoLayer::init @ 0x1402bc340\n; > InfoLayer::commentUploadFinished @ 0x1402beffa\n; > InfoLayer::toggleCommentMode @ 0x1402bf57c\n; > <???> @ 0x1406d2900\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1402bf5a0\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1402bf5a5\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x1402bf5aa\npush    rdi                                                            ; +0xf, 0x1402bf5af\nsub     rsp, 20h                                                       ; +0x10, 0x1402bf5b0\nmov     rsi, rcx                                                       ; +0x14, 0x1402bf5b4\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x17, 0x1402bf5b7\ntest    rcx, rcx                                                       ; +0x1e, 0x1402bf5be\njnz     short loc_1402BF5F2                                            ; +0x21, 0x1402bf5c1\nmov     ecx, 668h; Size                                                ; +0x23, 0x1402bf5c3\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x28, 0x1402bf5c8\nmov     [rsp+28h+arg_0], rax                                           ; +0x2d, 0x1402bf5cd\nmov     rcx, rax                                                       ; +0x32, 0x1402bf5d2\ncall    sub_14017AB00                                                  ; +0x35, 0x1402bf5d5\nnop                                                                    ; +0x3a, 0x1402bf5da\nmov     cs:qword_1406C2ED8, rax                                        ; +0x3b, 0x1402bf5db\nmov     rdx, [rax]                                                     ; +0x42, 0x1402bf5e2\nmov     rcx, rax                                                       ; +0x45, 0x1402bf5e5\ncall    qword ptr [rdx+48h]                                            ; +0x48, 0x1402bf5e8\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x4b, 0x1402bf5eb\nlea     rdx, a0069; \"0069\"                                             ; +0x52, 0x1402bf5f2\ncall    GameManager__getGameVariable                                   ; +0x59, 0x1402bf5f9\nmovzx   edi, al                                                        ; +0x5e, 0x1402bf5fe\nmov     rcx, [rsi+2F8h]                                                ; +0x61, 0x1402bf601\nmov     rax, [rcx]                                                     ; +0x68, 0x1402bf608\ncall    qword ptr [rax+3A8h]                                           ; +0x6b, 0x1402bf60b\nlea     rbp, aGjButton02Png; \"GJ_button_02.png\"                        ; +0x71, 0x1402bf611\nlea     rbx, aGjButton01Png; \"GJ_button_01.png\"                        ; +0x78, 0x1402bf618\nmov     rdx, rbx                                                       ; +0x7f, 0x1402bf61f\ntest    dil, dil                                                       ; +0x82, 0x1402bf622\ncmovnz  rdx, rbp                                                       ; +0x85, 0x1402bf625\nmov     rcx, rax                                                       ; +0x89, 0x1402bf629\ncall    ButtonSprite__updateBGImage                                    ; +0x8c, 0x1402bf62c\nmov     rcx, [rsi+300h]                                                ; +0x91, 0x1402bf631\nmov     rax, [rcx]                                                     ; +0x98, 0x1402bf638\ncall    qword ptr [rax+3A8h]                                           ; +0x9b, 0x1402bf63b\ntest    dil, dil                                                       ; +0xa1, 0x1402bf641\ncmovz   rbx, rbp                                                       ; +0xa4, 0x1402bf644\nmov     rdx, rbx                                                       ; +0xa8, 0x1402bf648\nmov     rcx, rax                                                       ; +0xab, 0x1402bf64b\ncall    ButtonSprite__updateBGImage                                    ; +0xae, 0x1402bf64e\nmov     rcx, [rsi+2F8h]                                                ; +0xb3, 0x1402bf653\nmov     rax, [rcx]                                                     ; +0xba, 0x1402bf65a\nmovzx   edx, dil                                                       ; +0xbd, 0x1402bf65d\nxor     dl, 1                                                          ; +0xc1, 0x1402bf661\ncall    qword ptr [rax+398h]                                           ; +0xc4, 0x1402bf664\nmov     rcx, [rsi+300h]                                                ; +0xca, 0x1402bf66a\nmov     rax, [rcx]                                                     ; +0xd1, 0x1402bf671\nmovzx   edx, dil                                                       ; +0xd4, 0x1402bf674\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xd8, 0x1402bf678\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xdd, 0x1402bf67d\nmov     rsi, [rsp+28h+arg_18]                                          ; +0xe2, 0x1402bf682\nadd     rsp, 20h                                                       ; +0xe7, 0x1402bf687\npop     rdi                                                            ; +0xeb, 0x1402bf68b\njmp     qword ptr [rax+398h]                                           ; +0xec, 0x1402bf68c", "xrefs": ["InfoLayer::init @ 0x1402bc340", "InfoLayer::commentUploadFinished @ 0x1402beffa", "InfoLayer::toggleCommentMode @ 0x1402bf57c", "<???> @ 0x1406d2900"], "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"}