// // cocos2d::extension::CCTableView::_updateCellPositions from 0x10042c4a0 to 0x10042c5af (271 bytes) // // 4 xrefs: // > cocos2d::extension::CCTableView::create @ 0x10042c2cd // > cocos2d::extension::CCTableView::reloadData @ 0x10042cb66 // > cocos2d::extension::CCTableView::insertCellAtIndex @ 0x10042d18a // > cocos2d::extension::CCTableView::removeCellAtIndex @ 0x10042d308 // // 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::_updateCellPositions(cocos2d::extension::CCTableView *a1) { int v1; // r12d unsigned __int64 v2; // rax __int64 v3; // rcx unsigned __int64 v4; // rdx __int64 v5; // r14 float v6; // xmm0_4 __int64 i; // r12 float *v8; // rax __int64 v9; // [rsp+8h] [rbp-48h] BYREF unsigned int *p_m_uAutoReleaseCount; // [rsp+10h] [rbp-40h] __int64 v11; // [rsp+1Ch] [rbp-34h] BYREF float v12; // [rsp+24h] [rbp-2Ch] v1 = (*(__int64 (__fastcall **)(_QWORD, cocos2d::extension::CCTableView *))(**(_QWORD **)&a1[1].m_fScaleX + 40LL))( *(_QWORD *)&a1[1].m_fScaleX, a1); v2 = v1 + 1; LODWORD(v11) = 0; v3 = *(_QWORD *)&a1[1].m_uAutoReleaseCount; v4 = (*(_QWORD *)&a1[1].m_uIndexInArray - v3) >> 2; if ( v2 <= v4 ) { if ( v2 < v4 ) *(_QWORD *)&a1[1].m_uIndexInArray = v3 + 4 * v2; } else { sub_10041E1B0((void **)&a1[1].m_uAutoReleaseCount, v2 - v4, (unsigned int *)&v11); } if ( v1 > 0 ) { p_m_uAutoReleaseCount = &a1[1].m_uAutoReleaseCount; sub_10028CF90(&v11); v5 = (unsigned int)v1; v6 = 0.0; for ( i = 0; i != v5; ++i ) { v12 = v6; *(float *)(*(_QWORD *)&a1[1].m_uAutoReleaseCount + 4 * i) = v6; (*(void (__fastcall **)(__int64 *, _QWORD, cocos2d::extension::CCTableView *, _QWORD))(**(_QWORD **)&a1[1].m_fScaleX + 16LL))( &v9, *(_QWORD *)&a1[1].m_fScaleX, a1, (unsigned int)i); sub_10028CFF0(&v11, &v9); v8 = (float *)&v11 + 1; if ( a1->m_eDirection == kCCScrollViewDirectionHorizontal ) v8 = (float *)&v11; v6 = v12 + *v8; } *(float *)(*(_QWORD *)p_m_uAutoReleaseCount + 4 * v5) = v6; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source