// // cocos2d::extension::CCTableView::removeCellAtIndex from 0x100419e20 to 0x10041a02a (522 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:30:12 +0000 // void __fastcall cocos2d::extension::CCTableView::removeCellAtIndex(__int64 a1, unsigned int a2) { int v3; // eax __int64 v4; // rax __int64 v5; // rcx __int64 v6; // rax __int64 v7; // rdx void *v8; // rax __int64 v9; // r12 unsigned int v10; // r14d _QWORD *v11; // rax __int64 *v12; // rdi _QWORD *v13; // r12 __int64 v14; // rdx _QWORD *v15; // rdx _QWORD *v16; // rcx _QWORD *v17; // rdx bool v18; // zf unsigned int v19; // r15d __int64 v20; // r13 unsigned int v21; // r14d __int64 v22; // rsi unsigned int v23; // r14d float v24; // [rsp-3Ch] [rbp-3Ch] BYREF unsigned int v25; // [rsp-34h] [rbp-34h] if ( a2 != -1 ) { v3 = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 640) + 40LL))(*(_QWORD *)(a1 + 640), a1); if ( v3 != 0 && v3 - 1 >= a2 ) { v4 = *(_QWORD *)(a1 + 592); v5 = *(_QWORD *)(v4 + 8); if ( v5 ) { v6 = v4 + 8; v7 = v6; do { if ( *(_DWORD *)(v5 + 28) >= a2 ) v7 = v5; v5 = *(_QWORD *)(v5 + 8LL * (*(_DWORD *)(v5 + 28) < a2)); } while ( v5 ); if ( v7 != v6 && *(_DWORD *)(v7 + 28) <= a2 ) { v8 = cocos2d::extension::CCArrayForObjectSorting::objectWithObjectID(*(_QWORD *)(a1 + 624), a2); if ( v8 ) { v9 = (__int64)v8 - 320; v10 = cocos2d::extension::CCArrayForObjectSorting::indexOfSortedObject(*(_QWORD *)(a1 + 624), (__int64)v8); cocos2d::extension::CCTableView::_moveCellOutOfSight((_QWORD *)a1, v9); v11 = *(_QWORD **)(a1 + 592); v12 = (__int64 *)v11[1]; if ( v12 ) { v13 = v11 + 1; v14 = v11[1]; do { if ( *(_DWORD *)(v14 + 28) >= a2 ) v13 = (_QWORD *)v14; v14 = *(_QWORD *)(v14 + 8LL * (*(_DWORD *)(v14 + 28) < a2)); } while ( v14 ); if ( v13 != v11 + 1 && *((_DWORD *)v13 + 7) <= a2 ) { v15 = (_QWORD *)v13[1]; if ( v15 ) { do { v16 = v15; v15 = (_QWORD *)*v15; } while ( v15 ); } else { v17 = v13; do { v16 = (_QWORD *)v17[2]; v18 = *v16 == (_QWORD)v17; v17 = v16; } while ( !v18 ); } if ( (_QWORD *)*v11 == v13 ) *v11 = v16; --v11[2]; sub_1001454C0(v12, v13); operator delete(v13); } } cocos2d::extension::CCTableView::_updateCellPositions(a1); v19 = sub_1007FEF90(*(_QWORD *)(a1 + 624)) - 1; if ( v19 > v10 ) { v25 = v10; do { v20 = sub_1007FEFE0(*(_QWORD *)(a1 + 624), v19); v21 = cocos2d::extension::CCTableViewCell::getIdx(v20) - 1; sub_100278250(&v24, 0.0, 0.0); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v20 + 296LL))(v20, &v24); cocos2d::extension::CCTableView::_offsetFromIndex(&v24, a1, v21); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v20 + 184LL))(v20, &v24); v22 = v21; v23 = v25; cocos2d::extension::CCTableViewCell::setIdx(v20, v22); --v19; } while ( v19 > v23 ); } } } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source