{"type": "func", "start": 5370891168, "end": 5370891316, "name": "FriendsProfilePage::onToggleSort", "pseudocode": "// \n// FriendsProfilePage::onToggleSort from 0x140214ba0 to 0x140214c34 (148 bytes)\n// \n// 2 xrefs:\n// > FriendsProfilePage::init @ 0x140213ff8\n// > <???> @ 0x14091b668\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:28:20 +0000\n// \n\nvoid __fastcall FriendsProfilePage::onToggleSort(__int64 a1)\n{\n  char v2; // cl\n  __int64 v3; // r8\n  const char *v4; // rcx\n  const char *v5; // rdx\n\n  v2 = *(_BYTE *)(a1 + 952);\n  v3 = *(_QWORD *)(a1 + 944);\n  *(_BYTE *)(a1 + 952) = v2 == 0;\n  if ( v3 )\n  {\n    if ( v2 )\n    {\n      v4 = \"Z-A\";\n      v5 = \"A-Z\";\n    }\n    else\n    {\n      v4 = \"Old\";\n      v5 = \"New\";\n    }\n    if ( *(_BYTE *)(a1 + 976) )\n      v5 = v4;\n    (**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(v3 + 632) + 360LL))(*(_QWORD *)(v3 + 632) + 360LL, v5);\n  }\n  FriendsProfilePage::sortUsers(a1);\n  if ( *(_QWORD *)(a1 + 896) )\n    FriendsProfilePage::filterUsersWithQuery(a1);\n  FriendsProfilePage::updateCountLabel(a1);\n}", "assembly": "; \n; FriendsProfilePage::onToggleSort from 0x140214ba0 to 0x140214c34 (148 bytes)\n; \n; 2 xrefs:\n; > FriendsProfilePage::init @ 0x140213ff8\n; > <???> @ 0x14091b668\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:28:20 +0000\n; \npush    rbx                                                            ; +0x0, 0x140214ba0\nsub     rsp, 20h                                                       ; +0x2, 0x140214ba2\nmov     rbx, rcx                                                       ; +0x6, 0x140214ba6\nmovzx   ecx, byte ptr [rcx+3B8h]                                       ; +0x9, 0x140214ba9\ntest    cl, cl                                                         ; +0x10, 0x140214bb0\nsetz    al                                                             ; +0x12, 0x140214bb2\nmov     r8, [rbx+3B0h]                                                 ; +0x15, 0x140214bb5\nmov     [rbx+3B8h], al                                                 ; +0x1c, 0x140214bbc\ntest    r8, r8                                                         ; +0x22, 0x140214bc2\njz      short loc_140214C09                                            ; +0x25, 0x140214bc5\nmovzx   eax, byte ptr [rbx+3D0h]                                       ; +0x27, 0x140214bc7\ntest    cl, cl                                                         ; +0x2e, 0x140214bce\njnz     short loc_140214BE2                                            ; +0x30, 0x140214bd0\nlea     rcx, aOld; \"Old\"                                               ; +0x32, 0x140214bd2\nlea     rdx, aNew_0; \"New\"                                             ; +0x39, 0x140214bd9\njmp     short loc_140214BF0                                            ; +0x40, 0x140214be0\nlea     rcx, aZA; \"Z-A\"                                                ; +0x42, 0x140214be2\nlea     rdx, aAZ; \"A-Z\"                                                ; +0x49, 0x140214be9\ntest    al, al                                                         ; +0x50, 0x140214bf0\ncmovnz  rdx, rcx                                                       ; +0x52, 0x140214bf2\nmov     rcx, [r8+278h]                                                 ; +0x56, 0x140214bf6\nadd     rcx, 168h                                                      ; +0x5d, 0x140214bfd\nmov     rax, [rcx]                                                     ; +0x64, 0x140214c04\ncall    qword ptr [rax]                                                ; +0x67, 0x140214c07\nmov     rcx, rbx                                                       ; +0x69, 0x140214c09\ncall    FriendsProfilePage__sortUsers                                  ; +0x6c, 0x140214c0c\nlea     rdx, [rbx+370h]                                                ; +0x71, 0x140214c11\ncmp     qword ptr [rdx+10h], 0                                         ; +0x78, 0x140214c18\njz      short loc_140214C27                                            ; +0x7d, 0x140214c1d\nmov     rcx, rbx                                                       ; +0x7f, 0x140214c1f\ncall    FriendsProfilePage__filterUsersWithQuery                       ; +0x82, 0x140214c22\nmov     rcx, rbx                                                       ; +0x87, 0x140214c27\nadd     rsp, 20h                                                       ; +0x8a, 0x140214c2a\npop     rbx                                                            ; +0x8e, 0x140214c2e\njmp     FriendsProfilePage__updateCountLabel                           ; +0x8f, 0x140214c2f", "xrefs": ["FriendsProfilePage::init @ 0x140213ff8", "<???> @ 0x14091b668"], "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"}