{"type": "func", "start": 6442539248, "end": 6442539550, "name": "cocos2d::extension::CCTableView::_moveCellOutOfSight", "pseudocode": "// \n// cocos2d::extension::CCTableView::_moveCellOutOfSight from 0x1800158f0 to 0x180015a1e (302 bytes)\n// \n// 6 xrefs:\n// > cocos2d::extension::CCTableView::updateCellAtIndex @ 0x180014ebf\n// > cocos2d::extension::CCTableView::removeCellAtIndex @ 0x18001525a\n// > cocos2d::extension::CCTableView::scrollViewDidScroll @ 0x180015eba\n// > cocos2d::extension::CCTableView::scrollViewDidScroll @ 0x180015f12\n// > <???> @ 0x180032408\n// > <???> @ 0x18004c7ac\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 12:15:41 +0000\n// \n\nvoid __fastcall cocos2d::extension::CCTableView::_moveCellOutOfSight(\n        cocos2d::extension::CCTableView *this,\n        struct cocos2d::extension::CCTableViewCell *a2)\n{\n  __int64 v4; // rcx\n  struct cocos2d::extension::CCSortableObject *v5; // rdx\n  __int64 *v6; // r11\n  unsigned int v7; // r9d\n  __int64 *v8; // r10\n  __int64 *v9; // rdx\n  __int64 *v10; // rax\n  __int64 *i; // rcx\n  unsigned int v12; // r8d\n  __int64 v13; // rax\n  __int64 v14; // rbx\n  __int64 v15; // r8\n  _QWORD v16[3]; // [rsp+20h] [rbp-18h] BYREF\n\n  v4 = *((_QWORD *)this + 81);\n  if ( v4 )\n    (*(void (__fastcall **)(__int64, cocos2d::extension::CCTableView *, struct cocos2d::extension::CCTableViewCell *))(*(_QWORD *)v4 + 48LL))(\n      v4,\n      this,\n      a2);\n  cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 79), a2);\n  v5 = (struct cocos2d::extension::CCTableViewCell *)((char *)a2 + 320);\n  if ( !a2 )\n    v5 = nullptr;\n  cocos2d::extension::CCArrayForObjectSorting::removeSortedObject(\n    *((cocos2d::extension::CCArrayForObjectSorting **)this + 78),\n    v5);\n  v6 = *((__int64 **)this + 74);\n  v7 = *((_DWORD *)a2 + 82);\n  v8 = (__int64 *)*v6;\n  v9 = (__int64 *)*v6;\n  v10 = *(__int64 **)(*v6 + 8);\n  for ( i = v10; !*((_BYTE *)i + 25); i = (__int64 *)*i )\n  {\n    v12 = *((_DWORD *)i + 7);\n    if ( v12 >= v7 )\n    {\n      if ( *((_BYTE *)v9 + 25) && v7 < v12 )\n        v9 = i;\n      v8 = i;\n    }\n    else\n    {\n      i += 2;\n    }\n  }\n  if ( !*((_BYTE *)v9 + 25) )\n    v10 = (__int64 *)*v9;\n  while ( !*((_BYTE *)v10 + 25) )\n  {\n    if ( v7 >= *((_DWORD *)v10 + 7) )\n    {\n      v10 = (__int64 *)v10[2];\n    }\n    else\n    {\n      v9 = v10;\n      v10 = (__int64 *)*v10;\n    }\n  }\n  v16[1] = v9;\n  v16[0] = v8;\n  sub_180016770(v6, v16);\n  v13 = *(_QWORD *)a2;\n  *((_DWORD *)a2 + 82) = -1;\n  v14 = *((_QWORD *)this + 56);\n  if ( (*(__int64 (__fastcall **)(struct cocos2d::extension::CCTableViewCell *))(v13 + 504))(a2) == v14 )\n  {\n    LOBYTE(v15) = 1;\n    (*(void (__fastcall **)(_QWORD, struct cocos2d::extension::CCTableViewCell *, __int64))(**((_QWORD **)this + 56)\n                                                                                          + 536LL))(\n      *((_QWORD *)this + 56),\n      a2,\n      v15);\n  }\n}", "assembly": "; \n; cocos2d::extension::CCTableView::_moveCellOutOfSight from 0x1800158f0 to 0x180015a1e (302 bytes)\n; \n; 6 xrefs:\n; > cocos2d::extension::CCTableView::updateCellAtIndex @ 0x180014ebf\n; > cocos2d::extension::CCTableView::removeCellAtIndex @ 0x18001525a\n; > cocos2d::extension::CCTableView::scrollViewDidScroll @ 0x180015eba\n; > cocos2d::extension::CCTableView::scrollViewDidScroll @ 0x180015f12\n; > <???> @ 0x180032408\n; > <???> @ 0x18004c7ac\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 12:15:41 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800158f0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800158f5\npush    rdi                                                            ; +0xa, 0x1800158fa\nsub     rsp, 30h                                                       ; +0xb, 0x1800158fb\nmov     rsi, rcx                                                       ; +0xf, 0x1800158ff\nmov     rdi, rdx                                                       ; +0x12, 0x180015902\nmov     rcx, [rcx+288h]                                                ; +0x15, 0x180015905\ntest    rcx, rcx                                                       ; +0x1c, 0x18001590c\njz      short loc_18001591D                                            ; +0x1f, 0x18001590f\nmov     rax, [rcx]                                                     ; +0x21, 0x180015911\nmov     r8, rdx                                                        ; +0x24, 0x180015914\nmov     rdx, rsi                                                       ; +0x27, 0x180015917\ncall    qword ptr [rax+30h]                                            ; +0x2a, 0x18001591a\nmov     rcx, [rsi+278h]                                                ; +0x2d, 0x18001591d\nmov     rdx, rdi                                                       ; +0x34, 0x180015924\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x37, 0x180015927\nmov     rcx, [rsi+270h]; this                                          ; +0x3d, 0x18001592d\nlea     rdx, [rdi+140h]                                                ; +0x44, 0x180015934\nxor     eax, eax                                                       ; +0x4b, 0x18001593b\ntest    rdi, rdi                                                       ; +0x4d, 0x18001593d\ncmovz   rdx, rax; struct cocos2d::extension::CCSortableObject *        ; +0x50, 0x180015940\ncall    ?removeSortedObject@CCArrayForObjectSorting@extension@cocos2d@@QEAAXPEAVCCSortableObject@23@@Z; cocos2d::extension::CCArrayForObjectSorting::removeSortedObject(cocos2d::extension::CCSortableObject *) ; +0x54, 0x180015944\nmov     r11, [rsi+250h]                                                ; +0x59, 0x180015949\nmov     r9d, [rdi+148h]                                                ; +0x60, 0x180015950\nmov     r10, [r11]                                                     ; +0x67, 0x180015957\nmov     rdx, r10                                                       ; +0x6a, 0x18001595a\nmov     rax, [r10+8]                                                   ; +0x6d, 0x18001595d\nmov     rcx, rax                                                       ; +0x71, 0x180015961\ncmp     byte ptr [rax+19h], 0                                          ; +0x74, 0x180015964\njnz     short loc_180015998                                            ; +0x78, 0x180015968\nnop     word ptr [rax+rax+00h]                                         ; +0x7a, 0x18001596a\nmov     r8d, [rcx+1Ch]                                                 ; +0x80, 0x180015970\ncmp     r8d, r9d                                                       ; +0x84, 0x180015974\njnb     short loc_18001597F                                            ; +0x87, 0x180015977\nadd     rcx, 10h                                                       ; +0x89, 0x180015979\njmp     short loc_18001598F                                            ; +0x8d, 0x18001597d\ncmp     byte ptr [rdx+19h], 0                                          ; +0x8f, 0x18001597f\njz      short loc_18001598C                                            ; +0x93, 0x180015983\ncmp     r9d, r8d                                                       ; +0x95, 0x180015985\ncmovb   rdx, rcx                                                       ; +0x98, 0x180015988\nmov     r10, rcx                                                       ; +0x9c, 0x18001598c\nmov     rcx, [rcx]                                                     ; +0x9f, 0x18001598f\ncmp     byte ptr [rcx+19h], 0                                          ; +0xa2, 0x180015992\njz      short loc_180015970                                            ; +0xa6, 0x180015996\ncmp     byte ptr [rdx+19h], 0                                          ; +0xa8, 0x180015998\njnz     short loc_1800159A1                                            ; +0xac, 0x18001599c\nmov     rax, [rdx]                                                     ; +0xae, 0x18001599e\ncmp     byte ptr [rax+19h], 0                                          ; +0xb1, 0x1800159a1\njnz     short loc_1800159BF                                            ; +0xb5, 0x1800159a5\ncmp     r9d, [rax+1Ch]                                                 ; +0xb7, 0x1800159a7\njnb     short loc_1800159B5                                            ; +0xbb, 0x1800159ab\nmov     rdx, rax                                                       ; +0xbd, 0x1800159ad\nmov     rax, [rax]                                                     ; +0xc0, 0x1800159b0\njmp     short loc_1800159B9                                            ; +0xc3, 0x1800159b3\nmov     rax, [rax+10h]                                                 ; +0xc5, 0x1800159b5\ncmp     byte ptr [rax+19h], 0                                          ; +0xc9, 0x1800159b9\njz      short loc_1800159A7                                            ; +0xcd, 0x1800159bd\nmov     [rsp+38h+var_10], rdx                                          ; +0xcf, 0x1800159bf\nmov     rcx, r11                                                       ; +0xd4, 0x1800159c4\nlea     rdx, [rsp+38h+var_18]                                          ; +0xd7, 0x1800159c7\nmov     [rsp+38h+var_18], r10                                          ; +0xdc, 0x1800159cc\ncall    sub_180016770                                                  ; +0xe1, 0x1800159d1\nmov     rax, [rdi]                                                     ; +0xe6, 0x1800159d6\nmov     rcx, rdi                                                       ; +0xe9, 0x1800159d9\nmov     dword ptr [rdi+148h], 0FFFFFFFFh                               ; +0xec, 0x1800159dc\nmov     rbx, [rsi+1C0h]                                                ; +0xf6, 0x1800159e6\ncall    qword ptr [rax+1F8h]                                           ; +0xfd, 0x1800159ed\ncmp     rax, rbx                                                       ; +0x103, 0x1800159f3\njnz     short loc_180015A0E                                            ; +0x106, 0x1800159f6\nmov     rcx, [rsi+1C0h]                                                ; +0x108, 0x1800159f8\nmov     r8b, 1                                                         ; +0x10f, 0x1800159ff\nmov     rdx, rdi                                                       ; +0x112, 0x180015a02\nmov     rax, [rcx]                                                     ; +0x115, 0x180015a05\ncall    qword ptr [rax+218h]                                           ; +0x118, 0x180015a08\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x11e, 0x180015a0e\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x123, 0x180015a13\nadd     rsp, 30h                                                       ; +0x128, 0x180015a18\npop     rdi                                                            ; +0x12c, 0x180015a1c\nretn                                                                   ; +0x12d, 0x180015a1d", "xrefs": ["cocos2d::extension::CCTableView::updateCellAtIndex @ 0x180014ebf", "cocos2d::extension::CCTableView::removeCellAtIndex @ 0x18001525a", "cocos2d::extension::CCTableView::scrollViewDidScroll @ 0x180015eba", "cocos2d::extension::CCTableView::scrollViewDidScroll @ 0x180015f12", "<???> @ 0x180032408", "<???> @ 0x18004c7ac"], "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"}