// // cocos2d::extension::CCTableView::insertCellAtIndex from 0x10042d010 to 0x10042d1a6 (406 bytes) // // 0 xrefs: // // 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::insertCellAtIndex( cocos2d::extension::CCTableView *a1, unsigned int a2) { int v3; // eax cocos2d::extension::CCArrayForObjectSorting *v4; // rdi cocos2d::extension::CCSortableObject *v5; // rax unsigned int i; // r15d cocos2d::extension::CCTableViewCell *v7; // r13 unsigned int v8; // r14d unsigned int v9; // r12d cocos2d::extension::CCTableViewCell *v10; // r15 float v11; // [rsp-3Ch] [rbp-3Ch] BYREF unsigned int v12; // [rsp-34h] [rbp-34h] double v13; // 0:xmm0_8.8 double v14; // 0:xmm0_8.8 if ( a2 != -1 ) { v3 = (*(__int64 (__fastcall **)(_QWORD, cocos2d::extension::CCTableView *))(**(_QWORD **)&a1[1].m_fScaleX + 40LL))( *(_QWORD *)&a1[1].m_fScaleX, a1); if ( v3 != 0 && v3 - 1 >= a2 ) { v4 = *(cocos2d::extension::CCArrayForObjectSorting **)&a1[1].m_uOrderOfArrival; v12 = a2; v5 = cocos2d::extension::CCArrayForObjectSorting::objectWithObjectID(v4, a2); if ( v5 ) { for ( i = cocos2d::extension::CCArrayForObjectSorting::indexOfSortedObject( *(cocos2d::extension::CCArrayForObjectSorting **)&a1[1].m_uOrderOfArrival, v5); i < (unsigned int)sub_100720070(*(_QWORD *)&a1[1].m_uOrderOfArrival); ++i ) { v7 = (cocos2d::extension::CCTableViewCell *)sub_1007200C0(*(_QWORD *)&a1[1].m_uOrderOfArrival, i); v8 = cocos2d::extension::CCTableViewCell::getIdx(v7) + 1; sub_10028CBE0(&v11, 0.0, 0.0); ((void (__fastcall *)(cocos2d::extension::CCTableViewCell *, float *))v7->setAnchorPoint)(v7, &v11); *(cocos2d::CCPoint *)&v13 = cocos2d::extension::CCTableView::_offsetFromIndex( (cocos2d::extension::CCTableView *)&v11, (unsigned int)a1); ((void (__fastcall *)(cocos2d::extension::CCTableViewCell *, float *, double))v7->setPosition)(v7, &v11, v13); cocos2d::extension::CCTableViewCell::setIdx(v7, v8); } } v9 = v12; v10 = (cocos2d::extension::CCTableViewCell *)(*(__int64 (__fastcall **)(_QWORD, cocos2d::extension::CCTableView *, _QWORD))(**(_QWORD **)&a1[1].m_fScaleX + 32LL))( *(_QWORD *)&a1[1].m_fScaleX, a1, v12); sub_10028CBE0(&v11, 0.0, 0.0); ((void (__fastcall *)(cocos2d::extension::CCTableViewCell *, float *))v10->setAnchorPoint)(v10, &v11); *(cocos2d::CCPoint *)&v14 = cocos2d::extension::CCTableView::_offsetFromIndex( (cocos2d::extension::CCTableView *)&v11, (unsigned int)a1); ((void (__fastcall *)(cocos2d::extension::CCTableViewCell *, float *, double))v10->setPosition)(v10, &v11, v14); cocos2d::extension::CCTableViewCell::setIdx(v10, v9); cocos2d::extension::CCTableView::_addCellIfNecessary(a1, v10); cocos2d::extension::CCTableView::_updateCellPositions(a1); cocos2d::extension::CCTableView::_updateContentSize(a1); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source