{"type": "func", "start": 5372504960, "end": 5372505153, "name": "GJAccountSettingsLayer::onGroupFriends", "pseudocode": "// \n// GJAccountSettingsLayer::onGroupFriends from 0x14039eb80 to 0x14039ec41 (193 bytes)\n// \n// 5 xrefs:\n// > GJAccountSettingsLayer::init @ 0x14039e541\n// > GJAccountSettingsLayer::init @ 0x14039dc05\n// > GJAccountSettingsLayer::init @ 0x14039dcd5\n// > GJAccountSettingsLayer::init @ 0x14039dd80\n// > <???> @ 0x1409234bc\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::onGroupFriends(__int64 a1, __int64 a2)\n{\n  int v3; // eax\n  int v4; // esi\n  __int64 result; // rax\n  unsigned int *v6; // rdi\n  __int64 *v7; // rdi\n  __int64 *i; // rbp\n  __int64 v9; // rbx\n  __int64 v10; // rdx\n\n  if ( a2 )\n  {\n    v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);\n    *(_DWORD *)(a1 + 684) = (v3 != 3) + 1;\n    *(_DWORD *)(a1 + 680) = (v3 == 2) + 1;\n  }\n  v4 = 3;\n  if ( *(_DWORD *)(a1 + 684) != 1 )\n    v4 = *(_DWORD *)(a1 + 680);\n  result = *(_QWORD *)(a1 + 736);\n  if ( result )\n  {\n    v6 = *(unsigned int **)(result + 56);\n    result = *v6;\n    if ( (_DWORD)result )\n    {\n      v7 = *((__int64 **)v6 + 2);\n      for ( i = &v7[result - 1]; v7 <= i; ++v7 )\n      {\n        v9 = *v7;\n        if ( !*v7 )\n          break;\n        LOBYTE(v10) = (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v9 + 56LL))(*v7) != v4;\n        result = CCMenuItemToggler::toggle(v9, v10);\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJAccountSettingsLayer::onGroupFriends from 0x14039eb80 to 0x14039ec41 (193 bytes)\n; \n; 5 xrefs:\n; > GJAccountSettingsLayer::init @ 0x14039e541\n; > GJAccountSettingsLayer::init @ 0x14039dc05\n; > GJAccountSettingsLayer::init @ 0x14039dcd5\n; > GJAccountSettingsLayer::init @ 0x14039dd80\n; > <???> @ 0x1409234bc\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; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14039eb80\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x14039eb85\npush    rdi                                                            ; +0xa, 0x14039eb8a\nsub     rsp, 20h                                                       ; +0xb, 0x14039eb8b\nmov     rbp, rcx                                                       ; +0xf, 0x14039eb8f\ntest    rdx, rdx                                                       ; +0x12, 0x14039eb92\njz      short loc_14039EBC5                                            ; +0x15, 0x14039eb95\nmov     rax, [rdx]                                                     ; +0x17, 0x14039eb97\nmov     rcx, rdx                                                       ; +0x1a, 0x14039eb9a\ncall    qword ptr [rax+38h]                                            ; +0x1d, 0x14039eb9d\nxor     r8d, r8d                                                       ; +0x20, 0x14039eba0\nmov     edx, r8d                                                       ; +0x23, 0x14039eba3\ncmp     eax, 3                                                         ; +0x26, 0x14039eba6\nsetnz   dl                                                             ; +0x29, 0x14039eba9\ninc     edx                                                            ; +0x2c, 0x14039ebac\ncmp     eax, 2                                                         ; +0x2e, 0x14039ebae\nmov     [rbp+2ACh], edx                                                ; +0x31, 0x14039ebb1\nsetz    r8b                                                            ; +0x37, 0x14039ebb7\ninc     r8d                                                            ; +0x3b, 0x14039ebbb\nmov     [rbp+2A8h], r8d                                                ; +0x3e, 0x14039ebbe\ncmp     dword ptr [rbp+2ACh], 1                                        ; +0x45, 0x14039ebc5\nmov     [rsp+28h+arg_0], rsi                                           ; +0x4c, 0x14039ebcc\nmov     esi, 3                                                         ; +0x51, 0x14039ebd1\njz      short loc_14039EBDE                                            ; +0x56, 0x14039ebd6\nmov     esi, [rbp+2A8h]                                                ; +0x58, 0x14039ebd8\nmov     rax, [rbp+2E0h]                                                ; +0x5e, 0x14039ebde\ntest    rax, rax                                                       ; +0x65, 0x14039ebe5\njz      short loc_14039EC2C                                            ; +0x68, 0x14039ebe8\nmov     rdi, [rax+38h]                                                 ; +0x6a, 0x14039ebea\nmov     eax, [rdi]                                                     ; +0x6e, 0x14039ebee\ntest    eax, eax                                                       ; +0x70, 0x14039ebf0\njz      short loc_14039EC2C                                            ; +0x72, 0x14039ebf2\nmov     rdi, [rdi+10h]                                                 ; +0x74, 0x14039ebf4\nlea     rbp, [rax-1]                                                   ; +0x78, 0x14039ebf8\nlea     rbp, [rdi+rbp*8]                                               ; +0x7c, 0x14039ebfc\ncmp     rdi, rbp                                                       ; +0x80, 0x14039ec00\nja      short loc_14039EC2C                                            ; +0x83, 0x14039ec03\nmov     rbx, [rdi]                                                     ; +0x85, 0x14039ec05\ntest    rbx, rbx                                                       ; +0x88, 0x14039ec08\njz      short loc_14039EC2C                                            ; +0x8b, 0x14039ec0b\nmov     rax, [rbx]                                                     ; +0x8d, 0x14039ec0d\nmov     rcx, rbx                                                       ; +0x90, 0x14039ec10\ncall    qword ptr [rax+38h]                                            ; +0x93, 0x14039ec13\ncmp     eax, esi                                                       ; +0x96, 0x14039ec16\nmov     rcx, rbx                                                       ; +0x98, 0x14039ec18\nsetnz   dl                                                             ; +0x9b, 0x14039ec1b\ncall    CCMenuItemToggler__toggle                                      ; +0x9e, 0x14039ec1e\nadd     rdi, 8                                                         ; +0xa3, 0x14039ec23\ncmp     rdi, rbp                                                       ; +0xa7, 0x14039ec27\njbe     short loc_14039EC05                                            ; +0xaa, 0x14039ec2a\nmov     rsi, [rsp+28h+arg_0]                                           ; +0xac, 0x14039ec2c\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xb1, 0x14039ec31\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xb6, 0x14039ec36\nadd     rsp, 20h                                                       ; +0xbb, 0x14039ec3b\npop     rdi                                                            ; +0xbf, 0x14039ec3f\nretn                                                                   ; +0xc0, 0x14039ec40", "xrefs": ["GJAccountSettingsLayer::init @ 0x14039e541", "GJAccountSettingsLayer::init @ 0x14039dc05", "GJAccountSettingsLayer::init @ 0x14039dcd5", "GJAccountSettingsLayer::init @ 0x14039dd80", "<???> @ 0x1409234bc"], "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"}