{"type": "func", "start": 4300259028, "end": 4300259364, "name": "NewThreadPopup::friendPicked", "pseudocode": "// \n// NewThreadPopup::friendPicked from 0x10050bed4 to 0x10050c024 (336 bytes)\n// \n// 2 xrefs:\n// > sub_10050C058 @ 0x10050c05c\n// > <???> @ 0x100998a30\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:06:59 +0000\n// \n\nvoid __fastcall NewThreadPopup::friendPicked(__int64 a1, __int64 a2)\n{\n  __int64 v3; // x0\n  __int64 v5; // x21\n  __int64 v6; // x19\n  _QWORD *v7; // x0\n  void *__p[2]; // [xsp+0h] [xbp-50h] BYREF\n  char v9; // [xsp+17h] [xbp-39h]\n  void *v10[2]; // [xsp+18h] [xbp-38h] BYREF\n  char v11; // [xsp+2Fh] [xbp-21h]\n\n  if ( a2 )\n  {\n    v3 = *(_QWORD *)(a1 + 728);\n    if ( v3 )\n    {\n      if ( (*(_BYTE *)(a1 + 737) & 1) != 0 )\n      {\n        sub_1002E7674(v3);\n        goto LABEL_15;\n      }\n      if ( (int)sub_1002E757C(v3) >= 1 )\n      {\n        v5 = 0;\n        while ( *(_DWORD *)(sub_1002E75A0(*(_QWORD *)(a1 + 728), v5) + 376) != *(_DWORD *)(a2 + 376) )\n        {\n          v5 = (unsigned int)(v5 + 1);\n          if ( (int)v5 >= (int)sub_1002E757C(*(_QWORD *)(a1 + 728)) )\n            goto LABEL_9;\n        }\n        sub_1002E7664(*(_QWORD *)(a1 + 728), v5, 1);\n        goto LABEL_16;\n      }\nLABEL_9:\n      if ( (int)sub_1002E757C(*(_QWORD *)(a1 + 728)) < 9 )\n      {\nLABEL_15:\n        sub_1002E74E0(*(_QWORD *)(a1 + 728));\nLABEL_16:\n        sub_10050B5B8(a1);\n        return;\n      }\n      v6 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector() + 272);\n      sub_100009900(v10, \"Member limit reached\");\n      sub_100009900(__p, \"\");\n      v7 = TextAlertPopup::create((__int64)v10, 150, (__int64)__p, 0.5, 0.6);\n      (*(void (__fastcall **)(__int64, _QWORD *, __int64))(*(_QWORD *)v6 + 464LL))(v6, v7, 1000);\n      if ( v9 < 0 )\n        operator delete(__p[0]);\n      if ( v11 < 0 )\n        operator delete(v10[0]);\n    }\n  }\n}", "assembly": "; \n; NewThreadPopup::friendPicked from 0x10050bed4 to 0x10050c024 (336 bytes)\n; \n; 2 xrefs:\n; > sub_10050C058 @ 0x10050c05c\n; > <???> @ 0x100998a30\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:06:59 +0000\n; \nSUB             SP, SP, #0x60                                          ; +0x0, 0x10050bed4\nSTP             X22, X21, [SP,#0x50+var_20]                            ; +0x4, 0x10050bed8\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0x8, 0x10050bedc\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0xc, 0x10050bee0\nADD             X29, SP, #0x50                                         ; +0x10, 0x10050bee4\nCBZ             X1, loc_10050BFD8                                      ; +0x14, 0x10050bee8\nMOV             X19, X0                                                ; +0x18, 0x10050beec\nLDR             X0, [X0,#0x2D8]                                        ; +0x1c, 0x10050bef0\nCBZ             X0, loc_10050BFD8                                      ; +0x20, 0x10050bef4\nMOV             X20, X1                                                ; +0x24, 0x10050bef8\nLDRB            W8, [X19,#0x2E1]                                       ; +0x28, 0x10050befc\nTBZ             W8, #0, loc_10050BF0C                                  ; +0x2c, 0x10050bf00\nBL              sub_1002E7674                                          ; +0x30, 0x10050bf04\nB               loc_10050BFEC                                          ; +0x34, 0x10050bf08\nBL              sub_1002E757C                                          ; +0x38, 0x10050bf0c\nCMP             W0, #1                                                 ; +0x3c, 0x10050bf10\nB.LT            loc_10050BF4C                                          ; +0x40, 0x10050bf14\nMOV             W21, #0                                                ; +0x44, 0x10050bf18\nLDR             X0, [X19,#0x2D8]                                       ; +0x48, 0x10050bf1c\nMOV             X1, X21                                                ; +0x4c, 0x10050bf20\nBL              sub_1002E75A0                                          ; +0x50, 0x10050bf24\nLDR             W8, [X0,#0x178]                                        ; +0x54, 0x10050bf28\nLDR             W9, [X20,#0x178]                                       ; +0x58, 0x10050bf2c\nCMP             W8, W9                                                 ; +0x5c, 0x10050bf30\nB.EQ            loc_10050C010                                          ; +0x60, 0x10050bf34\nADD             W21, W21, #1                                           ; +0x64, 0x10050bf38\nLDR             X0, [X19,#0x2D8]                                       ; +0x68, 0x10050bf3c\nBL              sub_1002E757C                                          ; +0x6c, 0x10050bf40\nCMP             W21, W0                                                ; +0x70, 0x10050bf44\nB.LT            loc_10050BF1C                                          ; +0x74, 0x10050bf48\nLDR             X0, [X19,#0x2D8]                                       ; +0x78, 0x10050bf4c\nBL              sub_1002E757C                                          ; +0x7c, 0x10050bf50\nCMP             W0, #9                                                 ; +0x80, 0x10050bf54\nB.LT            loc_10050BFEC                                          ; +0x84, 0x10050bf58\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x88, 0x10050bf5c\nLDR             X19, [X0,#0x110]                                       ; +0x8c, 0x10050bf60\nADRL            X1, aMemberLimitRea; \"Member limit reached\"            ; +0x90, 0x10050bf64\nADD             X0, SP, #0x50+var_38; int                              ; +0x98, 0x10050bf6c\nBL              sub_100009900                                          ; +0x9c, 0x10050bf70\nADRL            X1, asc_10088BE68; \"\"                                  ; +0xa0, 0x10050bf74\nMOV             X0, SP; int                                            ; +0xa8, 0x10050bf7c\nBL              sub_100009900                                          ; +0xac, 0x10050bf80\nADRP            X8, #dword_10075BCDC@PAGE                              ; +0xb0, 0x10050bf84\nLDR             S1, [X8,#dword_10075BCDC@PAGEOFF]                      ; +0xb4, 0x10050bf88\nADD             X0, SP, #0x50+var_38                                   ; +0xb8, 0x10050bf8c\nFMOV            S0, #0.5                                               ; +0xbc, 0x10050bf90\nMOV             X2, SP                                                 ; +0xc0, 0x10050bf94\nMOV             W1, #0x96                                              ; +0xc4, 0x10050bf98\nBL              TextAlertPopup__create                                 ; +0xc8, 0x10050bf9c\nMOV             X1, X0                                                 ; +0xcc, 0x10050bfa0\nLDR             X8, [X19]                                              ; +0xd0, 0x10050bfa4\nLDR             X8, [X8,#0x1D0]                                        ; +0xd4, 0x10050bfa8\nMOV             X0, X19                                                ; +0xd8, 0x10050bfac\nMOV             W2, #0x3E8                                             ; +0xdc, 0x10050bfb0\nBLR             X8                                                     ; +0xe0, 0x10050bfb4\nLDRSB           W8, [SP,#0x50+var_39]                                  ; +0xe4, 0x10050bfb8\nTBZ             W8, #0x1F, loc_10050BFC8                               ; +0xe8, 0x10050bfbc\nLDR             X0, [SP,#0x50+__p]; __p                                ; +0xec, 0x10050bfc0\nBL              __ZdlPv; operator delete(void *)                       ; +0xf0, 0x10050bfc4\nLDRSB           W8, [SP,#0x50+var_21]                                  ; +0xf4, 0x10050bfc8\nTBZ             W8, #0x1F, loc_10050BFD8                               ; +0xf8, 0x10050bfcc\nLDR             X0, [SP,#0x50+var_38]; __p                             ; +0xfc, 0x10050bfd0\nBL              __ZdlPv; operator delete(void *)                       ; +0x100, 0x10050bfd4\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0x104, 0x10050bfd8\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0x108, 0x10050bfdc\nLDP             X22, X21, [SP,#0x50+var_20]                            ; +0x10c, 0x10050bfe0\nADD             SP, SP, #0x60 ; '`'                                    ; +0x110, 0x10050bfe4\nRET                                                                    ; +0x114, 0x10050bfe8\nLDR             X0, [X19,#0x2D8]                                       ; +0x118, 0x10050bfec\nMOV             X1, X20                                                ; +0x11c, 0x10050bff0\nBL              sub_1002E74E0                                          ; +0x120, 0x10050bff4\nMOV             X0, X19                                                ; +0x124, 0x10050bff8\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0x128, 0x10050bffc\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0x12c, 0x10050c000\nLDP             X22, X21, [SP,#0x50+var_20]                            ; +0x130, 0x10050c004\nADD             SP, SP, #0x60 ; '`'                                    ; +0x134, 0x10050c008\nB               sub_10050B5B8                                          ; +0x138, 0x10050c00c\nLDR             X0, [X19,#0x2D8]                                       ; +0x13c, 0x10050c010\nMOV             X1, X21                                                ; +0x140, 0x10050c014\nMOV             W2, #1                                                 ; +0x144, 0x10050c018\nBL              sub_1002E7664                                          ; +0x148, 0x10050c01c\nB               loc_10050BFF8                                          ; +0x14c, 0x10050c020", "xrefs": ["sub_10050C058 @ 0x10050c05c", "<???> @ 0x100998a30"], "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"}