{"type": "func", "start": 5369590896, "end": 5369591161, "name": "MessageThreadsPage::threadUpdateFailed", "pseudocode": "// \n// MessageThreadsPage::threadUpdateFailed from 0x1400d7470 to 0x1400d7579 (265 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140729990\n// > <???> @ 0x14091469c\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:27 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall MessageThreadsPage::threadUpdateFailed(__int64 a1, __int64 a2, unsigned int a3)\n{\n  int v4; // eax\n  __int64 *v5; // rdi\n  const char *v6; // rdx\n  size_t v7; // r8\n  __int64 v8; // rbx\n  __int64 v9; // rdx\n  __int64 v10; // r8\n  __int64 v11; // rax\n  __int128 v12; // [rsp+38h] [rbp-50h] BYREF\n  __int64 v13; // [rsp+48h] [rbp-40h]\n  __int64 v14; // [rsp+50h] [rbp-38h]\n  __int128 v15; // [rsp+58h] [rbp-30h] BYREF\n  __int64 v16; // [rsp+68h] [rbp-20h]\n  __int64 v17; // [rsp+70h] [rbp-18h]\n\n  if ( a3 <= 0x12 )\n  {\n    v4 = 264234;\n    if ( _bittest(&v4, a3) )\n    {\n      v5 = *(__int64 **)(cocos2d::CCDirector::sharedDirector(a1) + 272);\n      if ( a3 == 1 )\n      {\n        v6 = (const char *)&qword_140721390;\n      }\n      else if ( a3 == 5 )\n      {\n        v6 = \"Leave failed\";\n      }\n      else\n      {\n        v6 = \"Update failed\";\n        if ( a3 == 18 )\n          v6 = \"Remove failed\";\n      }\n      v12 = 0;\n      v13 = 0;\n      v14 = 15;\n      LOBYTE(v12) = 0;\n      v15 = 0;\n      v16 = 0;\n      v17 = 0;\n      v7 = -1;\n      do\n        ++v7;\n      while ( v6[v7] );\n      sub_14003D230(&v15, v6, v7);\n      v8 = *v5;\n      v11 = TextAlertPopup::create(&v15, v9, v10, 150, &v12);\n      (*(void (__fastcall **)(__int64 *, __int64, __int64))(v8 + 456))(v5, v11, 1000);\n    }\n  }\n}", "assembly": "; \n; MessageThreadsPage::threadUpdateFailed from 0x1400d7470 to 0x1400d7579 (265 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140729990\n; > <???> @ 0x14091469c\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:27 +0000\n; \ncmp     r8d, 12h                                                       ; +0x0, 0x1400d7470\nja      locret_1400D7578                                               ; +0x4, 0x1400d7474\nmov     [rsp+arg_0], rbx                                               ; +0xa, 0x1400d747a\npush    rdi                                                            ; +0xf, 0x1400d747f\nsub     rsp, 80h                                                       ; +0x10, 0x1400d7480\nmov     ebx, r8d                                                       ; +0x17, 0x1400d7487\nmov     eax, 4082Ah                                                    ; +0x1a, 0x1400d748a\nbt      eax, ebx                                                       ; +0x1f, 0x1400d748f\njnb     loc_1400D7568                                                  ; +0x22, 0x1400d7492\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x28, 0x1400d7498\nmov     rdi, [rax+110h]                                                ; +0x2e, 0x1400d749e\nlea     rax, [rsp+88h+var_50]                                          ; +0x35, 0x1400d74a5\nmov     [rsp+88h+arg_18], rax                                          ; +0x3a, 0x1400d74aa\ncmp     ebx, 1                                                         ; +0x42, 0x1400d74b2\njnz     short loc_1400D74C0                                            ; +0x45, 0x1400d74b5\nlea     rdx, qword_140721390                                           ; +0x47, 0x1400d74b7\njmp     short loc_1400D74E3                                            ; +0x4e, 0x1400d74be\ncmp     ebx, 5                                                         ; +0x50, 0x1400d74c0\njnz     short loc_1400D74CE                                            ; +0x53, 0x1400d74c3\nlea     rdx, aLeaveFailed; \"Leave failed\"                              ; +0x55, 0x1400d74c5\njmp     short loc_1400D74E3                                            ; +0x5c, 0x1400d74cc\nlea     rax, aRemoveFailed; \"Remove failed\"                            ; +0x5e, 0x1400d74ce\nlea     rdx, aUpdateFailed; \"Update failed\"                            ; +0x65, 0x1400d74d5\ncmp     ebx, 12h                                                       ; +0x6c, 0x1400d74dc\ncmovz   rdx, rax                                                       ; +0x6f, 0x1400d74df\nxorps   xmm0, xmm0                                                     ; +0x73, 0x1400d74e3\nmovups  [rsp+88h+var_50], xmm0                                         ; +0x76, 0x1400d74e6\nxor     eax, eax                                                       ; +0x7b, 0x1400d74eb\nmov     [rsp+88h+var_40], rax                                          ; +0x7d, 0x1400d74ed\nmov     [rsp+88h+var_38], 0Fh                                          ; +0x82, 0x1400d74f2\nmov     byte ptr [rsp+88h+var_50], al                                  ; +0x8b, 0x1400d74fb\nmovups  [rsp+88h+var_30], xmm0                                         ; +0x8f, 0x1400d74ff\nmov     [rsp+88h+var_20], rax                                          ; +0x94, 0x1400d7504\nmov     [rsp+88h+var_18], rax                                          ; +0x99, 0x1400d7509\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x9e, 0x1400d750e\ninc     r8                                                             ; +0xa5, 0x1400d7515\ncmp     byte ptr [rdx+r8], 0                                           ; +0xa8, 0x1400d7518\njnz     short loc_1400D7515                                            ; +0xad, 0x1400d751d\nlea     rcx, [rsp+88h+var_30]                                          ; +0xaf, 0x1400d751f\ncall    sub_14003D230                                                  ; +0xb4, 0x1400d7524\nmov     rbx, [rdi]                                                     ; +0xb9, 0x1400d7529\nlea     rax, [rsp+88h+var_50]                                          ; +0xbc, 0x1400d752c\nmov     [rsp+88h+var_68], rax                                          ; +0xc1, 0x1400d7531\nmov     r9d, 96h                                                       ; +0xc6, 0x1400d7536\nmovss   xmm2, cs:dword_140834F64                                       ; +0xcc, 0x1400d753c\nmovss   xmm1, cs:dword_140834F20                                       ; +0xd4, 0x1400d7544\nlea     rcx, [rsp+88h+var_30]                                          ; +0xdc, 0x1400d754c\ncall    TextAlertPopup__create                                         ; +0xe1, 0x1400d7551\nmov     rdx, rax                                                       ; +0xe6, 0x1400d7556\nmov     r8d, 3E8h                                                      ; +0xe9, 0x1400d7559\nmov     rcx, rdi                                                       ; +0xef, 0x1400d755f\ncall    qword ptr [rbx+1C8h]                                           ; +0xf2, 0x1400d7562\nmov     rbx, [rsp+88h+arg_0]                                           ; +0xf8, 0x1400d7568\nadd     rsp, 80h                                                       ; +0x100, 0x1400d7570\npop     rdi                                                            ; +0x107, 0x1400d7577\nretn                                                                   ; +0x108, 0x1400d7578", "xrefs": ["<???> @ 0x140729990", "<???> @ 0x14091469c"], "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"}