// // cocos2d::extension::CCTableView::scrollViewDidScroll from 0x7aff74 to 0x7b0124 (432 bytes) // // 1 xrefs: // > `non-virtual thunk to'cocos2d::extension::CCTableView::scrollViewDidScroll @ 0x7b0130 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:00:06 +0000 // void *__fastcall cocos2d::extension::CCTableView::scrollViewDidScroll( cocos2d::extension::CCTableView *this, cocos2d::extension::CCScrollView *a2) { void *result; // r0 void *v4; // r6 int v5; // r0 unsigned int v6; // r6 float v7; // s16 float v8; // s17 int Container; // r0 float v10; // r2 float v11; // r3 int v12; // r0 float v13; // s16 unsigned int v14; // r9 int v15; // r0 float v16; // r0 float v17; // s16 int v18; // r0 float v19; // r0 float v20; // s16 int v21; // r0 float v22; // r0 float v23; // r2 float v24; // r3 int v25; // r0 unsigned int v26; // r8 cocos2d::extension::CCTableViewCell *v27; // r10 int v28; // r2 cocos2d::extension::CCTableViewCell *Object; // r10 int v30; // r2 float v31; // [sp+4h] [bp-14h] BYREF float v32; // [sp+8h] [bp-10h] unsigned int v33[2]; // [sp+Ch] [bp-Ch] BYREF result = (void *)(*(int (__fastcall **)(_DWORD, cocos2d::extension::CCTableView *))(**((_DWORD **)this + 121) + 20))( *((_DWORD *)this + 121), this); v4 = result; if ( result ) { v5 = *((_DWORD *)this + 122); if ( v5 ) (*(void (__fastcall **)(int, cocos2d::extension::CCTableView *))(*(_DWORD *)v5 + 8))(v5, this); v6 = (unsigned int)v4 - 1; cocos2d::extension::CCScrollView::getContentOffset((cocos2d::extension::CCScrollView *)v33, (int)this); cocos2d::CCPoint::operator*(&v31, v33, -1082130432); if ( !*((_DWORD *)this + 114) ) { v7 = v32; v8 = *((float *)this + 101); Container = cocos2d::extension::CCScrollView::getContainer(this); v32 = v7 + (float)(v8 / (*(float (__fastcall **)(int))(*(_DWORD *)Container + 76))(Container)); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, (const cocos2d::CCPoint *)&v31); v12 = cocos2d::extension::CCTableView::_indexFromOffset((int)this, (float *)v33, v10, v11); v13 = *((float *)this + 101); if ( v12 == -1 ) v14 = v6; else v14 = v12; if ( *((_DWORD *)this + 114) ) { v18 = cocos2d::extension::CCScrollView::getContainer(this); v19 = (*(float (__fastcall **)(int))(*(_DWORD *)v18 + 76))(v18); v17 = v32 + (float)(v13 / v19); } else { v15 = cocos2d::extension::CCScrollView::getContainer(this); v16 = (*(float (__fastcall **)(int))(*(_DWORD *)v15 + 76))(v15); v17 = v32 - (float)(v13 / v16); } v32 = v17; v20 = *((float *)this + 100); v21 = cocos2d::extension::CCScrollView::getContainer(this); v22 = (*(float (__fastcall **)(int))(*(_DWORD *)v21 + 68))(v21); v31 = v31 + (float)(v20 / v22); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, (const cocos2d::CCPoint *)&v31); v25 = cocos2d::extension::CCTableView::_indexFromOffset((int)this, (float *)v33, v23, v24); if ( v25 == -1 ) v26 = v6; else v26 = v25; while ( cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 119)) ) { v27 = (cocos2d::extension::CCTableViewCell *)cocos2d::CCArray::objectAtIndex( *((cocos2d::CCArray **)this + 119), 0); if ( cocos2d::extension::CCTableViewCell::getIdx(v27) >= v14 ) break; cocos2d::extension::CCTableView::_moveCellOutOfSight(this, v27, v28); } while ( 1 ) { result = (void *)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 119)); if ( !result ) break; Object = (cocos2d::extension::CCTableViewCell *)cocos2d::CCArray::lastObject(*((cocos2d::CCArray **)this + 119)); result = (void *)cocos2d::extension::CCTableViewCell::getIdx(Object); if ( (unsigned int)result > v6 || (unsigned int)result <= v26 ) break; cocos2d::extension::CCTableView::_moveCellOutOfSight(this, Object, v30); } for ( v33[0] = v14; v33[0] <= v26; ++v33[0] ) { result = std::__tree::find(*((_DWORD *)this + 115), v33); if ( (void *)(*((_DWORD *)this + 115) + 4) == result ) result = cocos2d::extension::CCTableView::updateCellAtIndex(this, *(float *)v33); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source