user: 请将以下的汇编代码转换成C语言代码:

```asm
<readInterval>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %rdx,-0x28(%rbp)
  mov    %rcx,-0x30(%rbp)
  mov    -0x18(%rbp),%rax
  mov    (%rax),%rax
  lea    0x1(%rax),%rdx
  mov    -0x18(%rbp),%rax
  mov    %rdx,(%rax)
  movb   $0x1,-0x9(%rbp)
  mov    -0x18(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x8(%rbp)
  jmp    L141
L190:
  mov    -0x18(%rbp),%rax
  mov    (%rax),%rax
  cmp    %rax,-0x20(%rbp)
  jne    L143
  mov    $0x1f5,%eax
  jmp    L189
L143:
  cmpb   $0x0,-0x9(%rbp)
  je     L129
  mov    -0x18(%rbp),%rax
  mov    (%rax),%rax
  movzbl (%rax),%eax
  cmp    $0x2c,%al
  jne    L102
  mov    -0x18(%rbp),%rax
  mov    (%rax),%rax
  cmp    %rax,-0x8(%rbp)
  je     L102
  movb   $0x0,-0x9(%rbp)
  mov    -0x18(%rbp),%rax
  mov    (%rax),%rax
  movb   $0x0,(%rax)
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <atoi@plt>
  mov    -0x28(%rbp),%rdx
  mov    %ax,(%rdx)
  mov    -0x18(%rbp),%rax
  mov    (%rax),%rax
  movb   $0x2c,(%rax)
  mov    -0x18(%rbp),%rax
  mov    (%rax),%rax
  add    $0x1,%rax
  mov    %rax,-0x8(%rbp)
  jmp    L112
L102:
  mov    -0x18(%rbp),%rax
  mov    (%rax),%rax
  movzbl (%rax),%eax
  cmp    $0x39,%al
  jg     L60
  mov    -0x18(%rbp),%rax
  mov    (%rax),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jns    L112
L60:
  mov    $0x1f5,%eax
  jmp    L189
L129:
  mov    -0x18(%rbp),%rax
  mov    (%rax),%rax
  movzbl (%rax),%eax
  cmp    $0x39,%al
  jg     L132
  mov    -0x18(%rbp),%rax
  mov    (%rax),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jns    L112
L132:
  mov    $0x1f5,%eax
  jmp    L189
L112:
  mov    -0x18(%rbp),%rax
  mov    (%rax),%rax
  lea    0x1(%rax),%rdx
  mov    -0x18(%rbp),%rax
  mov    %rdx,(%rax)
L141:
  mov    -0x18(%rbp),%rax
  mov    (%rax),%rax
  movzbl (%rax),%eax
  cmp    $0x7d,%al
  jne    L190
  mov    -0x18(%rbp),%rax
  mov    (%rax),%rax
  cmp    %rax,-0x8(%rbp)
  jne    L173
  mov    -0x30(%rbp),%rax
  movw   $0x0,(%rax)
  jmp    L22
L173:
  mov    -0x18(%rbp),%rax
  mov    (%rax),%rax
  movb   $0x0,(%rax)
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <atoi@plt>
  mov    -0x30(%rbp),%rdx
  mov    %ax,(%rdx)
  mov    -0x18(%rbp),%rax
  mov    (%rax),%rax
  movb   $0x7d,(%rax)
  cmpb   $0x0,-0x9(%rbp)
  je     L22
  mov    -0x30(%rbp),%rax
  movzwl (%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    %dx,(%rax)
L22:
  mov    -0x30(%rbp),%rax
  movzwl (%rax),%eax
  test   %ax,%ax
  je     L29
  mov    -0x28(%rbp),%rax
  movzwl (%rax),%edx
  mov    -0x30(%rbp),%rax
  movzwl (%rax),%eax
  cmp    %ax,%dx
  ja     L195
L29:
  mov    -0x30(%rbp),%rax
  movzwl (%rax),%eax
  cmp    $0x64,%ax
  jbe    L75
L195:
  mov    $0x1f5,%eax
  jmp    L189
L75:
  mov    -0x18(%rbp),%rax
  mov    (%rax),%rax
  lea    0x1(%rax),%rdx
  mov    -0x18(%rbp),%rax
  mov    %rdx,(%rax)
  mov    $0x0,%eax
L189:
  leave
  ret
```

assistant: ```c
unsigned int readInterval(char **first, char *last, unsigned short *low, unsigned short *high) {
  ++*first;
  unsigned char parseBegin = 1;
  char *numberBegin = *first;
  while (*first[0] != '}') {
    if (*first == last) {
      return 501;
    }
    if (parseBegin) {
      if (*first[0] == ',' && numberBegin != *first) {
        parseBegin = 0;
        *first[0] = '\0';
        *low = atoi(numberBegin);
        *first[0] = ',';
        numberBegin = *first + 1;
      } else if (*first[0] > '9' || *first[0] < 0) {
        return 501;
      }
    } else if (*first[0] > '9' || *first[0] < 0) {
      return 501;
    }
    ++*first;
  }
  if (numberBegin == *first) {
    *high = 0;
  } else {
    *first[0] = '\0';
    *high = atoi(numberBegin);
    *first[0] = '}';
    if (parseBegin) {
      *low = *high;
    }
  }
  if ((*high && *low > *high) || *high > 100) {
    return 501;
  }
  ++*first;
  return 0;
}
```