{"type": "func", "start": 5372504800, "end": 5372504947, "name": "GJAccountSettingsLayer::onCommentSetting", "pseudocode": "// \n// GJAccountSettingsLayer::onCommentSetting from 0x14039eae0 to 0x14039eb73 (147 bytes)\n// \n// 6 xrefs:\n// > GJAccountSettingsLayer::init @ 0x14039df99\n// > GJAccountSettingsLayer::init @ 0x14039e056\n// > GJAccountSettingsLayer::init @ 0x14039e0fe\n// > <???> @ 0x1408bf468\n// > <???> @ 0x1408bf4c0\n// > <???> @ 0x140923468\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:16 +0000\n// \n\n__int64 __fastcall GJAccountSettingsLayer::onCommentSetting(__int64 a1, __int64 a2)\n{\n  __int64 result; // rax\n  unsigned int *v4; // rdi\n  __int64 *v5; // rdi\n  __int64 *i; // rbp\n  __int64 v7; // rbx\n  __int64 v8; // rdx\n\n  if ( a2 )\n    *(_DWORD *)(a1 + 676) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);\n  result = *(_QWORD *)(a1 + 728);\n  if ( result )\n  {\n    v4 = *(unsigned int **)(result + 56);\n    result = *v4;\n    if ( (_DWORD)result )\n    {\n      v5 = *((__int64 **)v4 + 2);\n      for ( i = &v5[result - 1]; v5 <= i; ++v5 )\n      {\n        v7 = *v5;\n        if ( !*v5 )\n          break;\n        LOBYTE(v8) = (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v7 + 56LL))(*v5) != *(_DWORD *)(a1 + 676);\n        result = CCMenuItemToggler::toggle(v7, v8);\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJAccountSettingsLayer::onCommentSetting from 0x14039eae0 to 0x14039eb73 (147 bytes)\n; \n; 6 xrefs:\n; > GJAccountSettingsLayer::init @ 0x14039df99\n; > GJAccountSettingsLayer::init @ 0x14039e056\n; > GJAccountSettingsLayer::init @ 0x14039e0fe\n; > <???> @ 0x1408bf468\n; > <???> @ 0x1408bf4c0\n; > <???> @ 0x140923468\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:16 +0000\n; \npush    rsi                                                            ; +0x0, 0x14039eae0\nsub     rsp, 20h                                                       ; +0x2, 0x14039eae2\nmov     rsi, rcx                                                       ; +0x6, 0x14039eae6\ntest    rdx, rdx                                                       ; +0x9, 0x14039eae9\njz      short loc_14039EAFD                                            ; +0xc, 0x14039eaec\nmov     rax, [rdx]                                                     ; +0xe, 0x14039eaee\nmov     rcx, rdx                                                       ; +0x11, 0x14039eaf1\ncall    qword ptr [rax+38h]                                            ; +0x14, 0x14039eaf4\nmov     [rsi+2A4h], eax                                                ; +0x17, 0x14039eaf7\nmov     rax, [rsi+2D8h]                                                ; +0x1d, 0x14039eafd\ntest    rax, rax                                                       ; +0x24, 0x14039eb04\njz      short loc_14039EB6D                                            ; +0x27, 0x14039eb07\nmov     [rsp+28h+arg_10], rdi                                          ; +0x29, 0x14039eb09\nmov     rdi, [rax+38h]                                                 ; +0x2e, 0x14039eb0e\nmov     eax, [rdi]                                                     ; +0x32, 0x14039eb12\ntest    eax, eax                                                       ; +0x34, 0x14039eb14\njz      short loc_14039EB68                                            ; +0x36, 0x14039eb16\nmov     rdi, [rdi+10h]                                                 ; +0x38, 0x14039eb18\nmov     [rsp+28h+arg_8], rbp                                           ; +0x3c, 0x14039eb1c\nlea     rbp, [rax-1]                                                   ; +0x41, 0x14039eb21\nlea     rbp, [rdi+rbp*8]                                               ; +0x45, 0x14039eb25\ncmp     rdi, rbp                                                       ; +0x49, 0x14039eb29\nja      short loc_14039EB63                                            ; +0x4c, 0x14039eb2c\nmov     [rsp+28h+arg_0], rbx                                           ; +0x4e, 0x14039eb2e\nmov     rbx, [rdi]                                                     ; +0x53, 0x14039eb33\ntest    rbx, rbx                                                       ; +0x56, 0x14039eb36\njz      short loc_14039EB5E                                            ; +0x59, 0x14039eb39\nmov     rax, [rbx]                                                     ; +0x5b, 0x14039eb3b\nmov     rcx, rbx                                                       ; +0x5e, 0x14039eb3e\ncall    qword ptr [rax+38h]                                            ; +0x61, 0x14039eb41\ncmp     eax, [rsi+2A4h]                                                ; +0x64, 0x14039eb44\nmov     rcx, rbx                                                       ; +0x6a, 0x14039eb4a\nsetnz   dl                                                             ; +0x6d, 0x14039eb4d\ncall    CCMenuItemToggler__toggle                                      ; +0x70, 0x14039eb50\nadd     rdi, 8                                                         ; +0x75, 0x14039eb55\ncmp     rdi, rbp                                                       ; +0x79, 0x14039eb59\njbe     short loc_14039EB33                                            ; +0x7c, 0x14039eb5c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x7e, 0x14039eb5e\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x83, 0x14039eb63\nmov     rdi, [rsp+28h+arg_10]                                          ; +0x88, 0x14039eb68\nadd     rsp, 20h                                                       ; +0x8d, 0x14039eb6d\npop     rsi                                                            ; +0x91, 0x14039eb71\nretn                                                                   ; +0x92, 0x14039eb72", "xrefs": ["GJAccountSettingsLayer::init @ 0x14039df99", "GJAccountSettingsLayer::init @ 0x14039e056", "GJAccountSettingsLayer::init @ 0x14039e0fe", "<???> @ 0x1408bf468", "<???> @ 0x1408bf4c0", "<???> @ 0x140923468"], "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"}