user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x4c(%rbp)
  movl   $0x0,-0x48(%rbp)
  movq   $0x737072,-0x40(%rbp)
  movq   $0x0,-0x38(%rbp)
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x20(%rbp)
  movl   $0x0,-0x18(%rbp)
  movb   $0x0,-0x14(%rbp)
  lea    D79(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x44(%rbp)
  jmp    L94
L89:
  lea    D77(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D22(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x50(%rbp),%rax
  mov    %rax,%rsi
  lea    D28(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x50(%rbp),%eax
  sub    $0x1,%eax
  cltq
  movzbl -0x40(%rbp,%rax,1),%eax
  mov    %al,-0x52(%rbp)
  movsbl -0x52(%rbp),%eax
  mov    %eax,%esi
  lea    D118(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D77(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D22(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x3,%edi
  call   <generaterandomfunc@plt>
  add    $0x1,%eax
  mov    %eax,-0x50(%rbp)
  mov    -0x50(%rbp),%eax
  sub    $0x1,%eax
  cltq
  movzbl -0x40(%rbp,%rax,1),%eax
  mov    %al,-0x51(%rbp)
  movsbl -0x51(%rbp),%eax
  mov    %eax,%esi
  lea    D115(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movsbl -0x52(%rbp),%edx
  movsbl -0x51(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <greater@plt>
  cmp    $0x1,%eax
  jne    L21
  addl   $0x1,-0x48(%rbp)
  lea    D147(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L22
L21:
  movsbl -0x52(%rbp),%edx
  movsbl -0x51(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <greater@plt>
  cmp    $0xffffffff,%eax
  jne    L81
  addl   $0x1,-0x48(%rbp)
  addl   $0x1,-0x4c(%rbp)
  lea    D92(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L22
L81:
  addl   $0x1,-0x4c(%rbp)
  lea    D83(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
L22:
  mov    -0x48(%rbp),%edx
  mov    -0x4c(%rbp),%eax
  mov    %eax,%esi
  lea    D30(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x44(%rbp)
L94:
  cmpl   $0x2,-0x44(%rbp)
  jle    L89
  mov    -0x4c(%rbp),%eax
  cmp    -0x48(%rbp),%eax
  jle    L10
  lea    D149(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L28
L10:
  mov    -0x48(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  jle    L34
  lea    D129(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L28
L34:
  lea    D128(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L28:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L33
  call   <__stack_chk_fail@plt>
L33:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D79
datatype: string
name: unpack_data
arguments: data_label: D77
datatype: string
name: unpack_data
arguments: data_label: D22
datatype: string
name: unpack_data
arguments: data_label: D28
datatype: string
name: unpack_data
arguments: data_label: D118
datatype: string
name: unpack_data
arguments: data_label: D115
datatype: string
name: unpack_data
arguments: data_label: D147
datatype: string
name: unpack_data
arguments: data_label: D92
datatype: string
name: unpack_data
arguments: data_label: D83
datatype: string
name: unpack_data
arguments: data_label: D30
datatype: string
name: unpack_data
arguments: data_label: D149
datatype: string
name: unpack_data
arguments: data_label: D129
datatype: string
name: unpack_data
arguments: data_label: D128
datatype: string

tool: D79: welcome to the rock paper scissor game

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

tool: D22: player no.1 turn 

tool: D28: %d

tool: D118: you choose  %c


tool: D115: cpu choose  %c


tool: D147: cpu got it hurray

tool: D92: its a draw 

tool: D83: you got it hurray

tool: D30: you : %d 
cpu : %d 


tool: D149: you win 

tool: D129: cpu win 

tool: D128: match is draw

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;
}
```