{"type": "func", "start": 5370889632, "end": 5370890038, "name": "FriendsProfilePage::updateCountLabel", "pseudocode": "// \n// FriendsProfilePage::updateCountLabel from 0x1402145a0 to 0x140214736 (406 bytes)\n// \n// 9 xrefs:\n// > FriendsProfilePage::onToggleSort @ 0x140214c2f\n// > FriendsProfilePage::onToggleSortDir @ 0x140214d33\n// > FriendsProfilePage::getUserListFinished @ 0x140214dab\n// > FriendsProfilePage::getUserListFinished @ 0x140214eb0\n// > FriendsProfilePage::getUserListFailed @ 0x140215670\n// > FriendsProfilePage::forceReloadList @ 0x140215762\n// > FriendsProfilePage::textChanged @ 0x140216415\n// > FriendsProfilePage::onClearSearch @ 0x140216c42\n// > <???> @ 0x14091b644\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::updateCountLabel(__int64 a1)\n{\n  cocos2d::CCArray *v2; // rcx\n  unsigned int v3; // ebp\n  __int64 v4; // rdi\n  void (__fastcall **v5)(__int64, const char *); // rbx\n  cocos2d::CCString *v6; // rax\n  const char *CString; // rax\n  cocos2d::CCArray *v8; // rcx\n  int v9; // eax\n  const char *v10; // rbx\n  __int64 v11; // rdi\n  cocos2d::CCArray *v12; // rcx\n  void (__fastcall *v13)(__int64, const char *); // r14\n  unsigned int v14; // eax\n  cocos2d::CCString *v15; // rax\n  unsigned int v16; // eax\n  const char *v17; // rax\n\n  if ( *(_BYTE *)(a1 + 928) )\n  {\n    v2 = *(cocos2d::CCArray **)(a1 + 872);\n  }\n  else\n  {\n    v2 = *(cocos2d::CCArray **)(a1 + 864);\n    if ( v2 )\n    {\nLABEL_6:\n      v3 = cocos2d::CCArray::count(v2);\n      goto LABEL_8;\n    }\n    v2 = *(cocos2d::CCArray **)(a1 + 856);\n  }\n  if ( v2 )\n    goto LABEL_6;\n  v3 = 0;\nLABEL_8:\n  if ( *(_BYTE *)(a1 + 928) )\n  {\n    v4 = *(_QWORD *)(a1 + 824);\n    v5 = *(void (__fastcall ***)(__int64, const char *))(v4 + 360);\n    v6 = cocos2d::CCString::createWithFormat(\"Found: %i users\", v3);\n    CString = cocos2d::CCString::getCString(v6);\n    (*v5)(v4 + 360, CString);\n  }\n  else\n  {\n    v8 = *(cocos2d::CCArray **)(a1 + 856);\n    if ( v8 && cocos2d::CCArray::count(v8) )\n    {\n      v9 = *(_DWORD *)(a1 + 816);\n      if ( v9 == 1 )\n      {\n        v10 = \"Total blocked\";\n      }\n      else if ( v9 == 3 )\n      {\n        v10 = \"Total following\";\n      }\n      else\n      {\n        v10 = \"Total muted\";\n        if ( v9 != 4 )\n          v10 = \"Total friends\";\n      }\n      v11 = *(_QWORD *)(a1 + 824);\n      v12 = *(cocos2d::CCArray **)(a1 + 856);\n      v13 = **(void (__fastcall ***)(__int64, const char *))(v11 + 360);\n      if ( *(_QWORD *)(a1 + 896) )\n      {\n        v16 = cocos2d::CCArray::count(v12);\n        v15 = cocos2d::CCString::createWithFormat(\"Found: %i / %i\", v3, v16);\n      }\n      else\n      {\n        v14 = cocos2d::CCArray::count(v12);\n        v15 = cocos2d::CCString::createWithFormat(\"%s: %i\", v10, v14);\n      }\n      v17 = cocos2d::CCString::getCString(v15);\n      v13(v11 + 360, v17);\n    }\n    else\n    {\n      (**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 824) + 360LL))(\n        *(_QWORD *)(a1 + 824) + 360LL,\n        \" \");\n    }\n  }\n  ScrollableContentLayer::reloadVirtualRows(*(_QWORD *)(a1 + 688), 0.0);\n}", "assembly": "; \n; FriendsProfilePage::updateCountLabel from 0x1402145a0 to 0x140214736 (406 bytes)\n; \n; 9 xrefs:\n; > FriendsProfilePage::onToggleSort @ 0x140214c2f\n; > FriendsProfilePage::onToggleSortDir @ 0x140214d33\n; > FriendsProfilePage::getUserListFinished @ 0x140214dab\n; > FriendsProfilePage::getUserListFinished @ 0x140214eb0\n; > FriendsProfilePage::getUserListFailed @ 0x140215670\n; > FriendsProfilePage::forceReloadList @ 0x140215762\n; > FriendsProfilePage::textChanged @ 0x140216415\n; > FriendsProfilePage::onClearSearch @ 0x140216c42\n; > <???> @ 0x14091b644\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; \nmov     [rsp+arg_18], rbp                                              ; +0x0, 0x1402145a0\npush    rsi                                                            ; +0x5, 0x1402145a5\nsub     rsp, 20h                                                       ; +0x6, 0x1402145a6\ncmp     byte ptr [rcx+3A0h], 0                                         ; +0xa, 0x1402145aa\nmov     rsi, rcx                                                       ; +0x11, 0x1402145b1\njz      short loc_1402145BF                                            ; +0x14, 0x1402145b4\nmov     rcx, [rcx+368h]                                                ; +0x16, 0x1402145b6\njmp     short loc_1402145D2                                            ; +0x1d, 0x1402145bd\nmov     rcx, [rcx+360h]                                                ; +0x1f, 0x1402145bf\ntest    rcx, rcx                                                       ; +0x26, 0x1402145c6\njnz     short loc_1402145D7                                            ; +0x29, 0x1402145c9\nmov     rcx, [rsi+358h]                                                ; +0x2b, 0x1402145cb\ntest    rcx, rcx                                                       ; +0x32, 0x1402145d2\njz      short loc_1402145E1                                            ; +0x35, 0x1402145d5\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x37, 0x1402145d7\nmov     ebp, eax                                                       ; +0x3d, 0x1402145dd\njmp     short loc_1402145E3                                            ; +0x3f, 0x1402145df\nxor     ebp, ebp                                                       ; +0x41, 0x1402145e1\ncmp     byte ptr [rsi+3A0h], 0                                         ; +0x43, 0x1402145e3\nmov     [rsp+28h+arg_0], rbx                                           ; +0x4a, 0x1402145ea\nmov     [rsp+28h+arg_8], rdi                                           ; +0x4f, 0x1402145ef\nmov     [rsp+28h+arg_10], r14                                          ; +0x54, 0x1402145f4\njz      short loc_140214632                                            ; +0x59, 0x1402145f9\nmov     rdi, [rsi+338h]                                                ; +0x5b, 0x1402145fb\nlea     rcx, aFoundIUsers; \"Found: %i users\"                           ; +0x62, 0x140214602\nmov     edx, ebp                                                       ; +0x69, 0x140214609\nmov     rbx, [rdi+168h]                                                ; +0x6b, 0x14021460b\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x72, 0x140214612\nmov     rcx, rax                                                       ; +0x78, 0x140214618\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x7b, 0x14021461b\nmov     rdx, rax                                                       ; +0x81, 0x140214621\nlea     rcx, [rdi+168h]                                                ; +0x84, 0x140214624\ncall    qword ptr [rbx]                                                ; +0x8b, 0x14021462b\njmp     loc_14021470E                                                  ; +0x8d, 0x14021462d\nmov     rcx, [rsi+358h]                                                ; +0x92, 0x140214632\ntest    rcx, rcx                                                       ; +0x99, 0x140214639\njz      loc_1402146F4                                                  ; +0x9c, 0x14021463c\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xa2, 0x140214642\ntest    eax, eax                                                       ; +0xa8, 0x140214648\njz      loc_1402146F4                                                  ; +0xaa, 0x14021464a\nmov     eax, [rsi+330h]                                                ; +0xb0, 0x140214650\nlea     rcx, aTotalFriends; \"Total friends\"                            ; +0xb6, 0x140214656\ncmp     eax, 1                                                         ; +0xbd, 0x14021465d\njnz     short loc_14021466B                                            ; +0xc0, 0x140214660\nlea     rbx, aTotalBlocked; \"Total blocked\"                            ; +0xc2, 0x140214662\njmp     short loc_140214687                                            ; +0xc9, 0x140214669\ncmp     eax, 3                                                         ; +0xcb, 0x14021466b\njnz     short loc_140214679                                            ; +0xce, 0x14021466e\nlea     rbx, aTotalFollowing; \"Total following\"                        ; +0xd0, 0x140214670\njmp     short loc_140214687                                            ; +0xd7, 0x140214677\ncmp     eax, 4                                                         ; +0xd9, 0x140214679\nlea     rbx, aTotalMuted; \"Total muted\"                                ; +0xdc, 0x14021467c\ncmovnz  rbx, rcx                                                       ; +0xe3, 0x140214683\ncmp     qword ptr [rsi+380h], 0                                        ; +0xe7, 0x140214687\nmov     rdi, [rsi+338h]                                                ; +0xef, 0x14021468f\nmov     rcx, [rsi+358h]                                                ; +0xf6, 0x140214696\nmov     rax, [rdi+168h]                                                ; +0xfd, 0x14021469d\nmov     r14, [rax]                                                     ; +0x104, 0x1402146a4\njnz     short loc_1402146C4                                            ; +0x107, 0x1402146a7\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x109, 0x1402146a9\nmov     rdx, rbx                                                       ; +0x10f, 0x1402146af\nlea     rcx, aSI_2; \"%s: %i\"                                           ; +0x112, 0x1402146b2\nmov     r8d, eax                                                       ; +0x119, 0x1402146b9\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x11c, 0x1402146bc\njmp     short loc_1402146DC                                            ; +0x122, 0x1402146c2\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x124, 0x1402146c4\nmov     edx, ebp                                                       ; +0x12a, 0x1402146ca\nlea     rcx, aFoundII; \"Found: %i / %i\"                                ; +0x12c, 0x1402146cc\nmov     r8d, eax                                                       ; +0x133, 0x1402146d3\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x136, 0x1402146d6\nmov     rcx, rax                                                       ; +0x13c, 0x1402146dc\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x13f, 0x1402146df\nmov     rdx, rax                                                       ; +0x145, 0x1402146e5\nlea     rcx, [rdi+168h]                                                ; +0x148, 0x1402146e8\ncall    r14                                                            ; +0x14f, 0x1402146ef\njmp     short loc_14021470E                                            ; +0x152, 0x1402146f2\nmov     rcx, [rsi+338h]                                                ; +0x154, 0x1402146f4\nlea     rdx, asc_1406ED6E4; \" \"                                        ; +0x15b, 0x1402146fb\nadd     rcx, 168h                                                      ; +0x162, 0x140214702\nmov     rax, [rcx]                                                     ; +0x169, 0x140214709\ncall    qword ptr [rax]                                                ; +0x16c, 0x14021470c\nmov     rcx, [rsi+2B0h]                                                ; +0x16e, 0x14021470e\nxorps   xmm1, xmm1                                                     ; +0x175, 0x140214715\nmov     r14, [rsp+28h+arg_10]                                          ; +0x178, 0x140214718\nmov     rdi, [rsp+28h+arg_8]                                           ; +0x17d, 0x14021471d\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x182, 0x140214722\nmov     rbp, [rsp+28h+arg_18]                                          ; +0x187, 0x140214727\nadd     rsp, 20h                                                       ; +0x18c, 0x14021472c\npop     rsi                                                            ; +0x190, 0x140214730\njmp     ScrollableContentLayer__reloadVirtualRows                      ; +0x191, 0x140214731", "xrefs": ["FriendsProfilePage::onToggleSort @ 0x140214c2f", "FriendsProfilePage::onToggleSortDir @ 0x140214d33", "FriendsProfilePage::getUserListFinished @ 0x140214dab", "FriendsProfilePage::getUserListFinished @ 0x140214eb0", "FriendsProfilePage::getUserListFailed @ 0x140215670", "FriendsProfilePage::forceReloadList @ 0x140215762", "FriendsProfilePage::textChanged @ 0x140216415", "FriendsProfilePage::onClearSearch @ 0x140216c42", "<???> @ 0x14091b644"], "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"}