// // cocos2d::extension::CCTableView::_indexFromOffset from 0x5a9bf0 to 0x5a9c6a (122 bytes) // // 3 xrefs: // > cocos2d::extension::CCTableView::scrollViewDidScroll @ 0x5aa080 // > cocos2d::extension::CCTableView::scrollViewDidScroll @ 0x5aa104 // > cocos2d::extension::CCTableView::ccTouchBegan @ 0x5aa686 // // 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 // unsigned int cocos2d::extension::CCTableView::_indexFromOffset( cocos2d::extension::CCTableView *a1, cocos2d::CCPoint a2) { float x; // r6 int v4; // r8 cocos2d::CCNode *Container; // r0 cocos2d::CCPoint v6; // r1 unsigned int result; // r0 cocos2d::CCPoint v8; // [sp+4h] [bp-Ch] BYREF v8 = a2; x = a2.x; v4 = (*(int (__fastcall **)(int, cocos2d::extension::CCTableView *))(*(_DWORD *)a1[1].m_uUnknown + 20))( a1[1].m_uUnknown, a1) - 1; if ( !a1[1].m_uID ) { Container = cocos2d::extension::CCScrollView::getContainer(a1); *(float *)(LODWORD(x) + 4) = Container->getContentSize(Container)->height - *(float *)(LODWORD(x) + 4); } cocos2d::CCPoint::CCPoint(&v8, (const cocos2d::CCPoint *)LODWORD(x)); LODWORD(v6.x) = &v8; result = cocos2d::extension::CCTableView::__indexFromOffset(a1, v6); if ( result != -1 ) { result &= ~((int)result >> 31); if ( (int)result > v4 ) return -1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source