user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<inrange>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    -0x20(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L115
  mov    $0x0,%eax
  jmp    L208
L3:
  movl   $0x0,-0x10(%rbp)
  jmp    L179
L133:
  mov    -0x10(%rbp),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%ecx
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  add    %ecx,%eax
  mov    %eax,-0x10(%rbp)
L179:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jle    L117
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x39,%al
  jle    L133
L117:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L102
  addq   $0x1,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jle    L43
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x39,%al
  jg     L43
  movl   $0x0,-0xc(%rbp)
  jmp    L144
L110:
  mov    -0xc(%rbp),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%ecx
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  add    %ecx,%eax
  mov    %eax,-0xc(%rbp)
L144:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jle    L121
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x39,%al
  jle    L110
  jmp    L121
L43:
  movl   $0x40000000,-0xc(%rbp)
  jmp    L125
L102:
  mov    -0x10(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  jmp    L125
L121:
  nop
L125:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2c,%al
  je     L78
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L78
  lea    D4(%rip),%rax
  mov    %rax,%rdi
  call   <error_exit@plt>
L78:
  mov    -0x14(%rbp),%eax
  cmp    -0x10(%rbp),%eax
  jl     L199
  mov    -0x14(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  jg     L199
  mov    $0x1,%eax
  jmp    L208
L199:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2c,%al
  jne    L115
  addq   $0x1,-0x8(%rbp)
L115:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L3
  mov    $0x0,%eax
L208:
  leave
  ret
```

tool_calls: name: parse_data
arguments: label: D4
type_guessed: string

tool: D4: Parse error in inrange

assistant: ```c
int inrange(int x, char *range) {
  char *cptr;
  int test1, test2;
  cptr = range;
  if (!*cptr)
    return (0);
  while (*cptr) {
    test1 = 0;
    while ((*cptr >= '0') && (*cptr <= '9'))
      test1 = 10 * test1 + (*(cptr++) - '0');
    if (*cptr == '-') {
      cptr++;
      if ((*cptr >= '0') && (*cptr <= '9')) {
        test2 = 0;
        while ((*cptr >= '0') && (*cptr <= '9'))
          test2 = 10 * test2 + (*(cptr++) - '0');
      } else
        test2 = 1 << 30;
    } else
      test2 = test1;
    if ((*cptr != ',') && (*cptr != 0))
      error_exit("Parse error in inrange");
    if ((x >= test1) && (x <= test2))
      return (1);
    if (*cptr == ',')
      cptr++;
  }
  return (0);
}
```