{"type": "func", "start": 5369661840, "end": 5369662005, "name": "FriendPickerPopup::updateCountLabel", "pseudocode": "// \n// FriendPickerPopup::updateCountLabel from 0x1400e8990 to 0x1400e8a35 (165 bytes)\n// \n// 5 xrefs:\n// > FriendPickerPopup::init @ 0x1400e7404\n// > FriendPickerPopup::buildRows @ 0x1400e8170\n// > <???> @ 0x1408936dc\n// > <???> @ 0x1408936ec\n// > <???> @ 0x140914d80\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:26:33 +0000\n// \n\nvoid __fastcall FriendPickerPopup::updateCountLabel(__int64 a1)\n{\n  __int64 v2; // rcx\n  int v3; // esi\n  __int64 v4; // rdi\n  __int64 v5; // rcx\n  void (__fastcall **v6)(__int64, const char *); // rbx\n  int v7; // eax\n  int v8; // r8d\n  int v9; // edx\n  cocos2d::CCString *v10; // rax\n  const char *CString; // rax\n\n  if ( *(_QWORD *)(a1 + 880) )\n  {\n    v2 = *(_QWORD *)(a1 + 792);\n    if ( v2 )\n    {\n      v3 = (*(__int64 (**)(void))(*(_QWORD *)v2 + 16LL))();\n      v4 = *(_QWORD *)(a1 + 880);\n      if ( *(_BYTE *)(a1 + 828) )\n      {\n        v5 = *(_QWORD *)(a1 + 792);\n        v6 = *(void (__fastcall ***)(__int64, const char *))(v4 + 360);\n        v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 56LL))(v5);\n        v8 = 10;\n        v9 = v3 + v7;\n      }\n      else\n      {\n        v6 = *(void (__fastcall ***)(__int64, const char *))(v4 + 360);\n        v8 = 9;\n        v9 = v3;\n      }\n      v10 = cocos2d::CCString::createWithFormat(\"%i/%i\", v9, v8);\n      CString = cocos2d::CCString::getCString(v10);\n      (*v6)(v4 + 360, CString);\n    }\n  }\n}", "assembly": "; \n; FriendPickerPopup::updateCountLabel from 0x1400e8990 to 0x1400e8a35 (165 bytes)\n; \n; 5 xrefs:\n; > FriendPickerPopup::init @ 0x1400e7404\n; > FriendPickerPopup::buildRows @ 0x1400e8170\n; > <???> @ 0x1408936dc\n; > <???> @ 0x1408936ec\n; > <???> @ 0x140914d80\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:26:33 +0000\n; \npush    rbx                                                            ; +0x0, 0x1400e8990\nsub     rsp, 20h                                                       ; +0x2, 0x1400e8992\ncmp     qword ptr [rcx+370h], 0                                        ; +0x6, 0x1400e8996\nmov     rbx, rcx                                                       ; +0xe, 0x1400e899e\njz      loc_1400E8A2F                                                  ; +0x11, 0x1400e89a1\nmov     rcx, [rcx+318h]                                                ; +0x17, 0x1400e89a7\ntest    rcx, rcx                                                       ; +0x1e, 0x1400e89ae\njz      short loc_1400E8A2F                                            ; +0x21, 0x1400e89b1\nmov     rax, [rcx]                                                     ; +0x23, 0x1400e89b3\nmov     [rsp+28h+arg_0], rsi                                           ; +0x26, 0x1400e89b6\nmov     [rsp+28h+arg_8], rdi                                           ; +0x2b, 0x1400e89bb\ncall    qword ptr [rax+10h]                                            ; +0x30, 0x1400e89c0\ncmp     byte ptr [rbx+33Ch], 0                                         ; +0x33, 0x1400e89c3\nmov     esi, eax                                                       ; +0x3a, 0x1400e89ca\nmov     rdi, [rbx+370h]                                                ; +0x3c, 0x1400e89cc\njz      short loc_1400E89F4                                            ; +0x43, 0x1400e89d3\nmov     rcx, [rbx+318h]                                                ; +0x45, 0x1400e89d5\nmov     rbx, [rdi+168h]                                                ; +0x4c, 0x1400e89dc\nmov     rdx, [rcx]                                                     ; +0x53, 0x1400e89e3\ncall    qword ptr [rdx+38h]                                            ; +0x56, 0x1400e89e6\nmov     r8d, 0Ah                                                       ; +0x59, 0x1400e89e9\nlea     edx, [rsi+rax]                                                 ; +0x5f, 0x1400e89ef\njmp     short loc_1400E8A03                                            ; +0x62, 0x1400e89f2\nmov     rbx, [rdi+168h]                                                ; +0x64, 0x1400e89f4\nmov     r8d, 9                                                         ; +0x6b, 0x1400e89fb\nmov     edx, esi                                                       ; +0x71, 0x1400e8a01\nlea     rcx, aII_0; \"%i/%i\"                                            ; +0x73, 0x1400e8a03\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x7a, 0x1400e8a0a\nmov     rcx, rax                                                       ; +0x80, 0x1400e8a10\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x83, 0x1400e8a13\nmov     rdx, rax                                                       ; +0x89, 0x1400e8a19\nlea     rcx, [rdi+168h]                                                ; +0x8c, 0x1400e8a1c\ncall    qword ptr [rbx]                                                ; +0x93, 0x1400e8a23\nmov     rdi, [rsp+28h+arg_8]                                           ; +0x95, 0x1400e8a25\nmov     rsi, [rsp+28h+arg_0]                                           ; +0x9a, 0x1400e8a2a\nadd     rsp, 20h                                                       ; +0x9f, 0x1400e8a2f\npop     rbx                                                            ; +0xa3, 0x1400e8a33\nretn                                                                   ; +0xa4, 0x1400e8a34", "xrefs": ["FriendPickerPopup::init @ 0x1400e7404", "FriendPickerPopup::buildRows @ 0x1400e8170", "<???> @ 0x1408936dc", "<???> @ 0x1408936ec", "<???> @ 0x140914d80"], "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"}