// // cocos2d::extension::CCTableView::scrollViewDidScroll from 0xaa87f4 to 0xaa8aac (696 bytes) // // 3 xrefs: // > `non-virtual thunk to'cocos2d::extension::CCTableView::scrollViewDidScroll @ 0xaa8ab0 // > @ 0xace18 // > @ 0x11f9c38 // // 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::scrollViewDidScroll( cocos2d::extension::CCTableView *a1, cocos2d::extension::CCScrollView *a2) { int v3; // w23 __int64 v4; // x0 unsigned int v5; // w23 unsigned int v6; // w19 float v7; // s8 cocos2d::CCNode *v8; // x0 float v9; // s0 float width; // s8 cocos2d::CCNode *v11; // x0 float v12; // s0 unsigned int v13; // w21 __int64 v14; // x0 __int64 v15; // x3 __int64 v16; // x0 __int64 v17; // x2 unsigned int Idx; // w0 cocos2d::CCNode *v19; // x0 float v20; // s0 float height; // s9 cocos2d::CCNode *Container; // x0 cocos2d::extension::CCTableViewCell *Object; // [xsp+58h] [xbp+58h] cocos2d::extension::CCTableViewCell *v24; // [xsp+58h] [xbp+58h] cocos2d::CCPoint v25; // [xsp+68h] [xbp+68h] BYREF cocos2d::CCPoint v26; // [xsp+70h] [xbp+70h] BYREF cocos2d::CCPoint v27; // 0:s0.4,4:s1.4 cocos2d::CCPoint v28; // 0:s0.4,4:s1.4 v3 = (*(__int64 (__fastcall **)(_QWORD, cocos2d::extension::CCTableView *))(**(_QWORD **)&a1[1].m_fScaleX + 40LL))( *(_QWORD *)&a1[1].m_fScaleX, a1); if ( v3 ) { v4 = *(_QWORD *)&a1[1].m_fVertexZ; if ( v4 ) (*(void (__fastcall **)(__int64, cocos2d::extension::CCTableView *))(*(_QWORD *)v4 + 16LL))(v4, a1); v5 = v3 - 1; cocos2d::extension::CCScrollView::getContentOffset(a1); cocos2d::CCPoint::operator*(&v26, -1.0); if ( !a1[1].m_uID ) { height = a1->m_tViewSize.height; Container = cocos2d::extension::CCScrollView::getContainer(a1); v25.y = v25.y + (float)(height / Container->getScaleY(Container)); } cocos2d::CCPoint::CCPoint(&v26, &v25); v6 = cocos2d::extension::CCTableView::_indexFromOffset(a1, v27); if ( v6 == -1 ) v6 = v5; v7 = a1->m_tViewSize.height; if ( a1[1].m_uID ) { v8 = cocos2d::extension::CCScrollView::getContainer(a1); v9 = v8->getScaleY(v8); v25.y = v25.y + (float)(v7 / v9); } else { v19 = cocos2d::extension::CCScrollView::getContainer(a1); v20 = v19->getScaleY(v19); v25.y = v25.y - (float)(v7 / v20); } width = a1->m_tViewSize.width; v11 = cocos2d::extension::CCScrollView::getContainer(a1); v12 = v11->getScaleX(v11); v25.x = v25.x + (float)(width / v12); cocos2d::CCPoint::CCPoint(&v26, &v25); v13 = cocos2d::extension::CCTableView::_indexFromOffset(a1, v28); if ( v13 == -1 ) v13 = v5; while ( (unsigned int)cocos2d::CCArray::count(*(cocos2d::CCArray **)&a1[1].m_uOrderOfArrival) ) { v24 = (cocos2d::extension::CCTableViewCell *)cocos2d::CCArray::objectAtIndex( *(cocos2d::CCArray **)&a1[1].m_uOrderOfArrival, 0); if ( v6 <= cocos2d::extension::CCTableViewCell::getIdx(v24) ) break; cocos2d::extension::CCTableView::_moveCellOutOfSight(a1, v24); } while ( (unsigned int)cocos2d::CCArray::count(*(cocos2d::CCArray **)&a1[1].m_uOrderOfArrival) ) { Object = (cocos2d::extension::CCTableViewCell *)cocos2d::CCArray::lastObject(*(cocos2d::CCArray **)&a1[1].m_uOrderOfArrival); Idx = cocos2d::extension::CCTableViewCell::getIdx(Object); if ( v13 >= Idx ) break; if ( v5 < Idx ) break; cocos2d::extension::CCTableView::_moveCellOutOfSight(a1, Object); } for ( ; v13 >= v6; ++v6 ) { v14 = *(_QWORD *)&a1[1].m_nTag; v15 = v14 + 8; v16 = *(_QWORD *)(v14 + 16); if ( v16 ) { v17 = v15; do { while ( *(_DWORD *)(v16 + 32) >= v6 ) { v17 = v16; v16 = *(_QWORD *)(v16 + 16); if ( !v16 ) goto LABEL_19; } v16 = *(_QWORD *)(v16 + 24); } while ( v16 ); LABEL_19: if ( v17 != v15 && v6 >= *(_DWORD *)(v17 + 32) ) continue; } cocos2d::extension::CCTableView::updateCellAtIndex(a1, v6); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source