// // cocos2d::extension::CCTableView::insertCellAtIndex from 0xaa8450 to 0xaa8564 (276 bytes) // // 1 xrefs: // > @ 0x941a0 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void cocos2d::extension::CCTableView::insertCellAtIndex(cocos2d::extension::CCTableView *a1, unsigned int a2) { int v4; // w0 cocos2d::extension::CCSortableObject *v5; // x0 unsigned int v6; // w20 unsigned int Idx; // w0 bool v8; // cf unsigned int v9; // w1 cocos2d::extension::CCTableViewCell *v10; // x20 cocos2d::extension::CCTableViewCell *v11; // [xsp+38h] [xbp+38h] if ( a2 != -1 ) { v4 = (*(__int64 (__fastcall **)(_QWORD, cocos2d::extension::CCTableView *))(**(_QWORD **)&a1[1].m_fScaleX + 40LL))( *(_QWORD *)&a1[1].m_fScaleX, a1); if ( v4 ) { if ( a2 <= v4 - 1 ) { v5 = cocos2d::extension::CCArrayForObjectSorting::objectWithObjectID( *(cocos2d::extension::CCArrayForObjectSorting **)&a1[1].m_uOrderOfArrival, a2); if ( v5 && v5 != (cocos2d::extension::CCSortableObject *)&qword_140 ) { v6 = cocos2d::extension::CCArrayForObjectSorting::indexOfSortedObject( *(cocos2d::extension::CCArrayForObjectSorting **)&a1[1].m_uOrderOfArrival, v5); while ( 1 ) { v8 = v6 >= (unsigned int)cocos2d::CCArray::count(*(cocos2d::CCArray **)&a1[1].m_uOrderOfArrival); v9 = v6++; if ( v8 ) break; v11 = (cocos2d::extension::CCTableViewCell *)cocos2d::CCArray::objectAtIndex( *(cocos2d::CCArray **)&a1[1].m_uOrderOfArrival, v9); Idx = cocos2d::extension::CCTableViewCell::getIdx(v11); cocos2d::extension::CCTableView::_setIndexForCell(a1, Idx + 1, v11); } } v10 = (cocos2d::extension::CCTableViewCell *)(*(__int64 (__fastcall **)(_QWORD, cocos2d::extension::CCTableView *, _QWORD))(**(_QWORD **)&a1[1].m_fScaleX + 32LL))( *(_QWORD *)&a1[1].m_fScaleX, a1, a2); cocos2d::extension::CCTableView::_setIndexForCell(a1, a2, v10); cocos2d::extension::CCTableView::_addCellIfNecessary(a1, v10); cocos2d::extension::CCTableView::_updateCellPositions(a1); cocos2d::extension::CCTableView::_updateContentSize(a1); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source