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

```asm
<range_constraint>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rsi,-0x38(%rsp)
  test   %ecx,%ecx
  jle    L26
  lea    -0x1(%rcx),%eax
  mov    %r8d,%ebx
  lea    -0x1(%r8),%r12d
  mov    %edx,%ebp
  and    $0xfffffffc,%ebx
  lea    0x10(%rdi,%rax,8),%r14
  mov    %r8d,%eax
  xor    %r13d,%r13d
  shr    $0x2,%eax
  lea    0x1(%rbx),%r15d
  movdqa D4(%rip),%xmm5
  lea    0x8(%rdi),%rsi
  lea    -0x1(%rax),%r10d
  movslq %r15d,%rax
  shl    $0x2,%rax
  shl    $0x4,%r10
  mov    %rax,-0x30(%rsp)
  lea    0x2(%rbx),%eax
  add    $0x14,%r10
  mov    %eax,-0x28(%rsp)
  cltq
  shl    $0x2,%rax
  mov    %rax,-0x20(%rsp)
  lea    0x3(%rbx),%eax
  mov    %eax,-0x24(%rsp)
  cltq
  shl    $0x2,%rax
  mov    %rax,-0x18(%rsp)
  mov    %r12d,%eax
  add    $0x2,%rax
  mov    %rax,-0x10(%rsp)
L3:
  test   %r8d,%r8d
  jle    L11
  mov    (%rsi),%rcx
  cmp    $0x2,%r12d
  jbe    L181
  lea    0x4(%rcx),%rax
  lea    (%rcx,%r10,1),%rdx
  movdqa %xmm5,%xmm3
  pxor   %xmm0,%xmm0
  cs nopw 0x0(%rax,%rax,1)
L27:
  movdqu (%rax),%xmm2
  movdqa %xmm3,%xmm1
  add    $0x10,%rax
  pcmpgtd %xmm2,%xmm1
  movdqa %xmm2,%xmm4
  pand   %xmm1,%xmm4
  pandn  %xmm3,%xmm1
  movdqa %xmm1,%xmm3
  movdqa %xmm0,%xmm1
  pcmpgtd %xmm2,%xmm1
  por    %xmm4,%xmm3
  pand   %xmm1,%xmm0
  pandn  %xmm2,%xmm1
  por    %xmm1,%xmm0
  cmp    %rdx,%rax
  jne    L27
  movdqa %xmm0,%xmm2
  mov    %r15d,%edi
  psrldq $0x8,%xmm2
  movdqa %xmm2,%xmm1
  pcmpgtd %xmm0,%xmm1
  pand   %xmm1,%xmm2
  pandn  %xmm0,%xmm1
  movdqa %xmm1,%xmm0
  por    %xmm2,%xmm0
  movdqa %xmm0,%xmm2
  psrldq $0x4,%xmm2
  movdqa %xmm2,%xmm1
  pcmpgtd %xmm0,%xmm1
  pand   %xmm1,%xmm2
  pandn  %xmm0,%xmm1
  por    %xmm2,%xmm1
  movd   %xmm1,%eax
  movdqa %xmm3,%xmm1
  psrldq $0x8,%xmm1
  movdqa %xmm1,%xmm0
  pcmpgtd %xmm3,%xmm0
  pand   %xmm0,%xmm3
  pandn  %xmm1,%xmm0
  por    %xmm3,%xmm0
  movdqa %xmm0,%xmm2
  psrldq $0x4,%xmm2
  movdqa %xmm2,%xmm1
  pcmpgtd %xmm0,%xmm1
  pand   %xmm1,%xmm0
  pandn  %xmm2,%xmm1
  por    %xmm0,%xmm1
  movd   %xmm1,%edx
  cmp    %ebx,%r8d
  je     L125
L47:
  movslq %edi,%r9
  lea    0x0(,%r9,4),%r11
  mov    (%rcx,%r9,4),%r9d
  cmp    %r9d,%edx
  cmovg  %r9d,%edx
  cmp    %r9d,%eax
  cmovl  %r9d,%eax
  lea    0x1(%rdi),%r9d
  cmp    %r9d,%r8d
  jl     L125
  mov    0x4(%rcx,%r11,1),%r9d
  cmp    %r9d,%edx
  cmovg  %r9d,%edx
  cmp    %r9d,%eax
  cmovl  %r9d,%eax
  add    $0x2,%edi
  cmp    %edi,%r8d
  jl     L125
  mov    0x8(%rcx,%r11,1),%edi
  cmp    %edi,%edx
  cmovg  %edi,%edx
  cmp    %edi,%eax
  cmovl  %edi,%eax
L125:
  sub    %edx,%eax
  cmp    %ebp,%eax
  jl     L190
L10:
  add    $0x8,%rsi
  cmp    %r14,%rsi
  jne    L3
  pop    %rbx
  mov    %r13d,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  cs nopw 0x0(%rax,%rax,1)
L190:
  mov    -0x38(%rsp),%rdi
  add    $0x1,%r13d
  movslq %r13d,%rax
  mov    (%rdi,%rax,8),%rdx
  mov    %rdx,%rax
  sub    %rcx,%rax
  sub    $0x4,%rax
  cmp    $0x8,%rax
  jbe    L137
  mov    $0x4,%eax
  cmp    $0x2,%r12d
  jbe    L137
  nop
L1:
  movdqu (%rcx,%rax,1),%xmm6
  movups %xmm6,(%rdx,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%r10
  jne    L1
  cmp    %ebx,%r8d
  je     L10
  mov    -0x30(%rsp),%rdi
  mov    (%rcx,%rdi,1),%eax
  mov    %eax,(%rdx,%rdi,1)
  cmp    %r8d,-0x28(%rsp)
  jg     L10
  mov    -0x20(%rsp),%rdi
  mov    (%rcx,%rdi,1),%eax
  mov    %eax,(%rdx,%rdi,1)
  cmp    %r8d,-0x24(%rsp)
  jg     L10
  mov    -0x18(%rsp),%rdi
  mov    (%rcx,%rdi,1),%eax
  mov    %eax,(%rdx,%rdi,1)
  jmp    L10
  nop
L11:
  xor    %eax,%eax
  cmp    $0xfa0a1f00,%ebp
  setg   %al
  add    %eax,%r13d
  jmp    L10
L181:
  mov    $0x5f5e100,%edx
  xor    %eax,%eax
  mov    $0x1,%edi
  jmp    L47
L137:
  mov    -0x10(%rsp),%r9
  mov    $0x1,%eax
  xchg   %ax,%ax
L123:
  mov    (%rcx,%rax,4),%edi
  mov    %edi,(%rdx,%rax,4)
  add    $0x1,%rax
  cmp    %r9,%rax
  jne    L123
  jmp    L10
L26:
  xor    %r13d,%r13d
  pop    %rbx
  pop    %rbp
  mov    %r13d,%eax
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D4
type_guessed: byte[16]

tool: {"D4": [0x00,0xe1,0xf5,0x05,0x00,0xe1,0xf5,0x05,0x00,0xe1,0xf5,0x05,0x00,0xe1,0xf5,0x05]}

assistant: ```c
int range_constraint(int **m_old, int **m_new, int range_threshold, int n_entries, int n_motifs) {
  int i, j;
  int running_n = 0;
  int max;
  int min;
  int range;
  for (i = 1; i <= n_entries; i++) {
    max = 0;
    min = 100000000;
    for (j = 1; j <= n_motifs; j++) {
      if (m_old[i][j] < min)
        min = m_old[i][j];
      if (m_old[i][j] > max)
        max = m_old[i][j];
    }
    range = max - min;
    if (range < range_threshold) {
      running_n++;
      for (j = 1; j <= n_motifs; j++)
        m_new[running_n][j] = m_old[i][j];
    }
  }
  return running_n;
}
```