{"type": "func", "start": 5372717680, "end": 5372717926, "name": "InfoLayer::updateCommentModeButtons", "pseudocode": "// \n// InfoLayer::updateCommentModeButtons from 0x1403d2a70 to 0x1403d2b66 (246 bytes)\n// \n// 4 xrefs:\n// > InfoLayer::init @ 0x1403cf787\n// > InfoLayer::commentUploadFinished @ 0x1403d23de\n// > InfoLayer::toggleCommentMode @ 0x1403d2a52\n// > <???> @ 0x1409247ac\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:31:35 +0000\n// \n\n__int64 __fastcall InfoLayer::updateCommentModeButtons(__int64 a1)\n{\n  __int64 v2; // rcx\n  bool GameVariable; // di\n  __int64 v4; // rax\n  const char *v5; // rbx\n  const char *v6; // rdx\n  __int64 v7; // rax\n  void *v9; // [rsp+30h] [rbp+8h]\n\n  v2 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v9 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager((__int64)v9);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v2 = qword_14090BFD0;\n  }\n  GameVariable = GameManager::getGameVariable(v2, \"0069\");\n  v4 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 808) + 952LL))(*(_QWORD *)(a1 + 808));\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 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 816) + 952LL))(*(_QWORD *)(a1 + 816));\n  if ( !GameVariable )\n    v5 = \"GJ_button_02.png\";\n  ButtonSprite::updateBGImage(v7, v5);\n  (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 808) + 936LL))(*(_QWORD *)(a1 + 808), !GameVariable);\n  return (*(__int64 (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 816) + 936LL))(\n           *(_QWORD *)(a1 + 816),\n           GameVariable);\n}", "assembly": "; \n; InfoLayer::updateCommentModeButtons from 0x1403d2a70 to 0x1403d2b66 (246 bytes)\n; \n; 4 xrefs:\n; > InfoLayer::init @ 0x1403cf787\n; > InfoLayer::commentUploadFinished @ 0x1403d23de\n; > InfoLayer::toggleCommentMode @ 0x1403d2a52\n; > <???> @ 0x1409247ac\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:31:35 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1403d2a70\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1403d2a75\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x1403d2a7a\npush    rdi                                                            ; +0xf, 0x1403d2a7f\nsub     rsp, 20h                                                       ; +0x10, 0x1403d2a80\nmov     rsi, rcx                                                       ; +0x14, 0x1403d2a84\nmov     rcx, cs:qword_14090BFD0                                        ; +0x17, 0x1403d2a87\ntest    rcx, rcx                                                       ; +0x1e, 0x1403d2a8e\njnz     short loc_1403D2AC5                                            ; +0x21, 0x1403d2a91\nmov     ecx, 6E8h; Size                                                ; +0x23, 0x1403d2a93\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x28, 0x1403d2a98\nmov     [rsp+28h+arg_0], rax                                           ; +0x2d, 0x1403d2a9d\nmov     rcx, rax                                                       ; +0x32, 0x1403d2aa2\ncall    GameManager__GameManager                                       ; +0x35, 0x1403d2aa5\nnop                                                                    ; +0x3a, 0x1403d2aaa\nmov     cs:qword_14090BFD0, rax                                        ; +0x3b, 0x1403d2aab\nmov     rcx, [rax]                                                     ; +0x42, 0x1403d2ab2\nmov     rdx, [rcx+48h]                                                 ; +0x45, 0x1403d2ab5\nmov     rcx, rax                                                       ; +0x49, 0x1403d2ab9\ncall    rdx                                                            ; +0x4c, 0x1403d2abc\nmov     rcx, cs:qword_14090BFD0                                        ; +0x4e, 0x1403d2abe\nlea     rdx, a0069; \"0069\"                                             ; +0x55, 0x1403d2ac5\ncall    GameManager__getGameVariable                                   ; +0x5c, 0x1403d2acc\nmovzx   edi, al                                                        ; +0x61, 0x1403d2ad1\nmov     rcx, [rsi+328h]                                                ; +0x64, 0x1403d2ad4\nmov     rax, [rcx]                                                     ; +0x6b, 0x1403d2adb\ncall    qword ptr [rax+3B8h]                                           ; +0x6e, 0x1403d2ade\nlea     rbp, aGjButton02Png; \"GJ_button_02.png\"                        ; +0x74, 0x1403d2ae4\nlea     rbx, aGjButton01Png; \"GJ_button_01.png\"                        ; +0x7b, 0x1403d2aeb\nmov     rdx, rbx                                                       ; +0x82, 0x1403d2af2\ntest    dil, dil                                                       ; +0x85, 0x1403d2af5\ncmovnz  rdx, rbp                                                       ; +0x88, 0x1403d2af8\nmov     rcx, rax                                                       ; +0x8c, 0x1403d2afc\ncall    ButtonSprite__updateBGImage                                    ; +0x8f, 0x1403d2aff\nmov     rcx, [rsi+330h]                                                ; +0x94, 0x1403d2b04\nmov     rax, [rcx]                                                     ; +0x9b, 0x1403d2b0b\ncall    qword ptr [rax+3B8h]                                           ; +0x9e, 0x1403d2b0e\ntest    dil, dil                                                       ; +0xa4, 0x1403d2b14\ncmovz   rbx, rbp                                                       ; +0xa7, 0x1403d2b17\nmov     rdx, rbx                                                       ; +0xab, 0x1403d2b1b\nmov     rcx, rax                                                       ; +0xae, 0x1403d2b1e\ncall    ButtonSprite__updateBGImage                                    ; +0xb1, 0x1403d2b21\nmov     rcx, [rsi+328h]                                                ; +0xb6, 0x1403d2b26\nmovzx   edx, dil                                                       ; +0xbd, 0x1403d2b2d\nxor     dl, 1                                                          ; +0xc1, 0x1403d2b31\nmov     rax, [rcx]                                                     ; +0xc4, 0x1403d2b34\ncall    qword ptr [rax+3A8h]                                           ; +0xc7, 0x1403d2b37\nmov     rcx, [rsi+330h]                                                ; +0xcd, 0x1403d2b3d\nmov     rax, [rcx]                                                     ; +0xd4, 0x1403d2b44\nmovzx   edx, dil                                                       ; +0xd7, 0x1403d2b47\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xdb, 0x1403d2b4b\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xe0, 0x1403d2b50\nmov     rsi, [rsp+28h+arg_18]                                          ; +0xe5, 0x1403d2b55\nadd     rsp, 20h                                                       ; +0xea, 0x1403d2b5a\npop     rdi                                                            ; +0xee, 0x1403d2b5e\njmp     qword ptr [rax+3A8h]                                           ; +0xef, 0x1403d2b5f", "xrefs": ["InfoLayer::init @ 0x1403cf787", "InfoLayer::commentUploadFinished @ 0x1403d23de", "InfoLayer::toggleCommentMode @ 0x1403d2a52", "<???> @ 0x1409247ac"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}