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

```asm
<parse_number>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %rdx,-0x28(%rbp)
  mov    %rcx,-0x30(%rbp)
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2a,%al
  jne    L156
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%edx
  mov    -0x30(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x30,%al
  jle    L19
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x39,%al
  jg     L19
  mov    -0x20(%rbp),%rax
  movl   $0x0,(%rax)
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x4(%rbp)
  jmp    L115
L47:
  mov    -0x20(%rbp),%rax
  mov    (%rax),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%ecx
  mov    -0x4(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x4(%rbp)
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %ecx,%eax
  lea    -0x30(%rax),%edx
  mov    -0x20(%rbp),%rax
  mov    %edx,(%rax)
L115:
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jle    L93
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x39,%al
  jle    L47
L93:
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x24,%al
  jne    L99
  mov    -0x4(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x30(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  test   %eax,%eax
  je     L77
  mov    -0x20(%rbp),%rax
  mov    (%rax),%eax
  lea    -0x1(%rax),%edx
  mov    -0x20(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x20(%rbp),%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jmp    L77
L99:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%ecx
  mov    -0x28(%rbp),%rdx
  mov    %ecx,(%rdx)
  mov    -0x20(%rbp),%rdx
  mov    %eax,(%rdx)
  jmp    L77
L19:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%ecx
  mov    -0x28(%rbp),%rdx
  mov    %ecx,(%rdx)
  mov    -0x20(%rbp),%rdx
  mov    %eax,(%rdx)
  jmp    L125
L77:
  nop
L125:
  mov    $0x1,%eax
  jmp    L54
L156:
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x30,%al
  jle    L103
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x39,%al
  jg     L103
  mov    -0x20(%rbp),%rax
  movl   $0x0,(%rax)
  jmp    L146
L116:
  mov    -0x20(%rbp),%rax
  mov    (%rax),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%esi
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%ecx
  mov    -0x30(%rbp),%rdx
  mov    %ecx,(%rdx)
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %esi,%eax
  lea    -0x30(%rax),%edx
  mov    -0x20(%rbp),%rax
  mov    %edx,(%rax)
L146:
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jle    L86
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x39,%al
  jle    L116
L86:
  mov    $0x0,%eax
  jmp    L54
L103:
  mov    $0xffffffff,%eax
L54:
  pop    %rbp
  ret
```

assistant: ```c
int parse_number(const char *format, int *number, int *arg_number, int *pos) {
  int tmp;
  if (format[*pos] == '*') {
    if (format[++(*pos)] >= '1' && format[*pos] <= '9') {
      *number = 0;
      tmp = *pos;
      while (format[tmp] >= '0' && format[tmp] <= '9')
        *number = (*number) * 10 + format[tmp++] - '0';
      (format[tmp] == '$') ? ((*pos = tmp + 1) && --(*number)) : (*number = (*arg_number)++);
    } else
      *number = (*arg_number)++;
    return (1);
  }
  if (format[*pos] >= '1' && format[*pos] <= '9') {
    *number = 0;
    while (format[*pos] >= '0' && format[*pos] <= '9')
      *number = (*number) * 10 + format[(*pos)++] - '0';
    return (0);
  }
  return (-1);
}
```