user: What is the c source code of the assembly code below?

```asm
<main>:
  endbr64
  push   %rbx
  xor    %edi,%edi
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  movb   $0x2e,0x7(%rsp)
  call   <time@plt>
  mov    %eax,%edi
  call   <srand@plt>
  xor    %eax,%eax
  call   <rand@plt>
  lea    D106(%rip),%rdi
  movslq %eax,%rdx
  mov    %eax,%ecx
  imul   $0x55555556,%rdx,%rdx
  sar    $0x1f,%ecx
  shr    $0x20,%rdx
  sub    %ecx,%edx
  lea    (%rdx,%rdx,2),%edx
  sub    %edx,%eax
  lea    0x1(%rax),%ebx
  call   <printf@plt>
  lea    0x7(%rsp),%rsi
  lea    D11(%rip),%rdi
  call   <scanf@plt>
  movzbl 0x7(%rsp),%eax
  cmp    $0x72,%al
  je     L144
  cmp    $0x70,%al
  je     L178
  cmp    $0x73,%al
  jne    L31
  cmp    $0x1,%ebx
  je     L49
  cmp    $0x2,%ebx
  je     L116
  lea    D46(%rip),%rdi
  call   <printf@plt>
  lea    D196(%rip),%rdi
  call   <printf@plt>
  jmp    L78
L178:
  cmp    $0x1,%ebx
  je     L51
  cmp    $0x2,%ebx
  je     L46
  lea    D46(%rip),%rdi
  call   <printf@plt>
  lea    D155(%rip),%rdi
  call   <printf@plt>
  jmp    L78
L144:
  cmp    $0x1,%ebx
  je     L81
  cmp    $0x2,%ebx
  je     L141
  lea    D46(%rip),%rdi
  call   <printf@plt>
  lea    D181(%rip),%rdi
  call   <printf@plt>
  jmp    L78
L31:
  lea    D3(%rip),%rdi
  call   <printf@plt>
L78:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L147
  add    $0x10,%rsp
  xor    %eax,%eax
  pop    %rbx
  ret
L141:
  lea    D44(%rip),%rdi
  call   <printf@plt>
  lea    D155(%rip),%rdi
  call   <printf@plt>
  jmp    L78
L81:
  lea    D125(%rip),%rdi
  call   <printf@plt>
  lea    D196(%rip),%rdi
  call   <printf@plt>
  jmp    L78
L46:
  lea    D44(%rip),%rdi
  call   <printf@plt>
  lea    D196(%rip),%rdi
  call   <printf@plt>
  jmp    L78
L116:
  lea    D44(%rip),%rdi
  call   <printf@plt>
  lea    D172(%rip),%rdi
  call   <printf@plt>
  jmp    L78
L51:
  lea    D125(%rip),%rdi
  call   <printf@plt>
  lea    D181(%rip),%rdi
  call   <printf@plt>
  jmp    L78
L49:
  lea    D125(%rip),%rdi
  call   <printf@plt>
  lea    D155(%rip),%rdi
  call   <printf@plt>
  jmp    L78
L147:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D106
type_infered: string
name: unpack_data
arguments: data_tag: D11
type_infered: string
name: unpack_data
arguments: data_tag: D46
type_infered: string
name: unpack_data
arguments: data_tag: D196
type_infered: string
name: unpack_data
arguments: data_tag: D155
type_infered: string
name: unpack_data
arguments: data_tag: D181
type_infered: string
name: unpack_data
arguments: data_tag: D3
type_infered: string
name: unpack_data
arguments: data_tag: D44
type_infered: string
name: unpack_data
arguments: data_tag: D125
type_infered: string
name: unpack_data
arguments: data_tag: D172
type_infered: string

tool: D106: Rock, paper, or scissors? 

tool: D11: %c

tool: D46: I rolled scissor. 

tool: D196: We tie!

tool: D155: You lose!

tool: D181: You win!

tool: D3: Error: you did not enter 'r', 'p', or 's'!

tool: D44: I rolled paper. 

tool: D125: I rolled rock. 

tool: D172: You win! 

assistant: ```c
int main(void) {
  char userInput = '.';
  int randomRPS = 0;
  srand((unsigned)time(NULL));
  randomRPS = ((rand() % 3) + 1);
  printf("Rock, paper, or scissors? ");
  scanf("%c", &userInput);
  if (userInput == 'r') {
    if (randomRPS == 1) {
      printf("I rolled rock. ");
      printf("We tie!");
    } else if (randomRPS == 2) {
      printf("I rolled paper. ");
      printf("You lose!");
    } else {
      printf("I rolled scissor. ");
      printf("You win!");
    }
  } else if (userInput == 'p') {
    if (randomRPS == 1) {
      printf("I rolled rock. ");
      printf("You win!");
    } else if (randomRPS == 2) {
      printf("I rolled paper. ");
      printf("We tie!");
    } else {
      printf("I rolled scissor. ");
      printf("You lose!");
    }
  } else if (userInput == 's') {
    if (randomRPS == 1) {
      printf("I rolled rock. ");
      printf("You lose!");
    } else if (randomRPS == 2) {
      printf("I rolled paper. ");
      printf("You win! ");
    } else {
      printf("I rolled scissor. ");
      printf("We tie!");
    }
  } else {
    printf("Error: you did not enter 'r', 'p', or 's'!");
  }
  return 0;
}
```