// // cocos2d::extension::CCTableView::scrollViewDidScroll from 0xd1a6c0 to 0xd1a974 (692 bytes) // // 3 xrefs: // > `non-virtual thunk to'cocos2d::extension::CCTableView::scrollViewDidScroll @ 0xd1a978 // > @ 0xe25b8 // > @ 0x150f528 // // This function is hookable on this platform (idp: arm, 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 13:07:08 +0000 // __int64 __fastcall cocos2d::extension::CCTableView::scrollViewDidScroll( cocos2d::extension::CCTableView *this, cocos2d::extension::CCScrollView *a2) { int v3; // w23 __int64 v4; // x0 unsigned int v5; // w23 unsigned int v6; // w19 float v7; // s8 __int64 v8; // x0 float v9; // s0 float v10; // s8 __int64 v11; // x0 float v12; // s0 unsigned int v13; // w21 __int64 *v14; // x3 __int64 v15; // x0 __int64 v16; // x2 unsigned int Idx; // w0 __int64 v19; // x0 float v20; // s0 float v21; // s9 __int64 Container; // x0 cocos2d::extension::CCTableViewCell *Object; // [xsp+58h] [xbp+58h] cocos2d::extension::CCTableViewCell *v24; // [xsp+58h] [xbp+58h] float v25; // [xsp+68h] [xbp+68h] BYREF float v26; // [xsp+6Ch] [xbp+6Ch] float v27; // [xsp+70h] [xbp+70h] BYREF v3 = (*(__int64 (__fastcall **)(_QWORD, cocos2d::extension::CCTableView *))(**((_QWORD **)this + 80) + 40LL))( *((_QWORD *)this + 80), this); if ( v3 ) { v4 = *((_QWORD *)this + 81); if ( v4 ) (*(void (__fastcall **)(__int64, cocos2d::extension::CCTableView *))(*(_QWORD *)v4 + 16LL))(v4, this); v5 = v3 - 1; cocos2d::extension::CCScrollView::getContentOffset(this, (cocos2d::CCPoint *)&v27); cocos2d::CCPoint::operator*(&v27, -1.0); if ( !*((_DWORD *)this + 146) ) { v21 = *((float *)this + 127); Container = cocos2d::extension::CCScrollView::getContainer(this); v26 = v26 + (float)(v21 / (*(float (__fastcall **)(__int64))(*(_QWORD *)Container + 152LL))(Container)); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, (const cocos2d::CCPoint *)&v25); v6 = cocos2d::extension::CCTableView::_indexFromOffset((__int64)this, &v27); if ( v6 == -1 ) v6 = v5; v7 = *((float *)this + 127); if ( *((_DWORD *)this + 146) ) { v8 = cocos2d::extension::CCScrollView::getContainer(this); v9 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v8 + 152LL))(v8); v26 = v26 + (float)(v7 / v9); } else { v19 = cocos2d::extension::CCScrollView::getContainer(this); v20 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v19 + 152LL))(v19); v26 = v26 - (float)(v7 / v20); } v10 = *((float *)this + 126); v11 = cocos2d::extension::CCScrollView::getContainer(this); v12 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v11 + 136LL))(v11); v25 = v25 + (float)(v10 / v12); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, (const cocos2d::CCPoint *)&v25); v13 = cocos2d::extension::CCTableView::_indexFromOffset((__int64)this, &v27); if ( v13 == -1 ) v13 = v5; while ( (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 78)) ) { v24 = (cocos2d::extension::CCTableViewCell *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 78), 0); if ( v6 <= (unsigned int)cocos2d::extension::CCTableViewCell::getIdx(v24) ) break; cocos2d::extension::CCTableView::_moveCellOutOfSight(this, v24); } while ( (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 78)) ) { Object = (cocos2d::extension::CCTableViewCell *)cocos2d::CCArray::lastObject(*((cocos2d::CCArray **)this + 78)); Idx = cocos2d::extension::CCTableViewCell::getIdx(Object); if ( v13 >= Idx ) break; if ( v5 < Idx ) break; cocos2d::extension::CCTableView::_moveCellOutOfSight(this, Object); } for ( ; v13 >= v6; ++v6 ) { v14 = (__int64 *)(*((_QWORD *)this + 74) + 8LL); v15 = *v14; if ( *v14 ) { v16 = *((_QWORD *)this + 74) + 8LL; do { while ( *(_DWORD *)(v15 + 28) >= v6 ) { v16 = v15; v15 = *(_QWORD *)v15; if ( !v15 ) goto LABEL_19; } v15 = *(_QWORD *)(v15 + 8); } while ( v15 ); LABEL_19: if ( (__int64 *)v16 != v14 && *(_DWORD *)(v16 + 28) <= v6 ) continue; } cocos2d::extension::CCTableView::updateCellAtIndex((__int64)this, v6); } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source