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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  cmp    $0x1,%edi
  jle    L139
  mov    %edi,%r14d
  mov    %rsi,%r12
  mov    $0x1,%ebx
  movl   $0x63,0xc(%rsp)
  movl   $0x0,0x8(%rsp)
  lea    D152(%rip),%r15
  jmp    L177
L116:
  mov    (%r12),%rdi
  call   <printUsage@plt>
  mov    $0x0,%eax
L203:
  mov    0x18(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L164
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L204:
  mov    (%r12),%rsi
  lea    D144(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    (%r12),%rdi
  call   <printUsage@plt>
  mov    $0x0,%eax
  jmp    L203
L32:
  movl   $0x1,0x8(%rsp)
L168:
  add    $0x1,%ebx
  cmp    %ebx,%r14d
  jle    L69
L177:
  movslq %ebx,%rax
  lea    0x0(,%rax,8),%r13
  mov    (%r12,%rax,8),%rbp
  mov    %rbp,%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L32
  mov    %rbp,%rsi
  lea    D142(%rip),%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L12
  mov    %rbp,%rsi
  lea    D104(%rip),%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L116
  mov    %rbp,%rsi
  lea    D141(%rip),%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L116
  mov    %rbp,%rsi
  lea    D16(%rip),%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L17
  mov    %rbp,%rsi
  lea    D109(%rip),%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L204
L17:
  add    $0x1,%ebx
  mov    0x8(%r12,%r13,1),%rdi
  call   <atoi@plt>
  mov    %eax,0xc(%rsp)
  jmp    L168
L12:
  movl   $0x1,0x8(%rsp)
  jmp    L168
L69:
  lea    D32(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  mov    $0x0,%eax
  call   <randomize@plt>
  mov    %eax,%ebp
  cmpl   $0x0,0x8(%rsp)
  jne    L111
L160:
  movl   $0xffffffff,0x14(%rsp)
  cmpl   $0x0,0xc(%rsp)
  jle    L236
L74:
  mov    $0x0,%ebx
  lea    D150(%rip),%r13
  lea    D112(%rip),%r12
  lea    D136(%rip),%r14
  lea    D12(%rip),%r15
  jmp    L278
L111:
  mov    0xc(%rsp),%edx
  mov    %eax,%esi
  lea    D151(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L160
L151:
  mov    %ebp,%edx
  mov    %ebx,%esi
  lea    D63(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  jmp    L203
L141:
  mov    %r15,%rdi
  call   <puts@plt>
L277:
  cmp    %ebx,0xc(%rsp)
  je     L47
L278:
  add    $0x1,%ebx
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x14(%rsp),%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
L20:
  mov    $0x0,%eax
  call   <getchar@plt>
  cmp    $0xa,%al
  jne    L20
  mov    0x14(%rsp),%eax
  cmp    %ebp,%eax
  je     L151
  jl     L141
  jle    L49
  mov    %r14,%rdi
  call   <puts@plt>
  jmp    L277
L49:
  lea    D120(%rip),%rdi
  call   <puts@plt>
  mov    $0x29a,%eax
  jmp    L203
L47:
  mov    $0x29a,%eax
  jmp    L203
L236:
  mov    $0x29a,%eax
  jmp    L203
L139:
  lea    D32(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  mov    $0x0,%eax
  call   <randomize@plt>
  mov    %eax,%ebp
  movl   $0xffffffff,0x14(%rsp)
  movl   $0x63,0xc(%rsp)
  jmp    L74
L164:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D152
type: string
name: read_data
arguments: label: D144
type: string
name: read_data
arguments: label: D142
type: string
name: read_data
arguments: label: D104
type: string
name: read_data
arguments: label: D141
type: string
name: read_data
arguments: label: D16
type: string
name: read_data
arguments: label: D109
type: string
name: read_data
arguments: label: D32
type: string
name: read_data
arguments: label: D150
type: string
name: read_data
arguments: label: D112
type: string
name: read_data
arguments: label: D136
type: string
name: read_data
arguments: label: D12
type: string
name: read_data
arguments: label: D151
type: string
name: read_data
arguments: label: D63
type: string
name: read_data
arguments: label: D120
type: string

tool: D152: -d

tool: D144: %s: invalid argument(s)



tool: D142: --debug

tool: D104: -h

tool: D141: --help

tool: D16: -a

tool: D109: --attempts

tool: D32: Welcome to Guess-o-matic 3000!
Machine will randomize an integer between 0 and 20.
Try to guess it! Press ENTER when you're ready.

tool: D150: Your guess: 

tool: D112: %d

tool: D136: Maybe you should try smaller number?

tool: D12: Maybe you should try larger number?

tool: D151: DEBUG theNumber: %d
DEBUG maxAttempts: %d


tool: D63: CONGRATZ! GGWP! You're Winner! Olet viineri! It took you %d tries to give a correct answer, which was %d!


tool: D120: What the fuck?

assistant: ```c
int main(int argc, char *argv[]) {
  bool optDebug = false;
  int maxAttempts = 99;
  for (int i = 1; i < argc; i++) {
    if (!strcmp("-d", argv[i]) || !strcmp("--debug", argv[i])) {
      optDebug = true;
    } else if (!strcmp("-h", argv[i]) || !strcmp("--help", argv[i])) {
      printUsage(argv[0]);
      return 0;
    } else if (!strcmp("-a", argv[i]) || !strcmp("--attempts", argv[i])) {
      i++;
      maxAttempts = atoi(argv[i]);
    } else {
      printf("%s: invalid argument(s)\n\n", argv[0]);
      printUsage(argv[0]);
      return 0;
    }
  }
  printf("Welcome to Guess-o-matic 3000!\nMachine will randomize an "
         "integer between 0 and 20.\nTry to guess it! Press ENTER "
         "when you're ready.");
  getchar();
  int theNumber = randomize();
  if (optDebug)
    printf("DEBUG theNumber: %d\nDEBUG maxAttempts: %d\n", theNumber, maxAttempts);
  int guessCount = 0;
  int guess = -1;
  while (guessCount < maxAttempts) {
    guessCount++;
    printf("Your guess: ");
    scanf("%d", &guess);
    while (getchar() != '\n')
      ;
    if (guess == theNumber) {
      printf("CONGRATZ! GGWP! You're Winner! Olet viineri! "
             "It took you %d tries to give a correct answer, "
             "which was %d!\n",
             guessCount, theNumber);
      return 0;
    } else if (guess < theNumber) {
      printf("Maybe you should try larger number?\n");
    } else if (guess > theNumber) {
      printf("Maybe you should try smaller number?\n");
    } else {
      printf("What the fuck?\n");
      return 666;
    }
  }
  return 666;
}
```