{"type": "func", "start": 6443119344, "end": 6443119504, "name": "cocos2d::ZipUtils::ccChecksumPvr", "pseudocode": "// \n// cocos2d::ZipUtils::ccChecksumPvr from 0x1800a32f0 to 0x1800a3390 (160 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1801438a8\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n__int64 __fastcall cocos2d::ZipUtils::ccChecksumPvr(const unsigned int *a1, int a2)\n{\n  __int64 v2; // r8\n  int v3; // r10d\n  int v5; // edx\n  __m128 v6; // xmm2\n  __m128 v7; // xmm1\n  __m128 v8; // xmm0\n  __m128 v9; // xmm1\n  __m128 v10; // xmm1\n  __int64 v11; // rcx\n\n  v2 = 0;\n  v3 = 128;\n  if ( a2 < 128 )\n    v3 = a2;\n  v5 = 0;\n  if ( v3 >= 8 )\n  {\n    v6 = 0;\n    v7 = 0;\n    do\n    {\n      v5 += 8;\n      v6 = _mm_xor_ps(v6, (__m128)_mm_loadu_si128((const __m128i *)&a1[v2]));\n      v8 = (__m128)_mm_loadu_si128((const __m128i *)&a1[v2 + 4]);\n      v2 += 8;\n      v7 = _mm_xor_ps(v7, v8);\n    }\n    while ( v2 < (int)(v3 - (v3 & 0x80000007)) );\n    v9 = _mm_xor_ps(v7, v6);\n    v10 = _mm_xor_ps(v9, (__m128)_mm_srli_si128((__m128i)v9, 8));\n    LODWORD(v2) = _mm_cvtsi128_si32((__m128i)_mm_xor_ps(v10, (__m128)_mm_srli_si128((__m128i)v10, 4)));\n  }\n  v11 = v5;\n  if ( v5 < (__int64)v3 )\n  {\n    do\n      LODWORD(v2) = a1[v11++] ^ v2;\n    while ( v11 < v3 );\n  }\n  return (unsigned int)v2;\n}", "assembly": "; \n; cocos2d::ZipUtils::ccChecksumPvr from 0x1800a32f0 to 0x1800a3390 (160 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1801438a8\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nxor     r8d, r8d                                                       ; +0x0, 0x1800a32f0\nmov     r10d, 80h                                                      ; +0x3, 0x1800a32f3\ncmp     edx, r10d                                                      ; +0x9, 0x1800a32f9\nmov     r9, rcx                                                        ; +0xc, 0x1800a32fc\ncmovl   r10d, edx                                                      ; +0xf, 0x1800a32ff\nmov     edx, r8d                                                       ; +0x13, 0x1800a3303\ntest    r10d, r10d                                                     ; +0x16, 0x1800a3306\njle     short loc_1800A3370                                            ; +0x19, 0x1800a3309\ncmp     r10d, 8                                                        ; +0x1b, 0x1800a330b\njb      short loc_1800A3370                                            ; +0x1f, 0x1800a330f\nmov     ecx, r10d                                                      ; +0x21, 0x1800a3311\nxorps   xmm2, xmm2                                                     ; +0x24, 0x1800a3314\nxorps   xmm1, xmm1                                                     ; +0x27, 0x1800a3317\nand     ecx, 80000007h                                                 ; +0x2a, 0x1800a331a\njge     short loc_1800A3329                                            ; +0x30, 0x1800a3320\ndec     ecx                                                            ; +0x32, 0x1800a3322\nor      ecx, 0FFFFFFF8h                                                ; +0x34, 0x1800a3324\ninc     ecx                                                            ; +0x37, 0x1800a3327\nmov     eax, r10d                                                      ; +0x39, 0x1800a3329\nsub     eax, ecx                                                       ; +0x3c, 0x1800a332c\nmovsxd  rcx, eax                                                       ; +0x3e, 0x1800a332e\nmovdqu  xmm0, xmmword ptr [r9+r8*4]                                    ; +0x41, 0x1800a3331\nadd     edx, 8                                                         ; +0x47, 0x1800a3337\nxorps   xmm2, xmm0                                                     ; +0x4a, 0x1800a333a\nmovdqu  xmm0, xmmword ptr [r9+r8*4+10h]                                ; +0x4d, 0x1800a333d\nadd     r8, 8                                                          ; +0x54, 0x1800a3344\nxorps   xmm1, xmm0                                                     ; +0x58, 0x1800a3348\ncmp     r8, rcx                                                        ; +0x5b, 0x1800a334b\njl      short loc_1800A3331                                            ; +0x5e, 0x1800a334e\nxorps   xmm1, xmm2                                                     ; +0x60, 0x1800a3350\nmovdqa  xmm0, xmm1                                                     ; +0x63, 0x1800a3353\npsrldq  xmm0, 8                                                        ; +0x67, 0x1800a3357\nxorps   xmm1, xmm0                                                     ; +0x6c, 0x1800a335c\nmovdqa  xmm0, xmm1                                                     ; +0x6f, 0x1800a335f\npsrldq  xmm0, 4                                                        ; +0x73, 0x1800a3363\nxorps   xmm1, xmm0                                                     ; +0x78, 0x1800a3368\nmovd    r8d, xmm1                                                      ; +0x7b, 0x1800a336b\nmovsxd  rcx, edx                                                       ; +0x80, 0x1800a3370\nmovsxd  rax, r10d                                                      ; +0x83, 0x1800a3373\ncmp     rcx, rax                                                       ; +0x86, 0x1800a3376\njge     short loc_1800A338C                                            ; +0x89, 0x1800a3379\nnop     dword ptr [rax+rax+00h]                                        ; +0x8b, 0x1800a337b\nxor     r8d, [r9+rcx*4]                                                ; +0x90, 0x1800a3380\ninc     rcx                                                            ; +0x94, 0x1800a3384\ncmp     rcx, rax                                                       ; +0x97, 0x1800a3387\njl      short loc_1800A3380                                            ; +0x9a, 0x1800a338a\nmov     eax, r8d                                                       ; +0x9c, 0x1800a338c\nretn                                                                   ; +0x9f, 0x1800a338f", "xrefs": ["<???> @ 0x1801438a8"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}