// // cocos2d::extension::CCTableView::_updateCellPositions from 0x180015ad0 to 0x180015c61 (401 bytes) // // 7 xrefs: // > cocos2d::extension::CCTableView::create @ 0x180014876 // > cocos2d::extension::CCTableView::reloadData @ 0x180014d64 // > cocos2d::extension::CCTableView::insertCellAtIndex @ 0x1800150b7 // > cocos2d::extension::CCTableView::removeCellAtIndex @ 0x1800152f8 // > @ 0x180032408 // > @ 0x18004c7b8 // > @ 0x18004c7c4 // // 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::_updateCellPositions(cocos2d::extension::CCTableView *this) { int v2; // eax _QWORD *v3; // r14 char *v4; // rsi unsigned int v5; // edi __int64 v6; // r15 float v7; // xmm6_4 unsigned __int64 v8; // rbx __int64 v9; // rdx unsigned __int64 v10; // rcx unsigned __int64 v11; // rbx __int64 v12; // rcx unsigned __int8 v13; // al int v14; // eax __int64 v15; // rbx size_t v16; // r8 __int64 i; // rbx __int64 v18; // rax _QWORD v19[2]; // [rsp+20h] [rbp-48h] BYREF float v20; // [rsp+70h] [rbp+8h] BYREF float v21; // [rsp+74h] [rbp+Ch] char v22; // [rsp+78h] [rbp+10h] BYREF v2 = (*(__int64 (__fastcall **)(_QWORD, cocos2d::extension::CCTableView *))(**((_QWORD **)this + 80) + 32LL))( *((_QWORD *)this + 80), this); v3 = (_QWORD *)((char *)this + 600); LODWORD(v19[0]) = 0; v4 = *((char **)this + 76); v5 = 0; v6 = v2; v7 = 0.0; v8 = v2 + 1; v9 = *((_QWORD *)this + 75); v10 = (__int64)&v4[-v9] >> 2; if ( v8 < v10 ) { *((_QWORD *)this + 76) = v9 + 4 * v8; goto LABEL_17; } if ( v8 > v10 ) { if ( v8 > (*((_QWORD *)this + 77) - v9) >> 2 ) { sub_1800168F0((char *)this + 600, v8, v19); goto LABEL_17; } v11 = v8 - v10; HIDWORD(v19[0]) = 0; v12 = 0; while ( 1 ) { v13 = *((_BYTE *)v19 + v12++); if ( v13 != *((_BYTE *)v19 + v12 + 3) ) break; if ( v12 == 4 ) { v14 = 0; goto LABEL_11; } } v14 = v13 < *((_BYTE *)v19 + v12 + 3) ? -1 : 1; LABEL_11: if ( v14 ) { if ( !v11 ) { LABEL_16: *((_QWORD *)this + 76) = v4; goto LABEL_17; } v15 = 4 * v11; v16 = v15 & 0xFFFFFFFFFFFFFFFCuLL; } else { v15 = 4 * v11; v16 = v15; } memset(v4, 0, v16); v4 += v15; goto LABEL_16; } LABEL_17: if ( (int)v6 > 0 ) { cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v20); for ( i = 0; i < v6; ++i ) { *(float *)(*v3 + 4 * i) = v7; v18 = (*(__int64 (__fastcall **)(_QWORD, char *, cocos2d::extension::CCTableView *, _QWORD, _QWORD))(**((_QWORD **)this + 80) + 8LL))( *((_QWORD *)this + 80), &v22, this, v5, v19[0]); cocos2d::CCSize::operator=(&v20, v18); if ( *((_DWORD *)this + 108) ) v7 = v7 + v21; else v7 = v7 + v20; ++v5; } *(float *)(*v3 + 4 * v6) = v7; } }