{"type": "func", "start": 6442536480, "end": 6442536706, "name": "cocos2d::extension::CCTableView::updateCellAtIndex", "pseudocode": "// \n// cocos2d::extension::CCTableView::updateCellAtIndex from 0x180014e20 to 0x180014f02 (226 bytes)\n// \n// 5 xrefs:\n// > cocos2d::extension::CCTableView::scrollViewDidScroll @ 0x180015f94\n// > <???> @ 0x180031310\n// > <???> @ 0x180031320\n// > <???> @ 0x180032408\n// > <???> @ 0x18004c680\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::updateCellAtIndex(\n        cocos2d::extension::CCTableView *this,\n        unsigned int a2)\n{\n  int v4; // eax\n  __int64 *v5; // rax\n  __int64 *v6; // rdx\n  __int64 *i; // rcx\n  struct cocos2d::extension::CCSortableObject *v8; // rax\n  struct cocos2d::extension::CCTableViewCell *v9; // rbx\n\n  if ( a2 != -1 )\n  {\n    v4 = (*(__int64 (__fastcall **)(_QWORD, cocos2d::extension::CCTableView *))(**((_QWORD **)this + 80) + 32LL))(\n           *((_QWORD *)this + 80),\n           this);\n    if ( v4 )\n    {\n      if ( a2 <= v4 - 1 )\n      {\n        v5 = **((__int64 ***)this + 74);\n        v6 = v5;\n        for ( i = (__int64 *)v5[1]; !*((_BYTE *)i + 25); i = (__int64 *)*i )\n        {\n          if ( *((_DWORD *)i + 7) >= a2 )\n            v6 = i;\n          else\n            i += 2;\n        }\n        if ( !*((_BYTE *)v6 + 25) && a2 >= *((_DWORD *)v6 + 7) && v6 != v5 )\n        {\n          v8 = cocos2d::extension::CCArrayForObjectSorting::objectWithObjectID(\n                 *((cocos2d::extension::CCArrayForObjectSorting **)this + 78),\n                 a2);\n          if ( v8 )\n          {\n            if ( v8 != (struct cocos2d::extension::CCSortableObject *)320 )\n              cocos2d::extension::CCTableView::_moveCellOutOfSight(\n                this,\n                (struct cocos2d::extension::CCSortableObject *)((char *)v8 - 320));\n          }\n        }\n        v9 = (struct cocos2d::extension::CCTableViewCell *)(*(__int64 (__fastcall **)(_QWORD, cocos2d::extension::CCTableView *, _QWORD))(**((_QWORD **)this + 80) + 24LL))(\n                                                             *((_QWORD *)this + 80),\n                                                             this,\n                                                             a2);\n        cocos2d::extension::CCTableView::_setIndexForCell(this, a2, v9);\n        cocos2d::extension::CCTableView::_addCellIfNecessary(this, v9);\n      }\n    }\n  }\n}", "assembly": "; \n; cocos2d::extension::CCTableView::updateCellAtIndex from 0x180014e20 to 0x180014f02 (226 bytes)\n; \n; 5 xrefs:\n; > cocos2d::extension::CCTableView::scrollViewDidScroll @ 0x180015f94\n; > <???> @ 0x180031310\n; > <???> @ 0x180031320\n; > <???> @ 0x180032408\n; > <???> @ 0x18004c680\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; \ncmp     edx, 0FFFFFFFFh                                                ; +0x0, 0x180014e20\njz      locret_180014F01                                               ; +0x3, 0x180014e23\nmov     [rsp+arg_8], rsi                                               ; +0x9, 0x180014e29\npush    rdi                                                            ; +0xe, 0x180014e2e\nsub     rsp, 20h                                                       ; +0xf, 0x180014e2f\nmov     rsi, rcx                                                       ; +0x13, 0x180014e33\nmov     edi, edx                                                       ; +0x16, 0x180014e36\nmov     rcx, [rcx+280h]                                                ; +0x18, 0x180014e38\nmov     rdx, rsi                                                       ; +0x1f, 0x180014e3f\nmov     rax, [rcx]                                                     ; +0x22, 0x180014e42\ncall    qword ptr [rax+20h]                                            ; +0x25, 0x180014e45\ntest    eax, eax                                                       ; +0x28, 0x180014e48\njz      loc_180014EF7                                                  ; +0x2a, 0x180014e4a\ndec     eax                                                            ; +0x30, 0x180014e50\ncmp     edi, eax                                                       ; +0x32, 0x180014e52\nja      loc_180014EF7                                                  ; +0x34, 0x180014e54\nmov     rax, [rsi+250h]                                                ; +0x3a, 0x180014e5a\nmov     [rsp+28h+arg_0], rbx                                           ; +0x41, 0x180014e61\nmov     rax, [rax]                                                     ; +0x46, 0x180014e66\nmov     rdx, rax                                                       ; +0x49, 0x180014e69\nmov     rcx, [rax+8]                                                   ; +0x4c, 0x180014e6c\ncmp     byte ptr [rcx+19h], 0                                          ; +0x50, 0x180014e70\njnz     short loc_180014E8D                                            ; +0x54, 0x180014e74\ncmp     [rcx+1Ch], edi                                                 ; +0x56, 0x180014e76\njnb     short loc_180014E81                                            ; +0x59, 0x180014e79\nadd     rcx, 10h                                                       ; +0x5b, 0x180014e7b\njmp     short loc_180014E84                                            ; +0x5f, 0x180014e7f\nmov     rdx, rcx                                                       ; +0x61, 0x180014e81\nmov     rcx, [rcx]                                                     ; +0x64, 0x180014e84\ncmp     byte ptr [rcx+19h], 0                                          ; +0x67, 0x180014e87\njz      short loc_180014E76                                            ; +0x6b, 0x180014e8b\ncmp     byte ptr [rdx+19h], 0                                          ; +0x6d, 0x180014e8d\njnz     short loc_180014EC4                                            ; +0x71, 0x180014e91\ncmp     edi, [rdx+1Ch]                                                 ; +0x73, 0x180014e93\njb      short loc_180014EC4                                            ; +0x76, 0x180014e96\ncmp     rdx, rax                                                       ; +0x78, 0x180014e98\njz      short loc_180014EC4                                            ; +0x7b, 0x180014e9b\nmov     rcx, [rsi+270h]; this                                          ; +0x7d, 0x180014e9d\nmov     edx, edi; unsigned int                                         ; +0x84, 0x180014ea4\ncall    ?objectWithObjectID@CCArrayForObjectSorting@extension@cocos2d@@QEAAPEAVCCSortableObject@23@I@Z; cocos2d::extension::CCArrayForObjectSorting::objectWithObjectID(uint) ; +0x86, 0x180014ea6\ntest    rax, rax                                                       ; +0x8b, 0x180014eab\njz      short loc_180014EC4                                            ; +0x8e, 0x180014eae\nlea     rdx, [rax-140h]; struct cocos2d::extension::CCTableViewCell *  ; +0x90, 0x180014eb0\ntest    rdx, rdx                                                       ; +0x97, 0x180014eb7\njz      short loc_180014EC4                                            ; +0x9a, 0x180014eba\nmov     rcx, rsi; this                                                 ; +0x9c, 0x180014ebc\ncall    ?_moveCellOutOfSight@CCTableView@extension@cocos2d@@IEAAXPEAVCCTableViewCell@23@@Z; cocos2d::extension::CCTableView::_moveCellOutOfSight(cocos2d::extension::CCTableViewCell *) ; +0x9f, 0x180014ebf\nmov     rcx, [rsi+280h]                                                ; +0xa4, 0x180014ec4\nmov     r8d, edi                                                       ; +0xab, 0x180014ecb\nmov     rdx, rsi                                                       ; +0xae, 0x180014ece\nmov     rax, [rcx]                                                     ; +0xb1, 0x180014ed1\ncall    qword ptr [rax+18h]                                            ; +0xb4, 0x180014ed4\nmov     edx, edi; unsigned int                                         ; +0xb7, 0x180014ed7\nmov     rcx, rsi; this                                                 ; +0xb9, 0x180014ed9\nmov     r8, rax; struct cocos2d::extension::CCTableViewCell *          ; +0xbc, 0x180014edc\nmov     rbx, rax                                                       ; +0xbf, 0x180014edf\ncall    ?_setIndexForCell@CCTableView@extension@cocos2d@@IEAAXIPEAVCCTableViewCell@23@@Z; cocos2d::extension::CCTableView::_setIndexForCell(uint,cocos2d::extension::CCTableViewCell *) ; +0xc2, 0x180014ee2\nmov     rdx, rbx; struct cocos2d::extension::CCTableViewCell *         ; +0xc7, 0x180014ee7\nmov     rcx, rsi; this                                                 ; +0xca, 0x180014eea\ncall    ?_addCellIfNecessary@CCTableView@extension@cocos2d@@IEAAXPEAVCCTableViewCell@23@@Z; cocos2d::extension::CCTableView::_addCellIfNecessary(cocos2d::extension::CCTableViewCell *) ; +0xcd, 0x180014eed\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xd2, 0x180014ef2\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xd7, 0x180014ef7\nadd     rsp, 20h                                                       ; +0xdc, 0x180014efc\npop     rdi                                                            ; +0xe0, 0x180014f00\nretn                                                                   ; +0xe1, 0x180014f01", "xrefs": ["cocos2d::extension::CCTableView::scrollViewDidScroll @ 0x180015f94", "<???> @ 0x180031310", "<???> @ 0x180031320", "<???> @ 0x180032408", "<???> @ 0x18004c680"], "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"}