{"type": "func", "start": 5372504480, "end": 5372504627, "name": "GJAccountSettingsLayer::onMessageSetting", "pseudocode": "// \n// GJAccountSettingsLayer::onMessageSetting from 0x14039e9a0 to 0x14039ea33 (147 bytes)\n// \n// 6 xrefs:\n// > GJAccountSettingsLayer::init @ 0x14039d2bb\n// > GJAccountSettingsLayer::init @ 0x14039d397\n// > GJAccountSettingsLayer::init @ 0x14039d463\n// > <???> @ 0x1408bf390\n// > <???> @ 0x1408bf3e8\n// > <???> @ 0x1409233c0\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::onMessageSetting(__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 + 668) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);\n  result = *(_QWORD *)(a1 + 712);\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 + 668);\n        result = CCMenuItemToggler::toggle(v7, v8);\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJAccountSettingsLayer::onMessageSetting from 0x14039e9a0 to 0x14039ea33 (147 bytes)\n; \n; 6 xrefs:\n; > GJAccountSettingsLayer::init @ 0x14039d2bb\n; > GJAccountSettingsLayer::init @ 0x14039d397\n; > GJAccountSettingsLayer::init @ 0x14039d463\n; > <???> @ 0x1408bf390\n; > <???> @ 0x1408bf3e8\n; > <???> @ 0x1409233c0\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, 0x14039e9a0\nsub     rsp, 20h                                                       ; +0x2, 0x14039e9a2\nmov     rsi, rcx                                                       ; +0x6, 0x14039e9a6\ntest    rdx, rdx                                                       ; +0x9, 0x14039e9a9\njz      short loc_14039E9BD                                            ; +0xc, 0x14039e9ac\nmov     rax, [rdx]                                                     ; +0xe, 0x14039e9ae\nmov     rcx, rdx                                                       ; +0x11, 0x14039e9b1\ncall    qword ptr [rax+38h]                                            ; +0x14, 0x14039e9b4\nmov     [rsi+29Ch], eax                                                ; +0x17, 0x14039e9b7\nmov     rax, [rsi+2C8h]                                                ; +0x1d, 0x14039e9bd\ntest    rax, rax                                                       ; +0x24, 0x14039e9c4\njz      short loc_14039EA2D                                            ; +0x27, 0x14039e9c7\nmov     [rsp+28h+arg_10], rdi                                          ; +0x29, 0x14039e9c9\nmov     rdi, [rax+38h]                                                 ; +0x2e, 0x14039e9ce\nmov     eax, [rdi]                                                     ; +0x32, 0x14039e9d2\ntest    eax, eax                                                       ; +0x34, 0x14039e9d4\njz      short loc_14039EA28                                            ; +0x36, 0x14039e9d6\nmov     rdi, [rdi+10h]                                                 ; +0x38, 0x14039e9d8\nmov     [rsp+28h+arg_8], rbp                                           ; +0x3c, 0x14039e9dc\nlea     rbp, [rax-1]                                                   ; +0x41, 0x14039e9e1\nlea     rbp, [rdi+rbp*8]                                               ; +0x45, 0x14039e9e5\ncmp     rdi, rbp                                                       ; +0x49, 0x14039e9e9\nja      short loc_14039EA23                                            ; +0x4c, 0x14039e9ec\nmov     [rsp+28h+arg_0], rbx                                           ; +0x4e, 0x14039e9ee\nmov     rbx, [rdi]                                                     ; +0x53, 0x14039e9f3\ntest    rbx, rbx                                                       ; +0x56, 0x14039e9f6\njz      short loc_14039EA1E                                            ; +0x59, 0x14039e9f9\nmov     rax, [rbx]                                                     ; +0x5b, 0x14039e9fb\nmov     rcx, rbx                                                       ; +0x5e, 0x14039e9fe\ncall    qword ptr [rax+38h]                                            ; +0x61, 0x14039ea01\ncmp     eax, [rsi+29Ch]                                                ; +0x64, 0x14039ea04\nmov     rcx, rbx                                                       ; +0x6a, 0x14039ea0a\nsetnz   dl                                                             ; +0x6d, 0x14039ea0d\ncall    CCMenuItemToggler__toggle                                      ; +0x70, 0x14039ea10\nadd     rdi, 8                                                         ; +0x75, 0x14039ea15\ncmp     rdi, rbp                                                       ; +0x79, 0x14039ea19\njbe     short loc_14039E9F3                                            ; +0x7c, 0x14039ea1c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x7e, 0x14039ea1e\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x83, 0x14039ea23\nmov     rdi, [rsp+28h+arg_10]                                          ; +0x88, 0x14039ea28\nadd     rsp, 20h                                                       ; +0x8d, 0x14039ea2d\npop     rsi                                                            ; +0x91, 0x14039ea31\nretn                                                                   ; +0x92, 0x14039ea32", "xrefs": ["GJAccountSettingsLayer::init @ 0x14039d2bb", "GJAccountSettingsLayer::init @ 0x14039d397", "GJAccountSettingsLayer::init @ 0x14039d463", "<???> @ 0x1408bf390", "<???> @ 0x1408bf3e8", "<???> @ 0x1409233c0"], "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"}