{"type": "func", "start": 5369592384, "end": 5369592510, "name": "MessageThreadsPage::isRecipientSelected", "pseudocode": "// \n// MessageThreadsPage::isRecipientSelected from 0x1400d7a40 to 0x1400d7abe (126 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14072da08\n// > <???> @ 0x1409146d8\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\nchar __fastcall MessageThreadsPage::isRecipientSelected(__int64 a1, int a2)\n{\n  cocos2d::CCArray *v4; // rcx\n  unsigned int v5; // ebx\n\n  v4 = *(cocos2d::CCArray **)(a1 + 208);\n  if ( !v4 )\n    return 0;\n  v5 = 0;\n  if ( (int)cocos2d::CCArray::count(v4) <= 0 )\n    return 0;\n  while ( *((_DWORD *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 208), v5) + 98) != a2 )\n  {\n    if ( (int)++v5 >= (int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 208)) )\n      return 0;\n  }\n  return 1;\n}", "assembly": "; \n; MessageThreadsPage::isRecipientSelected from 0x1400d7a40 to 0x1400d7abe (126 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14072da08\n; > <???> @ 0x1409146d8\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; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1400d7a40\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1400d7a45\npush    rdi                                                            ; +0xa, 0x1400d7a4a\nsub     rsp, 20h                                                       ; +0xb, 0x1400d7a4b\nmov     rdi, rcx                                                       ; +0xf, 0x1400d7a4f\nmov     esi, edx                                                       ; +0x12, 0x1400d7a52\nmov     rcx, [rcx+0D0h]                                                ; +0x14, 0x1400d7a54\ntest    rcx, rcx                                                       ; +0x1b, 0x1400d7a5b\njz      short loc_1400D7A9A                                            ; +0x1e, 0x1400d7a5e\nxor     ebx, ebx                                                       ; +0x20, 0x1400d7a60\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x22, 0x1400d7a62\ntest    eax, eax                                                       ; +0x28, 0x1400d7a68\njle     short loc_1400D7A9A                                            ; +0x2a, 0x1400d7a6a\nnop     dword ptr [rax+00h]                                            ; +0x2c, 0x1400d7a6c\nmov     rcx, [rdi+0D0h]                                                ; +0x30, 0x1400d7a70\nmov     edx, ebx                                                       ; +0x37, 0x1400d7a77\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x39, 0x1400d7a79\ncmp     [rax+188h], esi                                                ; +0x3f, 0x1400d7a7f\njz      short loc_1400D7AAC                                            ; +0x45, 0x1400d7a85\nmov     rcx, [rdi+0D0h]                                                ; +0x47, 0x1400d7a87\ninc     ebx                                                            ; +0x4e, 0x1400d7a8e\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x50, 0x1400d7a90\ncmp     ebx, eax                                                       ; +0x56, 0x1400d7a96\njl      short loc_1400D7A70                                            ; +0x58, 0x1400d7a98\nxor     al, al                                                         ; +0x5a, 0x1400d7a9a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5c, 0x1400d7a9c\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x61, 0x1400d7aa1\nadd     rsp, 20h                                                       ; +0x66, 0x1400d7aa6\npop     rdi                                                            ; +0x6a, 0x1400d7aaa\nretn                                                                   ; +0x6b, 0x1400d7aab\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x6c, 0x1400d7aac\nmov     al, 1                                                          ; +0x71, 0x1400d7ab1\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x73, 0x1400d7ab3\nadd     rsp, 20h                                                       ; +0x78, 0x1400d7ab8\npop     rdi                                                            ; +0x7c, 0x1400d7abc\nretn                                                                   ; +0x7d, 0x1400d7abd", "xrefs": ["<???> @ 0x14072da08", "<???> @ 0x1409146d8"], "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"}