// // cocos2d::extension::CCTableView::__indexFromOffset from 0xaa791c to 0xaa79fc (224 bytes) // // 2 xrefs: // > cocos2d::extension::CCTableView::_indexFromOffset @ 0xaa7a64 // > @ 0x80d18 // // 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 // // local variable allocation has failed, the output may be wrong! int cocos2d::extension::CCTableView::__indexFromOffset(cocos2d::extension::CCTableView *a1, cocos2d::CCPoint a2) { float *v2; // x1 float *v4; // x20 int v5; // w2 float v6; // s0 int v7; // w1 __int64 v8; // x3 int result; // w0 int v10; // w4 float v11; // s1 float v12; // s1 v4 = v2; v5 = (*(__int64 (__fastcall **)(_QWORD, cocos2d::extension::CCTableView *, long double, long double))(**(_QWORD **)&a1[1].m_fScaleX + 40LL))( *(_QWORD *)&a1[1].m_fScaleX, a1, *(long double *)&a2.x, *(long double *)&a2.y) - 1; if ( a1->m_eDirection ) v6 = v4[1]; else v6 = *v4; v7 = 0; if ( v5 < 0 ) { LABEL_12: if ( v7 <= 0 ) return 0; else return -1; } else { while ( 1 ) { v8 = *(_QWORD *)&a1[1].m_uAutoReleaseCount; result = v7 + (v5 - v7) / 2; v10 = result + 1; v11 = *(float *)(v8 + 4LL * result); if ( v6 <= *(float *)(v8 + 4LL * (result + 1)) && v11 <= v6 ) break; if ( v6 >= v11 ) { do { v7 = v10; if ( v5 < v10 ) goto LABEL_12; result = v10 + (v5 - v10) / 2; v10 = result + 1; v12 = *(float *)(v8 + 4LL * result); if ( v6 <= *(float *)(v8 + 4LL * (result + 1)) && v12 <= v6 ) return result; } while ( v12 <= v6 ); } v5 = result - 1; if ( v7 > result - 1 ) goto LABEL_12; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source