// // cocos2d::ZipUtils::ccChecksumPvr from 0x1800a32f0 to 0x1800a3390 (160 bytes) // // 1 xrefs: // > @ 0x1801438a8 // // 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 // __int64 __fastcall cocos2d::ZipUtils::ccChecksumPvr(const unsigned int *a1, int a2) { __int64 v2; // r8 int v3; // r10d int v5; // edx __m128 v6; // xmm2 __m128 v7; // xmm1 __m128 v8; // xmm0 __m128 v9; // xmm1 __m128 v10; // xmm1 __int64 v11; // rcx v2 = 0; v3 = 128; if ( a2 < 128 ) v3 = a2; v5 = 0; if ( v3 >= 8 ) { v6 = 0; v7 = 0; do { v5 += 8; v6 = _mm_xor_ps(v6, (__m128)_mm_loadu_si128((const __m128i *)&a1[v2])); v8 = (__m128)_mm_loadu_si128((const __m128i *)&a1[v2 + 4]); v2 += 8; v7 = _mm_xor_ps(v7, v8); } while ( v2 < (int)(v3 - (v3 & 0x80000007)) ); v9 = _mm_xor_ps(v7, v6); v10 = _mm_xor_ps(v9, (__m128)_mm_srli_si128((__m128i)v9, 8)); LODWORD(v2) = _mm_cvtsi128_si32((__m128i)_mm_xor_ps(v10, (__m128)_mm_srli_si128((__m128i)v10, 4))); } v11 = v5; if ( v5 < (__int64)v3 ) { do LODWORD(v2) = a1[v11++] ^ v2; while ( v11 < v3 ); } return (unsigned int)v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source