{"type": "func", "start": 4300260736, "end": 4300260908, "name": "NewThreadPopup::threadSendFailed", "pseudocode": "// \n// NewThreadPopup::threadSendFailed from 0x10050c580 to 0x10050c62c (172 bytes)\n// \n// 2 xrefs:\n// > sub_10050C660 @ 0x10050c664\n// > <???> @ 0x100998a60\n// \n// This function is hookable on this platform (idp: arm, 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:07:00 +0000\n// \n\nvoid __fastcall NewThreadPopup::threadSendFailed(__int64 a1)\n{\n  __int64 v1; // x19\n  _QWORD *v2; // x0\n  void *__p[2]; // [xsp+0h] [xbp-40h] BYREF\n  char v4; // [xsp+17h] [xbp-29h]\n  void *v5[2]; // [xsp+18h] [xbp-28h] BYREF\n  char v6; // [xsp+2Fh] [xbp-11h]\n\n  sub_10050C060(a1, 0);\n  if ( (sub_1000483A4() & 1) == 0 )\n  {\n    v1 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector() + 272);\n    sub_100009900(v5, \"Send failed\");\n    sub_100009900(__p, \"\");\n    v2 = TextAlertPopup::create((__int64)v5, 150, (__int64)__p, 0.5, 0.6);\n    (*(void (__fastcall **)(__int64, _QWORD *, __int64))(*(_QWORD *)v1 + 464LL))(v1, v2, 1000);\n    if ( v4 < 0 )\n      operator delete(__p[0]);\n    if ( v6 < 0 )\n      operator delete(v5[0]);\n  }\n}", "assembly": "; \n; NewThreadPopup::threadSendFailed from 0x10050c580 to 0x10050c62c (172 bytes)\n; \n; 2 xrefs:\n; > sub_10050C660 @ 0x10050c664\n; > <???> @ 0x100998a60\n; \n; This function is hookable on this platform (idp: arm, 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:07:00 +0000\n; \nSUB             SP, SP, #0x50                                          ; +0x0, 0x10050c580\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x4, 0x10050c584\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x8, 0x10050c588\nADD             X29, SP, #0x40                                         ; +0xc, 0x10050c58c\nMOV             W1, #0                                                 ; +0x10, 0x10050c590\nBL              sub_10050C060                                          ; +0x14, 0x10050c594\nBL              sub_1000483A4                                          ; +0x18, 0x10050c598\nTBNZ            W0, #0, loc_10050C61C                                  ; +0x1c, 0x10050c59c\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x20, 0x10050c5a0\nLDR             X19, [X0,#0x110]                                       ; +0x24, 0x10050c5a4\nADRL            X1, aSendFailed; \"Send failed\"                         ; +0x28, 0x10050c5a8\nADD             X0, SP, #0x40+var_28; int                              ; +0x30, 0x10050c5b0\nBL              sub_100009900                                          ; +0x34, 0x10050c5b4\nADRL            X1, asc_10088BE68; \"\"                                  ; +0x38, 0x10050c5b8\nMOV             X0, SP; int                                            ; +0x40, 0x10050c5c0\nBL              sub_100009900                                          ; +0x44, 0x10050c5c4\nADRP            X8, #dword_10075BCDC@PAGE                              ; +0x48, 0x10050c5c8\nLDR             S1, [X8,#dword_10075BCDC@PAGEOFF]                      ; +0x4c, 0x10050c5cc\nADD             X0, SP, #0x40+var_28                                   ; +0x50, 0x10050c5d0\nFMOV            S0, #0.5                                               ; +0x54, 0x10050c5d4\nMOV             X2, SP                                                 ; +0x58, 0x10050c5d8\nMOV             W1, #0x96                                              ; +0x5c, 0x10050c5dc\nBL              TextAlertPopup__create                                 ; +0x60, 0x10050c5e0\nMOV             X1, X0                                                 ; +0x64, 0x10050c5e4\nLDR             X8, [X19]                                              ; +0x68, 0x10050c5e8\nLDR             X8, [X8,#0x1D0]                                        ; +0x6c, 0x10050c5ec\nMOV             X0, X19                                                ; +0x70, 0x10050c5f0\nMOV             W2, #0x3E8                                             ; +0x74, 0x10050c5f4\nBLR             X8                                                     ; +0x78, 0x10050c5f8\nLDRSB           W8, [SP,#0x40+var_29]                                  ; +0x7c, 0x10050c5fc\nTBZ             W8, #0x1F, loc_10050C60C                               ; +0x80, 0x10050c600\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x84, 0x10050c604\nBL              __ZdlPv; operator delete(void *)                       ; +0x88, 0x10050c608\nLDRSB           W8, [SP,#0x40+var_11]                                  ; +0x8c, 0x10050c60c\nTBZ             W8, #0x1F, loc_10050C61C                               ; +0x90, 0x10050c610\nLDR             X0, [SP,#0x40+var_28]; __p                             ; +0x94, 0x10050c614\nBL              __ZdlPv; operator delete(void *)                       ; +0x98, 0x10050c618\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x9c, 0x10050c61c\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xa0, 0x10050c620\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xa4, 0x10050c624\nRET                                                                    ; +0xa8, 0x10050c628", "xrefs": ["sub_10050C660 @ 0x10050c664", "<???> @ 0x100998a60"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}