// // cocos2d::extension::CCTableView::scrollViewDidScroll from 0x10042d730 to 0x10042d9d3 (675 bytes) // // 2 xrefs: // > sub_10042D9E0 @ 0x10042d9ec // > @ 0x100935a30 // // 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 __fastcall cocos2d::extension::CCTableView::scrollViewDidScroll( cocos2d::extension::CCTableView *a1, cocos2d::extension::CCScrollView *a2) { int v3; // eax int v4; // r14d __int64 v5; // rdi cocos2d::CCNode *Container; // rax float v7; // xmm0_4 unsigned int v8; // r14d cocos2d::CCPoint v9; // xmm0_8 unsigned int v10; // r15d unsigned int m_uID; // r13d cocos2d::CCNode *v12; // rax float v13; // xmm1_4 float v14; // xmm0_4 cocos2d::CCNode *v15; // rax float v16; // xmm0_4 cocos2d::CCPoint v17; // xmm0_8 unsigned int v18; // r12d cocos2d::extension::CCTableViewCell *v19; // r13 cocos2d::extension::CCTableViewCell *v20; // r13 unsigned int Idx; // eax unsigned int v22; // eax __int64 v23; // rax __int64 v24; // rcx __int64 v25; // rax __int64 v26; // rdx unsigned __int64 v27; // [rsp+8h] [rbp-58h] BYREF float v28[7]; // [rsp+10h] [rbp-50h] float height; // [rsp+2Ch] [rbp-34h] double v30[6]; // [rsp+30h] [rbp-30h] BYREF v3 = (*(__int64 (__fastcall **)(_QWORD, cocos2d::extension::CCTableView *))(**(_QWORD **)&a1[1].m_fScaleX + 40LL))( *(_QWORD *)&a1[1].m_fScaleX, a1); if ( v3 ) { v4 = v3; v5 = *(_QWORD *)&a1[1].m_fVertexZ; if ( v5 ) (*(void (__fastcall **)(__int64, cocos2d::extension::CCTableView *))(*(_QWORD *)v5 + 16LL))(v5, a1); cocos2d::extension::CCScrollView::getContentOffset((cocos2d::extension::CCScrollView *)&v27); sub_10028CD40(v30, &v27, (__m128)0xBF800000); if ( !a1[1].m_uID ) { v28[0] = *((float *)v30 + 1); height = a1->m_tViewSize.height; Container = cocos2d::extension::CCScrollView::getContainer(a1); v7 = ((float (__fastcall *)(cocos2d::CCNode *))Container->getScaleY)(Container); *((float *)v30 + 1) = (float)(height / v7) + v28[0]; } v8 = v4 - 1; *(double *)&v9 = sub_10028CC60(&v27, v30); v10 = cocos2d::extension::CCTableView::_indexFromOffset(a1, v9); m_uID = a1[1].m_uID; *(_OWORD *)v28 = LODWORD(a1->m_tViewSize.height); v12 = cocos2d::extension::CCScrollView::getContainer(a1); v9.x = ((float (__fastcall *)(cocos2d::CCNode *, unsigned __int64 *))v12->getScaleY)(v12, &v27); v13 = v28[0] / v9.x; v14 = v28[0] / v9.x; if ( !m_uID ) v14 = -v13; if ( v10 == -1 ) v10 = v8; *((float *)v30 + 1) = v14 + *((float *)v30 + 1); v28[0] = a1->m_tViewSize.width; v15 = cocos2d::extension::CCScrollView::getContainer(a1); v16 = ((float (__fastcall *)(cocos2d::CCNode *))v15->getScaleX)(v15); *(float *)v30 = (float)(v28[0] / v16) + *(float *)v30; *(double *)&v17 = sub_10028CC60(&v27, v30); v18 = cocos2d::extension::CCTableView::_indexFromOffset(a1, v17); if ( v18 == -1 ) v18 = v8; while ( (unsigned int)sub_100720070(*(_QWORD *)&a1[1].m_uOrderOfArrival) ) { v19 = (cocos2d::extension::CCTableViewCell *)sub_1007200C0(*(_QWORD *)&a1[1].m_uOrderOfArrival, 0); if ( cocos2d::extension::CCTableViewCell::getIdx(v19) >= v10 ) break; cocos2d::extension::CCTableView::_moveCellOutOfSight(a1, v19); } if ( (unsigned int)sub_100720070(*(_QWORD *)&a1[1].m_uOrderOfArrival) ) { v20 = (cocos2d::extension::CCTableViewCell *)sub_1007200E0(*(_QWORD *)&a1[1].m_uOrderOfArrival); Idx = cocos2d::extension::CCTableViewCell::getIdx(v20); if ( Idx <= v8 && Idx > v18 ) { do { cocos2d::extension::CCTableView::_moveCellOutOfSight(a1, v20); if ( !(unsigned int)sub_100720070(*(_QWORD *)&a1[1].m_uOrderOfArrival) ) break; v20 = (cocos2d::extension::CCTableViewCell *)sub_1007200E0(*(_QWORD *)&a1[1].m_uOrderOfArrival); v22 = cocos2d::extension::CCTableViewCell::getIdx(v20); if ( v22 > v8 ) break; } while ( v22 > v18 ); } } while ( v10 <= v18 ) { v23 = *(_QWORD *)&a1[1].m_nTag; v24 = *(_QWORD *)(v23 + 8); if ( !v24 ) goto LABEL_21; v25 = v23 + 8; v26 = v25; do { if ( *(_DWORD *)(v24 + 28) >= v10 ) v26 = v24; v24 = *(_QWORD *)(v24 + 8LL * (*(_DWORD *)(v24 + 28) < v10)); } while ( v24 ); if ( v26 == v25 || v10 < *(_DWORD *)(v26 + 28) ) LABEL_21: cocos2d::extension::CCTableView::updateCellAtIndex(a1, v10); ++v10; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source