// // cocos2d::extension::CCTableView::__indexFromOffset from 0xd192dc to 0xd193bc (224 bytes) // // 2 xrefs: // > cocos2d::extension::CCTableView::_indexFromOffset @ 0xd19424 // > @ 0xab6d0 // // 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:07 +0000 // __int64 __fastcall cocos2d::extension::CCTableView::__indexFromOffset(__int64 a1, float *a2) { int v4; // w2 float v5; // s0 int v6; // w1 __int64 v7; // x3 __int64 result; // x0 int v9; // w4 float v10; // s1 float v11; // s1 v4 = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 640) + 40LL))(*(_QWORD *)(a1 + 640), a1) - 1; if ( *(_DWORD *)(a1 + 424) ) v5 = a2[1]; else v5 = *a2; v6 = 0; if ( v4 < 0 ) { LABEL_12: if ( v6 <= 0 ) return 0; else return 0xFFFFFFFFLL; } else { while ( 1 ) { v7 = *(_QWORD *)(a1 + 600); result = (unsigned int)(v6 + (v4 - v6) / 2); v9 = result + 1; v10 = *(float *)(v7 + 4LL * (int)result); if ( v5 <= *(float *)(v7 + 4LL * ((int)result + 1)) && v10 <= v5 ) break; if ( v5 >= v10 ) { do { v6 = v9; if ( v4 < v9 ) goto LABEL_12; result = (unsigned int)(v9 + (v4 - v9) / 2); v9 = result + 1; v11 = *(float *)(v7 + 4LL * (int)result); if ( v5 <= *(float *)(v7 + 4LL * ((int)result + 1)) && v11 <= v5 ) return result; } while ( v11 <= v5 ); } v4 = result - 1; if ( v6 > (int)result - 1 ) goto LABEL_12; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source