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

```asm
<compute_row_thresholds>:
  endbr64
  test   %ecx,%ecx
  jle    L9
  mov    %ecx,%r9d
  movslq %ecx,%rcx
  push   %rbp
  lea    0x2(%rcx,%rcx,1),%rax
  lea    (%rdi,%rcx,1),%r11
  push   %rbx
  lea    (%rsi,%rax,1),%r10
  cmp    %r10,%rdi
  setae  %r10b
  cmp    %r11,%rsi
  setae  %bl
  add    %rdx,%rax
  or     %ebx,%r10d
  cmp    %rax,%rdi
  setae  %al
  cmp    %r11,%rdx
  setae  %r11b
  or     %r11d,%eax
  test   %al,%r10b
  je     L100
  lea    -0x1(%r9),%eax
  cmp    $0xe,%eax
  jbe    L100
  movd   %r8d,%xmm4
  mov    %r9d,%ecx
  pxor   %xmm10,%xmm10
  xor    %eax,%eax
  pshufd $0x0,%xmm4,%xmm14
  shr    $0x4,%ecx
  pxor   %xmm15,%xmm15
  movdqa D31(%rip),%xmm4
  shl    $0x4,%rcx
  nopl   0x0(%rax,%rax,1)
L1:
  movdqu (%rsi,%rax,2),%xmm5
  movdqu 0x10(%rsi,%rax,2),%xmm0
  pxor   %xmm6,%xmm6
  movdqu 0x12(%rsi,%rax,2),%xmm1
  movdqu 0x12(%rdx,%rax,2),%xmm2
  pand   %xmm4,%xmm0
  pand   %xmm4,%xmm5
  movdqu 0x12(%rdx,%rax,2),%xmm3
  packuswb %xmm0,%xmm5
  movdqu 0x2(%rsi,%rax,2),%xmm0
  pand   %xmm4,%xmm1
  pand   %xmm4,%xmm2
  psrlw  $0x8,%xmm3
  pand   %xmm4,%xmm0
  packuswb %xmm1,%xmm0
  movdqu 0x10(%rdx,%rax,2),%xmm1
  pminub %xmm0,%xmm5
  movdqu (%rdx,%rax,2),%xmm0
  pand   %xmm4,%xmm1
  pand   %xmm4,%xmm0
  packuswb %xmm1,%xmm0
  movdqu 0x2(%rdx,%rax,2),%xmm1
  pand   %xmm4,%xmm1
  packuswb %xmm2,%xmm1
  movdqu 0x12(%rsi,%rax,2),%xmm2
  pminub %xmm1,%xmm0
  movdqu (%rsi,%rax,2),%xmm1
  pminub %xmm0,%xmm5
  movdqu 0x10(%rsi,%rax,2),%xmm0
  psrlw  $0x8,%xmm2
  psrlw  $0x8,%xmm1
  psrlw  $0x8,%xmm0
  packuswb %xmm0,%xmm1
  movdqu 0x2(%rsi,%rax,2),%xmm0
  psrlw  $0x8,%xmm0
  packuswb %xmm2,%xmm0
  movdqu 0x10(%rdx,%rax,2),%xmm2
  pmaxub %xmm0,%xmm1
  movdqu (%rdx,%rax,2),%xmm0
  psrlw  $0x8,%xmm2
  psrlw  $0x8,%xmm0
  packuswb %xmm2,%xmm0
  movdqu 0x2(%rdx,%rax,2),%xmm2
  psrlw  $0x8,%xmm2
  packuswb %xmm3,%xmm2
  movdqa %xmm5,%xmm3
  punpckhbw %xmm6,%xmm5
  pmaxub %xmm2,%xmm0
  punpcklbw %xmm6,%xmm3
  movdqa %xmm5,%xmm7
  pmaxub %xmm0,%xmm1
  movdqa %xmm3,%xmm13
  punpckhwd %xmm10,%xmm3
  movdqa %xmm1,%xmm11
  punpckhbw %xmm6,%xmm1
  punpcklwd %xmm10,%xmm13
  punpcklbw %xmm6,%xmm11
  movdqa %xmm1,%xmm6
  punpcklwd %xmm10,%xmm7
  movdqa %xmm11,%xmm12
  punpckhwd %xmm10,%xmm11
  punpcklwd %xmm10,%xmm6
  punpcklwd %xmm10,%xmm12
  movdqa %xmm11,%xmm9
  movdqa %xmm6,%xmm2
  movdqa %xmm12,%xmm0
  paddd  %xmm3,%xmm9
  punpckhwd %xmm10,%xmm1
  paddd  %xmm13,%xmm0
  psrad  $0x1,%xmm9
  psubd  %xmm7,%xmm6
  psrad  $0x1,%xmm0
  paddd  %xmm7,%xmm2
  punpckhwd %xmm10,%xmm5
  movdqa %xmm0,%xmm7
  psubd  %xmm3,%xmm11
  movdqa %xmm1,%xmm8
  punpcklwd %xmm9,%xmm7
  movdqa %xmm1,%xmm3
  movdqa %xmm0,%xmm1
  punpckhwd %xmm9,%xmm1
  psrad  $0x1,%xmm2
  psubd  %xmm5,%xmm3
  paddd  %xmm5,%xmm8
  movdqa %xmm7,%xmm5
  punpcklwd %xmm1,%xmm7
  psrad  $0x1,%xmm8
  punpckhwd %xmm1,%xmm5
  movdqa %xmm2,%xmm1
  punpcklwd %xmm8,%xmm1
  punpcklwd %xmm5,%xmm7
  movdqa %xmm2,%xmm5
  punpckhwd %xmm8,%xmm5
  psubd  %xmm13,%xmm12
  pand   %xmm4,%xmm7
  movdqa %xmm1,%xmm13
  punpcklwd %xmm5,%xmm1
  punpckhwd %xmm5,%xmm13
  pcmpgtd D16(%rip),%xmm2
  movdqa %xmm14,%xmm5
  pcmpgtd D16(%rip),%xmm9
  punpcklwd %xmm13,%xmm1
  pcmpgtd %xmm6,%xmm5
  pand   %xmm4,%xmm1
  packuswb %xmm1,%xmm7
  movdqa %xmm14,%xmm1
  movaps %xmm2,-0x18(%rsp)
  pcmpgtd %xmm12,%xmm1
  movdqa %xmm9,%xmm6
  movdqa %xmm14,%xmm12
  pcmpgtd %xmm11,%xmm12
  pcmpeqd %xmm15,%xmm6
  movdqa %xmm14,%xmm11
  pcmpgtd D16(%rip),%xmm0
  pcmpeqd %xmm15,%xmm2
  pcmpgtd D16(%rip),%xmm8
  pcmpgtd %xmm3,%xmm11
  pand   %xmm12,%xmm9
  pand   %xmm12,%xmm6
  movdqa %xmm0,%xmm3
  pand   %xmm1,%xmm0
  movaps %xmm6,-0x28(%rsp)
  movdqa %xmm2,%xmm6
  movdqa %xmm0,%xmm2
  punpcklwd %xmm9,%xmm0
  movdqa %xmm8,%xmm13
  punpckhwd %xmm9,%xmm2
  movdqa %xmm0,%xmm9
  pand   %xmm11,%xmm8
  punpckhwd %xmm2,%xmm9
  punpcklwd %xmm2,%xmm0
  movdqa -0x18(%rsp),%xmm2
  pand   %xmm5,%xmm6
  pcmpeqd %xmm15,%xmm3
  pcmpeqd %xmm15,%xmm13
  punpcklwd %xmm9,%xmm0
  pand   %xmm5,%xmm2
  pcmpeqd %xmm15,%xmm12
  pand   %xmm4,%xmm0
  movdqa %xmm2,%xmm9
  pcmpeqd %xmm15,%xmm5
  punpcklwd %xmm8,%xmm2
  punpckhwd %xmm8,%xmm9
  movdqa %xmm2,%xmm8
  pand   %xmm1,%xmm3
  punpckhwd %xmm9,%xmm8
  pcmpeqd %xmm15,%xmm1
  punpcklwd %xmm9,%xmm2
  punpcklwd %xmm8,%xmm2
  pand   %xmm11,%xmm13
  pand   %xmm4,%xmm2
  pcmpeqd %xmm15,%xmm11
  packuswb %xmm2,%xmm0
  movdqa %xmm1,%xmm2
  punpcklwd %xmm12,%xmm1
  punpckhwd %xmm12,%xmm2
  movdqa %xmm1,%xmm8
  pandn  %xmm7,%xmm0
  punpckhwd %xmm2,%xmm8
  punpcklwd %xmm2,%xmm1
  movdqa %xmm5,%xmm2
  punpcklwd %xmm11,%xmm5
  punpckhwd %xmm11,%xmm2
  punpcklwd %xmm8,%xmm1
  movdqa %xmm5,%xmm8
  punpcklwd %xmm2,%xmm5
  pand   %xmm4,%xmm1
  punpckhwd %xmm2,%xmm8
  punpcklwd %xmm8,%xmm5
  pand   %xmm4,%xmm5
  packuswb %xmm5,%xmm1
  pand   %xmm1,%xmm7
  pandn  %xmm0,%xmm1
  movdqa %xmm3,%xmm0
  por    %xmm7,%xmm1
  movdqa -0x28(%rsp),%xmm7
  punpcklwd %xmm7,%xmm3
  punpckhwd %xmm7,%xmm0
  movdqa %xmm3,%xmm2
  punpcklwd %xmm0,%xmm3
  punpckhwd %xmm0,%xmm2
  movdqa %xmm6,%xmm0
  punpcklwd %xmm13,%xmm6
  punpckhwd %xmm13,%xmm0
  punpcklwd %xmm2,%xmm3
  movdqa %xmm6,%xmm2
  punpckhwd %xmm0,%xmm2
  punpcklwd %xmm0,%xmm6
  pand   %xmm4,%xmm3
  punpcklwd %xmm2,%xmm6
  pand   %xmm4,%xmm6
  packuswb %xmm6,%xmm3
  movdqa %xmm3,%xmm0
  pandn  %xmm1,%xmm0
  por    %xmm3,%xmm0
  movups %xmm0,(%rdi,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%rcx
  jne    L1
  mov    %r9d,%r10d
  and    $0xfffffff0,%r10d
  mov    %r10d,%eax
  add    %rax,%rdi
  add    %rax,%rax
  add    %rax,%rsi
  lea    (%rdx,%rax,1),%rcx
  mov    %r9d,%eax
  sub    %r10d,%eax
  cmp    %r10d,%r9d
  je     L63
  lea    (%rax,%rdi,1),%r9d
  jmp    L93
  nopl   0x0(%rax,%rax,1)
L2:
  cmp    $0x7e,%r10d
  setle  %al
  neg    %eax
  mov    %al,-0x1(%rdi)
  mov    %r9d,%eax
  sub    %edi,%eax
  test   %eax,%eax
  jle    L63
L93:
  movzbl 0x2(%rsi),%eax
  movzbl (%rsi),%edx
  movzbl 0x3(%rsi),%r10d
  movzbl (%rcx),%ebp
  cmp    %al,%dl
  movzbl 0x1(%rcx),%r11d
  movzbl 0x2(%rcx),%ebx
  cmova  %eax,%edx
  movzbl 0x1(%rsi),%eax
  cmp    %r10b,%al
  cmovb  %r10d,%eax
  movzbl 0x3(%rcx),%r10d
  add    $0x2,%rsi
  add    $0x2,%rcx
  cmp    %bpl,%dl
  cmova  %ebp,%edx
  cmp    %bl,%dl
  cmova  %ebx,%edx
  cmp    %r11b,%al
  cmovb  %r11d,%eax
  cmp    %r10b,%al
  cmovb  %r10d,%eax
  add    $0x1,%rdi
  lea    (%rdx,%rax,1),%r10d
  sub    %edx,%eax
  sar    %r10d
  cmp    %eax,%r8d
  jg     L2
  mov    %r10d,%eax
  mov    %al,-0x1(%rdi)
  mov    %r9d,%eax
  sub    %edi,%eax
  test   %eax,%eax
  jg     L93
L63:
  pop    %rbx
  pop    %rbp
  ret
  nopw   0x0(%rax,%rax,1)
L100:
  lea    (%rdx,%rcx,2),%r10
L15:
  movzbl (%rsi),%eax
  movzbl 0x2(%rsi),%r11d
  movzbl 0x3(%rsi),%r9d
  movzbl (%rdx),%ecx
  cmp    %al,%r11b
  movzbl 0x2(%rdx),%ebp
  movzbl 0x3(%rdx),%ebx
  cmova  %eax,%r11d
  movzbl 0x1(%rsi),%eax
  cmp    %al,%r9b
  cmovb  %eax,%r9d
  movzbl 0x1(%rdx),%eax
  add    $0x2,%rsi
  add    $0x2,%rdx
  cmp    %r11b,%cl
  cmova  %r11d,%ecx
  cmp    %bpl,%cl
  cmova  %ebp,%ecx
  cmp    %r9b,%al
  cmovb  %r9d,%eax
  cmp    %bl,%al
  cmovb  %ebx,%eax
  add    $0x1,%rdi
  lea    (%rax,%rcx,1),%r9d
  sub    %ecx,%eax
  sar    %r9d
  mov    %r9d,%ecx
  cmp    %eax,%r8d
  jle    L36
  cmp    $0x7e,%r9d
  setle  %cl
  neg    %ecx
L36:
  mov    %cl,-0x1(%rdi)
  cmp    %rdx,%r10
  jne    L15
  pop    %rbx
  pop    %rbp
  ret
  nopl   0x0(%rax)
L9:
  ret
```

tool_calls: name: parse_data
arguments: data_label: D31
data_type: byte[16]
name: parse_data
arguments: data_label: D16
data_type: byte[16]

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

tool: {"D16": [0x7e,0x00,0x00,0x00,0x7e,0x00,0x00,0x00,0x7e,0x00,0x00,0x00,0x7e,0x00,0x00,0x00]}

assistant: ```c
void compute_row_thresholds(unsigned char *thresholds_dest, const unsigned char *min_max_a, const unsigned char *min_max_b, int count, int contrast_threshold) {
  int i;
  unsigned char min_a, max_a, min_b, max_b;
  unsigned char test_threshold;
  for (i = count; i > 0; --i) {
    min_a = min_max_a[0];
    max_a = min_max_a[1];
    if (min_max_a[2] < min_a)
      min_a = min_max_a[2];
    if (min_max_a[3] > max_a)
      max_a = min_max_a[3];
    min_max_a += 2;
    min_b = min_max_b[0];
    max_b = min_max_b[1];
    if (min_max_b[2] < min_b)
      min_b = min_max_b[2];
    if (min_max_b[3] > max_b)
      max_b = min_max_b[3];
    min_max_b += 2;
    if (min_b < min_a)
      min_a = min_b;
    if (max_b > max_a)
      max_a = max_b;
    test_threshold = (unsigned char)((min_a + max_a) / 2);
    if ((max_a - min_a) < contrast_threshold) {
      if (test_threshold < 127)
        *thresholds_dest++ = ((unsigned char)255);
      else
        *thresholds_dest++ = ((unsigned char)0);
    } else {
      *thresholds_dest++ = test_threshold;
    }
  }
}
```