// // cocos2d::extension::CCTableView::scrollViewDidScroll from 0x180015c70 to 0x180015fb2 (834 bytes) // // 5 xrefs: // > @ 0x18002ae68 // > @ 0x1800314e8 // > @ 0x180031550 // > @ 0x180032408 // > @ 0x18004c7d0 // // 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:15:41 +0000 // void __fastcall cocos2d::extension::CCTableView::scrollViewDidScroll( cocos2d::extension::CCTableView *this, struct cocos2d::extension::CCScrollView *a2) { char *v2; // rbx int v4; // r15d __int64 v5; // rcx const struct cocos2d::CCPoint *v6; // rax char *v7; // rbp unsigned int v8; // r14d float v9; // xmm0_4 float *v10; // rsi float *v11; // rax float *v12; // r12 signed int v13; // r13d float *v14; // rax unsigned int v15; // ebx char *v16; // rax float (*v17)(void); // rdx float v18; // xmm2_4 __int64 v19; // rcx float v20; // xmm0_4 float *v21; // rax unsigned int v22; // esi struct cocos2d::CCObject *i; // rax struct cocos2d::CCObject *Object; // rax unsigned int j; // ecx __int64 *v26; // rax __int64 *v27; // rdx __int64 *k; // rcx float v29; // [rsp+60h] [rbp+8h] BYREF float v30; // [rsp+64h] [rbp+Ch] char v31; // [rsp+70h] [rbp+18h] BYREF char v32; // [rsp+78h] [rbp+20h] BYREF v2 = (char *)this - 568; v4 = (*(__int64 (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 9) + 32LL))( *((_QWORD *)this + 9), (char *)this - 568); if ( !v4 ) return; v5 = *((_QWORD *)this + 10); if ( v5 ) (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v5 + 8LL))(v5, v2); v6 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this - 15) + 200LL))(*((_QWORD *)this - 15)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, v6); cocos2d::CCPoint::operator*(&v31, &v29); v7 = (char *)this + 16; v8 = v4 - 1; if ( v4 == 1 ) v8 = 0; if ( *(_DWORD *)v7 ) { v10 = (float *)((char *)this - 52); } else { v9 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this - 15) + 144LL))(*((_QWORD *)this - 15)); v10 = (float *)((char *)this - 52); v7 = (char *)this + 16; v30 = v30 + (float)(*((float *)this - 13) / v9); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, (const struct cocos2d::CCPoint *)&v29); v12 = v11; v13 = (*(__int64 (__fastcall **)(_QWORD, char *))(**((_QWORD **)v2 + 80) + 32LL))(*((_QWORD *)v2 + 80), v2) - 1; if ( !*((_DWORD *)v2 + 146) ) v12[1] = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v2 + 56) + 320LL))(*((_QWORD *)v2 + 56)) + 4) - v12[1]; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v32, (const struct cocos2d::CCPoint *)v12); v15 = cocos2d::extension::CCTableView::__indexFromOffset((__int64)v2, v14); v16 = v7; if ( v15 != -1 ) { if ( (v15 & 0x80000000) != 0 ) v15 = 0; v16 = v7; if ( (int)v15 > v13 ) { v16 = (char *)this + 16; v10 = (float *)((char *)this - 52); LABEL_17: v15 = v4 - 1; v7 = v16; goto LABEL_18; } } if ( v15 == -1 ) goto LABEL_17; LABEL_18: v17 = *(float (**)(void))(**((_QWORD **)this - 15) + 144LL); if ( *(_DWORD *)v7 ) v18 = v30 + (float)(*v10 / v17()); else v18 = v30 - (float)(*v10 / v17()); v19 = *((_QWORD *)this - 15); v30 = v18; v20 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v19 + 128LL))(v19); v29 = v29 + (float)(*((float *)this - 14) / v20); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, (const struct cocos2d::CCPoint *)&v29); v22 = cocos2d::extension::CCTableView::_indexFromOffset((__int64)this - 568, v21); if ( v22 == -1 ) v22 = v4 - 1; if ( cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 7)) ) { for ( i = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 7), 0); *((_DWORD *)i + 82) < v15; i = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 7), 0) ) { cocos2d::extension::CCTableView::_moveCellOutOfSight((cocos2d::extension::CCTableView *)((char *)this - 568), i); if ( !cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 7)) ) break; } } if ( cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 7)) ) { Object = cocos2d::CCArray::lastObject(*((cocos2d::CCArray **)this + 7)); for ( j = *((_DWORD *)Object + 82); j <= v8; j = *((_DWORD *)Object + 82) ) { if ( j <= v22 ) break; cocos2d::extension::CCTableView::_moveCellOutOfSight( (cocos2d::extension::CCTableView *)((char *)this - 568), Object); if ( !cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 7)) ) break; Object = cocos2d::CCArray::lastObject(*((cocos2d::CCArray **)this + 7)); } } for ( ; v15 <= v22; ++v15 ) { v26 = **((__int64 ***)this + 3); v27 = v26; for ( k = (__int64 *)v26[1]; !*((_BYTE *)k + 25); k = (__int64 *)*k ) { if ( *((_DWORD *)k + 7) >= v15 ) v27 = k; else k += 2; } if ( *((_BYTE *)v27 + 25) || v15 < *((_DWORD *)v27 + 7) || v27 == v26 ) cocos2d::extension::CCTableView::updateCellAtIndex((cocos2d::extension::CCTableView *)((char *)this - 568), v15); } }