user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  add    $0xffffffffffffff80,%rsp
  mov    %edi,-0x74(%rbp)
  mov    %rsi,-0x80(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0x60(%rbp)
  movq   $0x0,-0x58(%rbp)
  movq   $0x0,-0x50(%rbp)
  movq   $0x0,-0x48(%rbp)
  movq   $0x0,-0x40(%rbp)
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x20(%rbp)
  movq   $0x0,-0x18(%rbp)
  movq   $0x0,-0x10(%rbp)
  movl   $0xffffffff,-0x64(%rbp)
  cmpl   $0x2,-0x74(%rbp)
  jne    L34
  mov    -0x80(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  lea    -0x64(%rbp),%rdx
  lea    D23(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sscanf@plt>
  mov    -0x64(%rbp),%eax
  test   %eax,%eax
  jne    L34
  mov    -0x80(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  movzbl (%rax),%eax
  cmp    $0x30,%al
  je     L34
  movl   $0xffffffff,-0x64(%rbp)
L34:
  mov    -0x64(%rbp),%eax
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <validate_range@plt>
  test   %eax,%eax
  jne    L36
  lea    D1(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x27,%edx
  mov    $0x0,%esi
  lea    D0(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x1,%eax
  jmp    L21
L36:
  mov    -0x64(%rbp),%eax
  cltd
  shr    $0x1e,%edx
  add    %edx,%eax
  and    $0x3,%eax
  sub    %edx,%eax
  mov    %eax,-0x60(%rbp)
  lea    -0x60(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <generate_numbers@plt>
  mov    -0x60(%rbp),%eax
  add    $0x2,%eax
  cltd
  shr    $0x1e,%edx
  add    %edx,%eax
  and    $0x3,%eax
  sub    %edx,%eax
  mov    %eax,-0x30(%rbp)
  lea    -0x30(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <generate_numbers@plt>
  lea    -0x60(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <print_first@plt>
  mov    -0x64(%rbp),%edx
  lea    -0x30(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <print_second@plt>
  mov    -0x64(%rbp),%edx
  lea    -0x30(%rbp),%rcx
  lea    -0x60(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <print_combinations@plt>
  mov    $0x0,%eax
L21:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L19
  call   <__stack_chk_fail@plt>
L19:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D23
data_type: string
name: disassemble_data
arguments: data_tag: D1
data_type: string
name: disassemble_data
arguments: data_tag: D0
data_type: string

tool: D23: %2d

tool: D1: Usage: ./lockpro THIRD

tool: D0: THIRD should be an integer between %d and %d.


assistant: ```c
int main(int argc, char **argv) {
  int first[10] = {0}, second[10] = {0}, third = -1;
  if (argc == 2) {
    sscanf(argv[1], "%2d", &third);
    if (third == 0 && argv[1][0] != '0')
      third = -1;
  }
  if (!validate_range(third)) {
    printf("Usage: ./lockpro THIRD\n");
    printf("THIRD should be an integer between %d and %d.\n", 0, 39);
    return 1;
  }
  first[0] = third % 4;
  generate_numbers(first);
  second[0] = (first[0] + 2) % 4;
  generate_numbers(second);
  print_first(first);
  print_second(second, third);
  print_combinations(first, second, third);
  return 0;
}
```