user: Translate the below assembly code into C programming language:

```asm
<totalHammingDistance>:
  endbr64
  sub    $0x98,%rsp
  mov    %esi,%r9d
  mov    %rdi,%rdx
  mov    $0x10,%ecx
  mov    %fs:0x28,%rax
  mov    %rax,0x88(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rsi
  mov    %rsi,%rdi
  rep stos %rax,%es:(%rdi)
  test   %r9d,%r9d
  jle    L21
  lea    -0x1(%r9),%eax
  mov    %rdx,%rdi
  lea    0x4(%rdx,%rax,4),%r8
  nopl   0x0(%rax,%rax,1)
L8:
  mov    (%rdi),%eax
  test   %eax,%eax
  je     L7
  mov    %rsi,%rdx
  nopl   0x0(%rax)
L6:
  mov    %eax,%ecx
  and    $0x1,%ecx
  add    %ecx,(%rdx)
  add    $0x4,%rdx
  sar    %eax
  jne    L6
L7:
  add    $0x4,%rdi
  cmp    %r8,%rdi
  jne    L8
L21:
  movd   %r9d,%xmm5
  movdqa (%rsp),%xmm2
  movdqa 0x10(%rsp),%xmm4
  pshufd $0x0,%xmm5,%xmm0
  movdqa %xmm0,%xmm1
  psubd  %xmm2,%xmm1
  movdqa %xmm1,%xmm3
  psrlq  $0x20,%xmm1
  pmuludq %xmm2,%xmm3
  psrlq  $0x20,%xmm2
  pmuludq %xmm2,%xmm1
  pshufd $0x8,%xmm3,%xmm3
  pshufd $0x8,%xmm1,%xmm1
  punpckldq %xmm1,%xmm3
  movdqa %xmm0,%xmm1
  psubd  %xmm4,%xmm1
  movdqa %xmm1,%xmm2
  psrlq  $0x20,%xmm1
  pmuludq %xmm4,%xmm2
  psrlq  $0x20,%xmm4
  pmuludq %xmm4,%xmm1
  movdqa 0x20(%rsp),%xmm4
  pshufd $0x8,%xmm2,%xmm2
  pshufd $0x8,%xmm1,%xmm1
  punpckldq %xmm1,%xmm2
  movdqa %xmm0,%xmm1
  psubd  %xmm4,%xmm1
  paddd  %xmm2,%xmm3
  movdqa %xmm1,%xmm2
  psrlq  $0x20,%xmm1
  pmuludq %xmm4,%xmm2
  psrlq  $0x20,%xmm4
  pmuludq %xmm4,%xmm1
  movdqa 0x30(%rsp),%xmm4
  pshufd $0x8,%xmm2,%xmm2
  pshufd $0x8,%xmm1,%xmm1
  punpckldq %xmm1,%xmm2
  movdqa %xmm0,%xmm1
  psubd  %xmm4,%xmm1
  paddd  %xmm3,%xmm2
  movdqa %xmm1,%xmm3
  psrlq  $0x20,%xmm1
  pmuludq %xmm4,%xmm3
  psrlq  $0x20,%xmm4
  pmuludq %xmm4,%xmm1
  movdqa 0x40(%rsp),%xmm4
  pshufd $0x8,%xmm3,%xmm3
  pshufd $0x8,%xmm1,%xmm1
  punpckldq %xmm1,%xmm3
  movdqa %xmm0,%xmm1
  psubd  %xmm4,%xmm1
  paddd  %xmm2,%xmm3
  movdqa %xmm1,%xmm2
  psrlq  $0x20,%xmm1
  pmuludq %xmm4,%xmm2
  psrlq  $0x20,%xmm4
  pmuludq %xmm4,%xmm1
  movdqa 0x50(%rsp),%xmm4
  pshufd $0x8,%xmm2,%xmm2
  pshufd $0x8,%xmm1,%xmm1
  punpckldq %xmm1,%xmm2
  movdqa %xmm0,%xmm1
  psubd  %xmm4,%xmm1
  paddd  %xmm3,%xmm2
  movdqa %xmm1,%xmm3
  psrlq  $0x20,%xmm1
  pmuludq %xmm4,%xmm3
  psrlq  $0x20,%xmm4
  pmuludq %xmm4,%xmm1
  movdqa 0x60(%rsp),%xmm4
  pshufd $0x8,%xmm3,%xmm3
  pshufd $0x8,%xmm1,%xmm1
  punpckldq %xmm1,%xmm3
  movdqa %xmm0,%xmm1
  psubd  %xmm4,%xmm1
  paddd  %xmm2,%xmm3
  movdqa %xmm1,%xmm2
  psrlq  $0x20,%xmm1
  pmuludq %xmm4,%xmm2
  psrlq  $0x20,%xmm4
  pmuludq %xmm4,%xmm1
  pshufd $0x8,%xmm2,%xmm2
  pshufd $0x8,%xmm1,%xmm1
  punpckldq %xmm1,%xmm2
  paddd  %xmm3,%xmm2
  movdqa 0x70(%rsp),%xmm3
  psubd  %xmm3,%xmm0
  movdqa %xmm0,%xmm1
  psrlq  $0x20,%xmm0
  pmuludq %xmm3,%xmm1
  psrlq  $0x20,%xmm3
  pmuludq %xmm3,%xmm0
  pshufd $0x8,%xmm1,%xmm1
  pshufd $0x8,%xmm0,%xmm0
  punpckldq %xmm0,%xmm1
  movdqa %xmm1,%xmm0
  paddd  %xmm2,%xmm0
  movdqa %xmm0,%xmm1
  psrldq $0x8,%xmm1
  paddd  %xmm1,%xmm0
  movdqa %xmm0,%xmm1
  psrldq $0x4,%xmm1
  paddd  %xmm1,%xmm0
  movd   %xmm0,%eax
  mov    0x88(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L42
  add    $0x98,%rsp
  ret
L42:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int totalHammingDistance(int *nums, int numsSize) {
  int count[32] = {0};
  int i, sum = 0;
  for (i = 0; i < numsSize; ++i) {
    int j = 0, num = nums[i];
    while (num) {
      count[j] += (num & 0x01);
      num >>= 1;
      j++;
    }
  }
  for (i = 0; i < 32; i++) {
    sum += count[i] * (numsSize - count[i]);
  }
  return sum;
}
```