user: What would the C source look like for the assembly code provided here?

```asm
<main>:
  endbr64
  push   %r15
  pxor   %xmm0,%xmm0
  lea    D31(%rip),%rdi
  push   %r14
  lea    D91(%rip),%r14
  push   %r13
  lea    D61(%rip),%r13
  push   %r12
  xor    %r12d,%r12d
  push   %rbp
  xor    %ebp,%ebp
  push   %rbx
  sub    $0x68,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x58(%rsp)
  xor    %eax,%eax
  movl   $0x0,0x48(%rsp)
  movq   $0x737072,0x20(%rsp)
  movq   $0x0,0x28(%rsp)
  movq   $0x0,0x40(%rsp)
  movb   $0x0,0x4c(%rsp)
  movaps %xmm0,0x30(%rsp)
  call   <puts@plt>
  lea    0x1c(%rsp),%rax
  movl   $0x3,0x4(%rsp)
  mov    %rax,0x8(%rsp)
L19:
  mov    %r14,%rdi
  call   <puts@plt>
  mov    %r13,%rdi
  call   <puts@plt>
  mov    0x8(%rsp),%rsi
  lea    D24(%rip),%rdi
  call   <scanf@plt>
  mov    0x1c(%rsp),%eax
  lea    D30(%rip),%rdi
  sub    $0x1,%eax
  cltq
  movsbl 0x20(%rsp,%rax,1),%ebx
  xor    %eax,%eax
  mov    %ebx,%esi
  call   <printf@plt>
  mov    %r14,%rdi
  call   <puts@plt>
  mov    %r13,%rdi
  call   <puts@plt>
  mov    $0x3,%edi
  call   <generaterandomfunc@plt>
  lea    D25(%rip),%rdi
  lea    0x1(%rax),%edx
  cltq
  movsbl 0x20(%rsp,%rax,1),%r15d
  xor    %eax,%eax
  mov    %edx,0x1c(%rsp)
  mov    %r15d,%esi
  call   <printf@plt>
  mov    %ebx,%esi
  mov    %r15d,%edi
  call   <greater@plt>
  cmp    $0x1,%eax
  je     L47
  mov    %ebx,%esi
  mov    %r15d,%edi
  add    $0x1,%ebp
  call   <greater@plt>
  cmp    $0xffffffff,%eax
  je     L74
  lea    D45(%rip),%rdi
  call   <puts@plt>
L15:
  xor    %eax,%eax
  mov    %r12d,%edx
  lea    D120(%rip),%rdi
  mov    %ebp,%esi
  call   <printf@plt>
  subl   $0x1,0x4(%rsp)
  jne    L19
  cmp    %r12d,%ebp
  jg     L87
  jl     L70
  lea    D27(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L10:
  mov    0x58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L50
  add    $0x68,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  xchg   %ax,%ax
L47:
  lea    D86(%rip),%rdi
  add    $0x1,%r12d
  call   <puts@plt>
  jmp    L15
  nopw   0x0(%rax,%rax,1)
L74:
  lea    D55(%rip),%rdi
  add    $0x1,%r12d
  call   <puts@plt>
  jmp    L15
L70:
  lea    D107(%rip),%rdi
  call   <puts@plt>
  jmp    L10
L87:
  lea    D53(%rip),%rdi
  call   <puts@plt>
  jmp    L10
L50:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: tag: D31
type_infered: string
name: read_data
arguments: tag: D91
type_infered: string
name: read_data
arguments: tag: D61
type_infered: string
name: read_data
arguments: tag: D24
type_infered: string
name: read_data
arguments: tag: D30
type_infered: string
name: read_data
arguments: tag: D25
type_infered: string
name: read_data
arguments: tag: D45
type_infered: string
name: read_data
arguments: tag: D120
type_infered: string
name: read_data
arguments: tag: D27
type_infered: string
name: read_data
arguments: tag: D86
type_infered: string
name: read_data
arguments: tag: D55
type_infered: string
name: read_data
arguments: tag: D107
type_infered: string
name: read_data
arguments: tag: D53
type_infered: string

tool: D31: welcome to the rock paper scissor game

tool: D91: choose 1 for rock choose 2 for paper choose 3 for scissor 

tool: D61: player no.1 turn 

tool: D24: %d

tool: D30: you choose  %c


tool: D25: cpu choose  %c


tool: D45: you got it hurray

tool: D120: you : %d 
cpu : %d 


tool: D27: match is draw

tool: D86: cpu got it hurray

tool: D55: its a draw 

tool: D107: cpu win 

tool: D53: you win 

assistant: ```c
int main() {
  int playerscore = 0, compscore = 0, temp;
  char playerchar, compchar;
  char dict[45] = {'r', 'p', 's'};
  printf("welcome to the rock paper scissor game\n");
  for (int i = 0; i < 3; i++) {
    printf("choose 1 for rock choose 2 for paper choose 3 for scissor \n");
    printf("player no.1 turn \n");
    scanf("%d", &temp);
    playerchar = dict[temp - 1];
    printf("you choose  %c\n", playerchar);
    printf("choose 1 for rock choose 2 for paper choose 3 for scissor \n");
    printf("player no.1 turn \n");
    temp = generaterandomfunc(3) + 1;
    compchar = dict[temp - 1];
    printf("cpu choose  %c\n", compchar);
    if (greater(compchar, playerchar) == 1) {
      compscore += 1;
      printf("cpu got it hurray\n");
    } else if (greater(compchar, playerchar) == -1) {
      compscore += 1;
      playerscore += 1;
      printf("its a draw \n");
    } else {
      playerscore += 1;
      printf("you got it hurray\n");
    }
    printf("you : %d \ncpu : %d \n", playerscore, compscore);
  }
  if (playerscore > compscore) {
    printf("you win \n");
  } else if (compscore > playerscore) {
    printf("cpu win \n");
  } else {
    printf("match is draw");
  }
  return 0;
}
```