{"type": "func", "start": 5369682368, "end": 5369682786, "name": "MemberListPopup::friendPicked", "pseudocode": "// \n// MemberListPopup::friendPicked from 0x1400ed9c0 to 0x1400edb62 (418 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140729290\n// > <???> @ 0x140914ffc\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:35 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall MemberListPopup::friendPicked(__int64 a1, struct cocos2d::CCObject *a2)\n{\n  cocos2d::CCArray *v4; // rcx\n  unsigned int v5; // ebx\n  struct cocos2d::CCObject *v6; // rax\n  cocos2d::CCArray *v7; // rcx\n  int v8; // ebx\n  __int64 v9; // rcx\n  __int64 *v10; // rdi\n  __int64 v11; // rbx\n  __int64 v12; // rdx\n  __int64 v13; // r8\n  __int64 v14; // rax\n  __int128 v15; // [rsp+30h] [rbp-48h] BYREF\n  __int64 v16; // [rsp+40h] [rbp-38h]\n  __int64 v17; // [rsp+48h] [rbp-30h]\n  __int128 v18; // [rsp+50h] [rbp-28h] BYREF\n  __int64 v19; // [rsp+60h] [rbp-18h]\n  __int64 v20; // [rsp+68h] [rbp-10h]\n\n  if ( a2 )\n  {\n    v4 = *(cocos2d::CCArray **)(a1 + 72);\n    if ( v4 )\n    {\n      v5 = 0;\n      if ( (int)cocos2d::CCArray::count(v4) <= 0 )\n      {\nLABEL_6:\n        v8 = *(_DWORD *)(*(_QWORD *)(a1 + 16) + 200LL);\n        if ( (int)(v8 + cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 72))) < 10 )\n        {\n          cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 72), a2);\n        }\n        else\n        {\n          v10 = *(__int64 **)(cocos2d::CCDirector::sharedDirector(v9) + 272);\n          v18 = 0;\n          v19 = 0;\n          v20 = 15;\n          LOBYTE(v18) = 0;\n          v15 = 0;\n          *(_QWORD *)&v15 = sub_14003D460(0x20u);\n          v16 = 20;\n          v17 = 31;\n          strcpy((char *)v15, \"Member limit reached\");\n          v11 = *v10;\n          v14 = TextAlertPopup::create(&v15, v12, v13, 150, &v18);\n          (*(void (__fastcall **)(__int64 *, __int64, __int64))(v11 + 456))(v10, v14, 1000);\n        }\n      }\n      else\n      {\n        while ( 1 )\n        {\n          v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 72), v5);\n          v7 = *(cocos2d::CCArray **)(a1 + 72);\n          if ( *((_DWORD *)v6 + 98) == *((_DWORD *)a2 + 98) )\n            break;\n          if ( (int)++v5 >= (int)cocos2d::CCArray::count(v7) )\n            goto LABEL_6;\n        }\n        cocos2d::CCArray::removeObjectAtIndex(v7, v5, 1);\n      }\n    }\n  }\n}", "assembly": "; \n; MemberListPopup::friendPicked from 0x1400ed9c0 to 0x1400edb62 (418 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140729290\n; > <???> @ 0x140914ffc\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:35 +0000\n; \ntest    rdx, rdx                                                       ; +0x0, 0x1400ed9c0\njz      locret_1400EDB61                                               ; +0x3, 0x1400ed9c3\nmov     [rsp+arg_0], rbx                                               ; +0x9, 0x1400ed9c9\nmov     [rsp+arg_18], rsi                                              ; +0xe, 0x1400ed9ce\npush    rdi                                                            ; +0x13, 0x1400ed9d3\nsub     rsp, 70h                                                       ; +0x14, 0x1400ed9d4\nmov     rsi, rdx                                                       ; +0x18, 0x1400ed9d8\nmov     rdi, rcx                                                       ; +0x1b, 0x1400ed9db\nmov     rcx, [rcx+48h]                                                 ; +0x1e, 0x1400ed9de\ntest    rcx, rcx                                                       ; +0x22, 0x1400ed9e2\njz      loc_1400EDB50                                                  ; +0x25, 0x1400ed9e5\nxor     ebx, ebx                                                       ; +0x2b, 0x1400ed9eb\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x2d, 0x1400ed9ed\ntest    eax, eax                                                       ; +0x33, 0x1400ed9f3\njle     short loc_1400EDA2E                                            ; +0x35, 0x1400ed9f5\nnop     word ptr [rax+rax+00000000h]                                   ; +0x37, 0x1400ed9f7\nmov     edx, ebx                                                       ; +0x40, 0x1400eda00\nmov     rcx, [rdi+48h]                                                 ; +0x42, 0x1400eda02\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x46, 0x1400eda06\nmov     rcx, [rdi+48h]                                                 ; +0x4c, 0x1400eda0c\nmov     edx, [rsi+188h]                                                ; +0x50, 0x1400eda10\ncmp     [rax+188h], edx                                                ; +0x56, 0x1400eda16\njz      loc_1400EDB26                                                  ; +0x5c, 0x1400eda1c\ninc     ebx                                                            ; +0x62, 0x1400eda22\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x64, 0x1400eda24\ncmp     ebx, eax                                                       ; +0x6a, 0x1400eda2a\njl      short loc_1400EDA00                                            ; +0x6c, 0x1400eda2c\nmov     rax, [rdi+10h]                                                 ; +0x6e, 0x1400eda2e\nmov     ebx, [rax+0C8h]                                                ; +0x72, 0x1400eda32\nmov     rcx, [rdi+48h]                                                 ; +0x78, 0x1400eda38\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x7c, 0x1400eda3c\nadd     eax, ebx                                                       ; +0x82, 0x1400eda42\ncmp     eax, 0Ah                                                       ; +0x84, 0x1400eda44\njl      loc_1400EDB43                                                  ; +0x87, 0x1400eda47\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x8d, 0x1400eda4d\nmov     rdi, [rax+110h]                                                ; +0x93, 0x1400eda53\nlea     rax, [rsp+78h+var_28]                                          ; +0x9a, 0x1400eda5a\nmov     [rsp+78h+arg_8], rax                                           ; +0x9f, 0x1400eda5f\nxorps   xmm0, xmm0                                                     ; +0xa7, 0x1400eda67\nmovups  [rsp+78h+var_28], xmm0                                         ; +0xaa, 0x1400eda6a\nmov     [rsp+78h+var_18], 0                                            ; +0xaf, 0x1400eda6f\nmov     [rsp+78h+var_10], 0Fh                                          ; +0xb8, 0x1400eda78\nmov     byte ptr [rsp+78h+var_28], 0                                   ; +0xc1, 0x1400eda81\nmovups  [rsp+78h+var_48], xmm0                                         ; +0xc6, 0x1400eda86\nmov     [rsp+78h+var_38], 0                                            ; +0xcb, 0x1400eda8b\nmov     [rsp+78h+var_30], 0                                            ; +0xd4, 0x1400eda94\nmov     ecx, 20h ; ' '                                                 ; +0xdd, 0x1400eda9d\ncall    sub_14003D460                                                  ; +0xe2, 0x1400edaa2\nmov     qword ptr [rsp+78h+var_48], rax                                ; +0xe7, 0x1400edaa7\nmov     [rsp+78h+var_38], 14h                                          ; +0xec, 0x1400edaac\nmov     [rsp+78h+var_30], 1Fh                                          ; +0xf5, 0x1400edab5\nmovups  xmm0, cs:xmmword_1407276E8                                     ; +0xfe, 0x1400edabe\nmovups  xmmword ptr [rax], xmm0                                        ; +0x105, 0x1400edac5\nmov     ecx, cs:dword_1407276F8                                        ; +0x108, 0x1400edac8\nmov     [rax+10h], ecx                                                 ; +0x10e, 0x1400edace\nmov     byte ptr [rax+14h], 0                                          ; +0x111, 0x1400edad1\nmov     rbx, [rdi]                                                     ; +0x115, 0x1400edad5\nlea     rax, [rsp+78h+var_28]                                          ; +0x118, 0x1400edad8\nmov     [rsp+78h+var_58], rax                                          ; +0x11d, 0x1400edadd\nmov     r9d, 96h                                                       ; +0x122, 0x1400edae2\nmovss   xmm2, cs:dword_140834F64                                       ; +0x128, 0x1400edae8\nmovss   xmm1, cs:dword_140834F20                                       ; +0x130, 0x1400edaf0\nlea     rcx, [rsp+78h+var_48]                                          ; +0x138, 0x1400edaf8\ncall    TextAlertPopup__create                                         ; +0x13d, 0x1400edafd\nmov     rdx, rax                                                       ; +0x142, 0x1400edb02\nmov     r8d, 3E8h                                                      ; +0x145, 0x1400edb05\nmov     rcx, rdi                                                       ; +0x14b, 0x1400edb0b\ncall    qword ptr [rbx+1C8h]                                           ; +0x14e, 0x1400edb0e\nlea     r11, [rsp+78h+var_8]                                           ; +0x154, 0x1400edb14\nmov     rbx, [r11+10h]                                                 ; +0x159, 0x1400edb19\nmov     rsi, [r11+28h]                                                 ; +0x15d, 0x1400edb1d\nmov     rsp, r11                                                       ; +0x161, 0x1400edb21\npop     rdi                                                            ; +0x164, 0x1400edb24\nretn                                                                   ; +0x165, 0x1400edb25\nmov     r8b, 1                                                         ; +0x166, 0x1400edb26\nmov     edx, ebx                                                       ; +0x169, 0x1400edb29\nlea     r11, [rsp+78h+var_8]                                           ; +0x16b, 0x1400edb2b\nmov     rbx, [r11+10h]                                                 ; +0x170, 0x1400edb30\nmov     rsi, [r11+28h]                                                 ; +0x174, 0x1400edb34\nmov     rsp, r11                                                       ; +0x178, 0x1400edb38\npop     rdi                                                            ; +0x17b, 0x1400edb3b\njmp     cs:?removeObjectAtIndex@CCArray@cocos2d@@QEAAXI_N@Z; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x17c, 0x1400edb3c\nmov     rdx, rsi                                                       ; +0x183, 0x1400edb43\nmov     rcx, [rdi+48h]                                                 ; +0x186, 0x1400edb46\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x18a, 0x1400edb4a\nlea     r11, [rsp+78h+var_8]                                           ; +0x190, 0x1400edb50\nmov     rbx, [r11+10h]                                                 ; +0x195, 0x1400edb55\nmov     rsi, [r11+28h]                                                 ; +0x199, 0x1400edb59\nmov     rsp, r11                                                       ; +0x19d, 0x1400edb5d\npop     rdi                                                            ; +0x1a0, 0x1400edb60\nretn                                                                   ; +0x1a1, 0x1400edb61", "xrefs": ["<???> @ 0x140729290", "<???> @ 0x140914ffc"], "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"}