{"type": "func", "start": 5369186784, "end": 5369186934, "name": "TableView::isDuplicateIndexPath", "pseudocode": "// \n// TableView::isDuplicateIndexPath from 0x1400749e0 to 0x140074a76 (150 bytes)\n// \n// 7 xrefs:\n// > TableView::reloadData @ 0x140074f5c\n// > TableView::checkBoundaryOfContent @ 0x1400760d4\n// > TableView::checkBoundaryOfContent @ 0x1400762f5\n// > TableView::checkFirstCell @ 0x1400765aa\n// > TableView::checkLastCell @ 0x1400767d9\n// > TableView::checkLastCell @ 0x140076a57\n// > <???> @ 0x1406c639c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nbool TableView::isDuplicateIndexPath(TableView *a1, CCIndexPath *a2)\n{\n  cocos2d::CCArray *m_indexPathArray; // rcx\n  unsigned int v5; // ebx\n  struct cocos2d::CCObject *v6; // rax\n\n  m_indexPathArray = a1->m_indexPathArray;\n  if ( !m_indexPathArray )\n    return 0;\n  if ( !cocos2d::CCArray::count(m_indexPathArray) )\n    return 0;\n  v5 = 0;\n  if ( !cocos2d::CCArray::count(a1->m_indexPathArray) )\n    return 0;\n  while ( 1 )\n  {\n    v6 = cocos2d::CCArray::objectAtIndex(a1->m_indexPathArray, v5);\n    if ( HIDWORD(v6[1].__vftable) == a2->m_section && LODWORD(v6[1].__vftable) == a2->m_row )\n      break;\n    if ( ++v5 >= cocos2d::CCArray::count(a1->m_indexPathArray) )\n      return 0;\n  }\n  return 1;\n}", "assembly": "; \n; TableView::isDuplicateIndexPath from 0x1400749e0 to 0x140074a76 (150 bytes)\n; \n; 7 xrefs:\n; > TableView::reloadData @ 0x140074f5c\n; > TableView::checkBoundaryOfContent @ 0x1400760d4\n; > TableView::checkBoundaryOfContent @ 0x1400762f5\n; > TableView::checkFirstCell @ 0x1400765aa\n; > TableView::checkLastCell @ 0x1400767d9\n; > TableView::checkLastCell @ 0x140076a57\n; > <???> @ 0x1406c639c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1400749e0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1400749e5\npush    rdi                                                            ; +0xa, 0x1400749ea\nsub     rsp, 20h                                                       ; +0xb, 0x1400749eb\nmov     rdi, rcx                                                       ; +0xf, 0x1400749ef\nmov     rsi, rdx                                                       ; +0x12, 0x1400749f2\nmov     rcx, [rcx+248h]                                                ; +0x15, 0x1400749f5\ntest    rcx, rcx                                                       ; +0x1c, 0x1400749fc\njz      short loc_140074A52                                            ; +0x1f, 0x1400749ff\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x21, 0x140074a01\ntest    eax, eax                                                       ; +0x27, 0x140074a07\njz      short loc_140074A52                                            ; +0x29, 0x140074a09\nmov     rcx, [rdi+248h]                                                ; +0x2b, 0x140074a0b\nxor     ebx, ebx                                                       ; +0x32, 0x140074a12\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x34, 0x140074a14\ntest    eax, eax                                                       ; +0x3a, 0x140074a1a\njz      short loc_140074A52                                            ; +0x3c, 0x140074a1c\nxchg    ax, ax                                                         ; +0x3e, 0x140074a1e\nmov     rcx, [rdi+248h]                                                ; +0x40, 0x140074a20\nmov     edx, ebx                                                       ; +0x47, 0x140074a27\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x49, 0x140074a29\nmov     ecx, [rsi+3Ch]                                                 ; +0x4f, 0x140074a2f\ncmp     [rax+3Ch], ecx                                                 ; +0x52, 0x140074a32\njnz     short loc_140074A3F                                            ; +0x55, 0x140074a35\nmov     ecx, [rsi+38h]                                                 ; +0x57, 0x140074a37\ncmp     [rax+38h], ecx                                                 ; +0x5a, 0x140074a3a\njz      short loc_140074A64                                            ; +0x5d, 0x140074a3d\nmov     rcx, [rdi+248h]                                                ; +0x5f, 0x140074a3f\ninc     ebx                                                            ; +0x66, 0x140074a46\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x68, 0x140074a48\ncmp     ebx, eax                                                       ; +0x6e, 0x140074a4e\njb      short loc_140074A20                                            ; +0x70, 0x140074a50\nxor     al, al                                                         ; +0x72, 0x140074a52\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x74, 0x140074a54\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x79, 0x140074a59\nadd     rsp, 20h                                                       ; +0x7e, 0x140074a5e\npop     rdi                                                            ; +0x82, 0x140074a62\nretn                                                                   ; +0x83, 0x140074a63\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x84, 0x140074a64\nmov     al, 1                                                          ; +0x89, 0x140074a69\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x8b, 0x140074a6b\nadd     rsp, 20h                                                       ; +0x90, 0x140074a70\npop     rdi                                                            ; +0x94, 0x140074a74\nretn                                                                   ; +0x95, 0x140074a75", "xrefs": ["TableView::reloadData @ 0x140074f5c", "TableView::checkBoundaryOfContent @ 0x1400760d4", "TableView::checkBoundaryOfContent @ 0x1400762f5", "TableView::checkFirstCell @ 0x1400765aa", "TableView::checkLastCell @ 0x1400767d9", "TableView::checkLastCell @ 0x140076a57", "<???> @ 0x1406c639c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}