user: 请从给定的汇编指令推导出C源代码:

```asm
<IpChkSum>:
  endbr64
  cmp    $0x1,%si
  jbe    L239
  lea    -0x2(%rsi),%eax
  mov    %eax,%r8d
  shr    %r8w
  lea    0x1(%r8),%r9d
  cmp    $0x1d,%ax
  jbe    L29
  mov    %r9d,%edx
  pxor   %xmm2,%xmm2
  pxor   %xmm6,%xmm6
  mov    %rdi,%rax
  shr    $0x4,%dx
  movdqa D3(%rip),%xmm7
  pxor   %xmm5,%xmm5
  pxor   %xmm4,%xmm4
  sub    $0x1,%edx
  movzwl %dx,%edx
  shl    $0x5,%rdx
  lea    0x20(%rdi,%rdx,1),%rdx
  nopw   0x0(%rax,%rax,1)
L120:
  movdqu (%rax),%xmm9
  movdqu 0x10(%rax),%xmm0
  add    $0x20,%rax
  movdqu -0x10(%rax),%xmm1
  pand   %xmm7,%xmm0
  pand   %xmm7,%xmm9
  packuswb %xmm0,%xmm9
  movdqu -0x20(%rax),%xmm0
  psrlw  $0x8,%xmm1
  movdqa %xmm9,%xmm3
  punpckhbw %xmm6,%xmm9
  psrlw  $0x8,%xmm0
  punpcklbw %xmm6,%xmm3
  packuswb %xmm1,%xmm0
  movdqa %xmm3,%xmm10
  punpckhwd %xmm5,%xmm3
  movdqa %xmm0,%xmm8
  punpckhbw %xmm6,%xmm0
  punpcklwd %xmm5,%xmm10
  punpcklbw %xmm6,%xmm8
  psllw  $0x8,%xmm0
  psllw  $0x8,%xmm8
  movdqa %xmm8,%xmm1
  punpckhwd %xmm5,%xmm8
  punpcklwd %xmm5,%xmm1
  paddd  %xmm3,%xmm8
  movdqa %xmm0,%xmm3
  paddd  %xmm10,%xmm1
  punpckhwd %xmm5,%xmm0
  movdqa %xmm9,%xmm10
  punpckhwd %xmm5,%xmm9
  punpcklwd %xmm5,%xmm10
  punpcklwd %xmm5,%xmm3
  paddd  %xmm9,%xmm0
  movdqa %xmm1,%xmm9
  punpckhdq %xmm4,%xmm1
  punpckldq %xmm4,%xmm9
  paddd  %xmm10,%xmm3
  paddq  %xmm9,%xmm1
  movdqa %xmm8,%xmm9
  punpckhdq %xmm4,%xmm8
  punpckldq %xmm4,%xmm9
  paddq  %xmm9,%xmm8
  paddq  %xmm8,%xmm1
  movdqa %xmm3,%xmm8
  punpckhdq %xmm4,%xmm3
  punpckldq %xmm4,%xmm8
  paddq  %xmm8,%xmm3
  movdqa %xmm0,%xmm8
  punpckhdq %xmm4,%xmm0
  punpckldq %xmm4,%xmm8
  paddq  %xmm2,%xmm0
  paddq  %xmm8,%xmm3
  paddq  %xmm3,%xmm1
  movdqa %xmm1,%xmm2
  paddq  %xmm0,%xmm2
  cmp    %rdx,%rax
  jne    L120
  mov    %r9d,%r10d
  movdqa %xmm2,%xmm0
  mov    %r9,%rdx
  and    $0xfffffff0,%r10d
  psrldq $0x8,%xmm0
  and    $0xfff0,%edx
  mov    %r10d,%ecx
  paddq  %xmm0,%xmm2
  lea    (%rdi,%rdx,2),%rdx
  neg    %ecx
  movq   %xmm2,%rax
  lea    (%rsi,%rcx,2),%ecx
  cmp    %r10w,%r9w
  je     L233
L68:
  movzbl (%rdx),%r9d
  add    %rax,%r9
  movzbl 0x1(%rdx),%eax
  shl    $0x8,%eax
  cltq
  add    %r9,%rax
  lea    -0x2(%rcx),%r9d
  cmp    $0x1,%r9w
  jbe    L233
  movzbl 0x3(%rdx),%r9d
  movzbl 0x2(%rdx),%r10d
  shl    $0x8,%r9d
  movslq %r9d,%r9
  add    %r10,%r9
  add    %r9,%rax
  lea    -0x4(%rcx),%r9d
  cmp    $0x1,%r9w
  jbe    L233
  movzbl 0x5(%rdx),%r9d
  movzbl 0x4(%rdx),%r10d
  shl    $0x8,%r9d
  movslq %r9d,%r9
  add    %r10,%r9
  add    %r9,%rax
  lea    -0x6(%rcx),%r9d
  cmp    $0x1,%r9w
  jbe    L233
  movzbl 0x7(%rdx),%r9d
  movzbl 0x6(%rdx),%r10d
  shl    $0x8,%r9d
  movslq %r9d,%r9
  add    %r10,%r9
  add    %r9,%rax
  lea    -0x8(%rcx),%r9d
  cmp    $0x1,%r9w
  jbe    L233
  movzbl 0x9(%rdx),%r9d
  movzbl 0x8(%rdx),%r10d
  shl    $0x8,%r9d
  movslq %r9d,%r9
  add    %r10,%r9
  add    %r9,%rax
  lea    -0xa(%rcx),%r9d
  cmp    $0x1,%r9w
  jbe    L233
  movzbl 0xb(%rdx),%r9d
  movzbl 0xa(%rdx),%r10d
  shl    $0x8,%r9d
  movslq %r9d,%r9
  add    %r10,%r9
  add    %r9,%rax
  lea    -0xc(%rcx),%r9d
  cmp    $0x1,%r9w
  jbe    L233
  movzbl 0xd(%rdx),%r9d
  movzbl 0xc(%rdx),%r10d
  shl    $0x8,%r9d
  movslq %r9d,%r9
  add    %r10,%r9
  add    %r9,%rax
  lea    -0xe(%rcx),%r9d
  cmp    $0x1,%r9w
  jbe    L233
  movzbl 0xf(%rdx),%r9d
  movzbl 0xe(%rdx),%r10d
  shl    $0x8,%r9d
  movslq %r9d,%r9
  add    %r10,%r9
  add    %r9,%rax
  lea    -0x10(%rcx),%r9d
  cmp    $0x1,%r9w
  jbe    L233
  movzbl 0x11(%rdx),%r9d
  movzbl 0x10(%rdx),%r10d
  shl    $0x8,%r9d
  movslq %r9d,%r9
  add    %r10,%r9
  add    %r9,%rax
  lea    -0x12(%rcx),%r9d
  cmp    $0x1,%r9w
  jbe    L233
  movzbl 0x13(%rdx),%r9d
  movzbl 0x12(%rdx),%r10d
  shl    $0x8,%r9d
  movslq %r9d,%r9
  add    %r10,%r9
  add    %r9,%rax
  lea    -0x14(%rcx),%r9d
  cmp    $0x1,%r9w
  jbe    L233
  movzbl 0x15(%rdx),%r9d
  movzbl 0x14(%rdx),%r10d
  shl    $0x8,%r9d
  movslq %r9d,%r9
  add    %r10,%r9
  add    %r9,%rax
  lea    -0x16(%rcx),%r9d
  cmp    $0x1,%r9w
  jbe    L233
  movzbl 0x17(%rdx),%r9d
  movzbl 0x16(%rdx),%r10d
  shl    $0x8,%r9d
  movslq %r9d,%r9
  add    %r10,%r9
  add    %r9,%rax
  lea    -0x18(%rcx),%r9d
  cmp    $0x1,%r9w
  jbe    L233
  movzbl 0x19(%rdx),%r9d
  movzbl 0x18(%rdx),%r10d
  shl    $0x8,%r9d
  movslq %r9d,%r9
  add    %r10,%r9
  add    %r9,%rax
  lea    -0x1a(%rcx),%r9d
  cmp    $0x1,%r9w
  jbe    L233
  movzbl 0x1b(%rdx),%r9d
  movzbl 0x1a(%rdx),%r10d
  sub    $0x1c,%ecx
  shl    $0x8,%r9d
  movslq %r9d,%r9
  add    %r10,%r9
  add    %r9,%rax
  cmp    $0x1,%cx
  jbe    L233
  movzbl 0x1d(%rdx),%ecx
  movzbl 0x1c(%rdx),%edx
  shl    $0x8,%ecx
  movslq %ecx,%rcx
  add    %rcx,%rdx
  add    %rdx,%rax
  nopl   0x0(%rax,%rax,1)
L233:
  add    $0x1,%r8d
  and    $0x1,%esi
  movzwl %r8w,%r8d
  lea    (%rdi,%r8,2),%rdi
  jne    L86
L119:
  mov    %rax,%rdx
  shr    $0x10,%rdx
  movzwl %dx,%ecx
  test   %dx,%dx
  je     L30
L91:
  movzwl %ax,%edx
  add    %ecx,%edx
  mov    $0x1,%ecx
  movslq %edx,%rax
  and    $0x10000,%edx
  jne    L91
L30:
  not    %eax
  ret
L132:
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L86:
  movzbl (%rdi),%edx
  add    %rdx,%rax
  jmp    L119
  nopl   0x0(%rax,%rax,1)
L239:
  test   %si,%si
  jne    L132
  mov    $0xffffffff,%eax
  ret
L29:
  mov    %esi,%ecx
  mov    %rdi,%rdx
  xor    %eax,%eax
  jmp    L68
```

tool_calls: name: disassemble_data
arguments: data_label: D3
data_type: byte[16]

tool: {"D3": [0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00]}

assistant: ```c
unsigned short IpChkSum(const unsigned char *data, unsigned short size) {
  register unsigned long sum = 0;
  for (;;) {
    if (size < 2)
      break;
    sum += *data++;
    sum += *data++ << 8;
    size -= 2;
  }
  if (size)
    sum += *data;
  while ((size = (unsigned short)(sum >> 16)) != 0)
    sum = (unsigned short)sum + size;
  return (unsigned short)sum ^ 0xFFFF;
}
```