{"type": "func", "start": 5373387952, "end": 5373388113, "name": "MessagesProfilePage::updateSelectUI", "pseudocode": "// \n// MessagesProfilePage::updateSelectUI from 0x1404764b0 to 0x140476551 (161 bytes)\n// \n// 9 xrefs:\n// > MessagesProfilePage::init @ 0x140475f7a\n// > MessagesProfilePage::onToggleAllObjects @ 0x1404763d0\n// > MessagesProfilePage::onSelectionChanged @ 0x140476560\n// > MessagesProfilePage::deleteSelected @ 0x140476c6c\n// > MessagesProfilePage::loadMessagesFinished @ 0x1404778e4\n// > MessagesProfilePage::loadMessagesFailed @ 0x14047797c\n// > <???> @ 0x1408ced08\n// > <???> @ 0x1408ced40\n// > <???> @ 0x140928388\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:32:40 +0000\n// \n\n__int64 __fastcall MessagesProfilePage::updateSelectUI(__int64 a1)\n{\n  __int64 result; // rax\n  __int64 v3; // rdx\n  __int64 v4; // rcx\n  int v5; // ebp\n  __int64 v6; // rdi\n  __int64 (__fastcall **v7)(__int64, const char *); // rbx\n  cocos2d::CCString *v8; // rax\n  const char *CString; // rax\n  __int64 v10; // rcx\n\n  result = MessagesProfilePage::selectedCount(a1);\n  v4 = *(_QWORD *)(a1 + 808);\n  v5 = result;\n  if ( v4 )\n  {\n    LOBYTE(v3) = (int)result > 0;\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 336LL))(v4, v3);\n    v6 = *(_QWORD *)(a1 + 808);\n    v7 = *(__int64 (__fastcall ***)(__int64, const char *))(v6 + 360);\n    v8 = cocos2d::CCString::createWithFormat(\"(%i)\", v5);\n    CString = cocos2d::CCString::getCString(v8);\n    result = (*v7)(v6 + 360, CString);\n  }\n  v10 = *(_QWORD *)(a1 + 816);\n  if ( v10 )\n  {\n    LOBYTE(v3) = v5 > 0;\n    return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 336LL))(v10, v3);\n  }\n  return result;\n}", "assembly": "; \n; MessagesProfilePage::updateSelectUI from 0x1404764b0 to 0x140476551 (161 bytes)\n; \n; 9 xrefs:\n; > MessagesProfilePage::init @ 0x140475f7a\n; > MessagesProfilePage::onToggleAllObjects @ 0x1404763d0\n; > MessagesProfilePage::onSelectionChanged @ 0x140476560\n; > MessagesProfilePage::deleteSelected @ 0x140476c6c\n; > MessagesProfilePage::loadMessagesFinished @ 0x1404778e4\n; > MessagesProfilePage::loadMessagesFailed @ 0x14047797c\n; > <???> @ 0x1408ced08\n; > <???> @ 0x1408ced40\n; > <???> @ 0x140928388\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:32:40 +0000\n; \npush    rbp                                                            ; +0x0, 0x1404764b0\nsub     rsp, 20h                                                       ; +0x2, 0x1404764b2\nmov     [rsp+28h+arg_8], rsi                                           ; +0x6, 0x1404764b6\nmov     rsi, rcx                                                       ; +0xb, 0x1404764bb\ncall    MessagesProfilePage__selectedCount                             ; +0xe, 0x1404764be\nmov     rcx, [rsi+328h]                                                ; +0x13, 0x1404764c3\nmov     ebp, eax                                                       ; +0x1a, 0x1404764ca\ntest    rcx, rcx                                                       ; +0x1c, 0x1404764cc\njz      short loc_140476526                                            ; +0x1f, 0x1404764cf\nmov     r8, [rcx]                                                      ; +0x21, 0x1404764d1\ntest    eax, eax                                                       ; +0x24, 0x1404764d4\nmov     [rsp+28h+arg_0], rbx                                           ; +0x26, 0x1404764d6\nsetnle  dl                                                             ; +0x2b, 0x1404764db\nmov     [rsp+28h+arg_10], rdi                                          ; +0x2e, 0x1404764de\ncall    qword ptr [r8+150h]                                            ; +0x33, 0x1404764e3\nmov     rdi, [rsi+328h]                                                ; +0x3a, 0x1404764ea\nlea     rcx, aI_1; \"(%i)\"                                              ; +0x41, 0x1404764f1\nmov     edx, ebp                                                       ; +0x48, 0x1404764f8\nmov     rbx, [rdi+168h]                                                ; +0x4a, 0x1404764fa\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x51, 0x140476501\nmov     rcx, rax                                                       ; +0x57, 0x140476507\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x5a, 0x14047650a\nmov     rdx, rax                                                       ; +0x60, 0x140476510\nlea     rcx, [rdi+168h]                                                ; +0x63, 0x140476513\ncall    qword ptr [rbx]                                                ; +0x6a, 0x14047651a\nmov     rdi, [rsp+28h+arg_10]                                          ; +0x6c, 0x14047651c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x71, 0x140476521\nmov     rcx, [rsi+330h]                                                ; +0x76, 0x140476526\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x7d, 0x14047652d\ntest    rcx, rcx                                                       ; +0x82, 0x140476532\njz      short loc_14047654B                                            ; +0x85, 0x140476535\nmov     rax, [rcx]                                                     ; +0x87, 0x140476537\ntest    ebp, ebp                                                       ; +0x8a, 0x14047653a\nsetnle  dl                                                             ; +0x8c, 0x14047653c\nadd     rsp, 20h                                                       ; +0x8f, 0x14047653f\npop     rbp                                                            ; +0x93, 0x140476543\njmp     qword ptr [rax+150h]                                           ; +0x94, 0x140476544\nadd     rsp, 20h                                                       ; +0x9b, 0x14047654b\npop     rbp                                                            ; +0x9f, 0x14047654f\nretn                                                                   ; +0xa0, 0x140476550", "xrefs": ["MessagesProfilePage::init @ 0x140475f7a", "MessagesProfilePage::onToggleAllObjects @ 0x1404763d0", "MessagesProfilePage::onSelectionChanged @ 0x140476560", "MessagesProfilePage::deleteSelected @ 0x140476c6c", "MessagesProfilePage::loadMessagesFinished @ 0x1404778e4", "MessagesProfilePage::loadMessagesFailed @ 0x14047797c", "<???> @ 0x1408ced08", "<???> @ 0x1408ced40", "<???> @ 0x140928388"], "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"}