// // cocos2d::extension::CCTableView::insertCellAtIndex from 0xd1a97c to 0xd1aa90 (276 bytes) // // 1 xrefs: // > @ 0xc3b80 // // This function is hookable on this platform (idp: arm, 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 13:07:08 +0000 // __int64 __fastcall cocos2d::extension::CCTableView::insertCellAtIndex(__int64 this, unsigned int a2) { __int64 v2; // x19 __int64 v4; // x0 unsigned int v5; // w20 int Idx; // w0 bool v7; // cf unsigned int v8; // w1 cocos2d::extension::CCTableViewCell *v9; // x20 cocos2d::extension::CCTableViewCell *v10; // [xsp+38h] [xbp+38h] if ( a2 != -1 ) { v2 = this; this = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(this + 640) + 40LL))( *(_QWORD *)(this + 640), this); if ( (_DWORD)this ) { this = (unsigned int)(this - 1); if ( a2 <= (unsigned int)this ) { v4 = cocos2d::extension::CCArrayForObjectSorting::objectWithObjectID( *(cocos2d::extension::CCArrayForObjectSorting **)(v2 + 624), a2); if ( v4 && v4 != 320 ) { v5 = cocos2d::extension::CCArrayForObjectSorting::indexOfSortedObject(*(_QWORD *)(v2 + 624), v4); while ( 1 ) { v7 = v5 >= (unsigned int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(v2 + 624)); v8 = v5++; if ( v7 ) break; v10 = (cocos2d::extension::CCTableViewCell *)cocos2d::CCArray::objectAtIndex( *(cocos2d::CCArray **)(v2 + 624), v8); Idx = cocos2d::extension::CCTableViewCell::getIdx(v10); cocos2d::extension::CCTableView::_setIndexForCell((cocos2d::extension::CCTableView *)v2, Idx + 1, v10); } } v9 = (cocos2d::extension::CCTableViewCell *)(*(__int64 (__fastcall **)(_QWORD, __int64, _QWORD))(**(_QWORD **)(v2 + 640) + 32LL))( *(_QWORD *)(v2 + 640), v2, a2); cocos2d::extension::CCTableView::_setIndexForCell((cocos2d::extension::CCTableView *)v2, a2, v9); cocos2d::extension::CCTableView::_addCellIfNecessary((cocos2d::extension::CCTableView *)v2, v9); cocos2d::extension::CCTableView::_updateCellPositions((cocos2d::extension::CCTableView *)v2); return cocos2d::extension::CCTableView::_updateContentSize((cocos2d::extension::CCTableView *)v2); } } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source