user: 请将以下的汇编代码转换成C语言代码:

```asm
<main>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  lea    0xc(%rsp),%rsi
  lea    D59(%rip),%rdi
  call   <scanf@plt>
  cmpl   $0x0,0xc(%rsp)
  jle    L49
  lea    0xb(%rsp),%rbp
  lea    D65(%rip),%rbx
  lea    D45(%rip),%r13
  lea    D32(%rip),%r12
  jmp    L23
L124:
  jge    L0
  addl   $0x3,0x3c(%rsp)
  jmp    L14
L0:
  addl   $0x1,0x1c(%rsp)
  addl   $0x1,0x3c(%rsp)
  jmp    L14
L188:
  jle    L238
  addl   $0x3,0x3c(%rsp)
  jmp    L58
L238:
  addl   $0x1,0x1c(%rsp)
  addl   $0x1,0x3c(%rsp)
  jmp    L58
L167:
  lea    D51(%rip),%rdi
  call   <printf@plt>
L55:
  mov    0xc(%rsp),%eax
  sub    $0x1,%eax
  mov    %eax,0xc(%rsp)
  test   %eax,%eax
  jle    L49
L23:
  movl   $0x0,0x1c(%rsp)
  movl   $0x0,0x3c(%rsp)
  movl   $0x0,0x24(%rsp)
  movl   $0x0,0x44(%rsp)
  lea    0x34(%rsp),%rcx
  lea    0x10(%rsp),%rsi
  mov    %rbp,%rdx
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    0x10(%rsp),%edx
  mov    0x34(%rsp),%eax
  mov    %edx,%ecx
  sub    %eax,%ecx
  mov    %ecx,0x20(%rsp)
  mov    %eax,%ecx
  sub    %edx,%ecx
  mov    %ecx,0x40(%rsp)
  add    %eax,0x44(%rsp)
  cmp    %eax,%edx
  jle    L124
  addl   $0x3,0x1c(%rsp)
L14:
  lea    0x14(%rsp),%rcx
  lea    0x30(%rsp),%rsi
  mov    %rbp,%rdx
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    0x10(%rsp),%eax
  sub    0x34(%rsp),%eax
  mov    %eax,0x20(%rsp)
  mov    0x30(%rsp),%ecx
  mov    0x14(%rsp),%edx
  mov    %ecx,%esi
  sub    %edx,%esi
  mov    %esi,0x40(%rsp)
  mov    %edx,%edi
  add    0x24(%rsp),%edi
  mov    %edi,0x24(%rsp)
  cmp    %edx,%ecx
  jge    L188
  addl   $0x3,0x1c(%rsp)
L58:
  mov    0x1c(%rsp),%ecx
  mov    0x3c(%rsp),%edx
  cmp    %edx,%ecx
  jg     L167
  jl     L27
  cmp    %esi,%eax
  jg     L8
  jl     L102
  mov    0x44(%rsp),%eax
  cmp    %eax,%edi
  jg     L29
  jge    L62
  mov    %r12,%rdi
  call   <printf@plt>
  jmp    L55
L27:
  mov    %r12,%rdi
  call   <printf@plt>
  jmp    L55
L8:
  lea    D51(%rip),%rdi
  call   <printf@plt>
  jmp    L55
L102:
  mov    %r12,%rdi
  call   <printf@plt>
  jmp    L55
L29:
  lea    D51(%rip),%rdi
  call   <printf@plt>
  jmp    L55
L62:
  mov    %r13,%rdi
  call   <printf@plt>
  jmp    L55
L49:
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L177
  mov    $0x0,%eax
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L177:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: tag: D59
type_guessed: string
name: retrieve_data
arguments: tag: D65
type_guessed: string
name: retrieve_data
arguments: tag: D45
type_guessed: string
name: retrieve_data
arguments: tag: D32
type_guessed: string
name: retrieve_data
arguments: tag: D51
type_guessed: string

tool: D59:  %d

tool: D65:  %d %c %d

tool: D45: Penaltis


tool: D32: Time 2


tool: D51: Time 1


assistant: ```c
int main() {
  int N, t1[6], t2[6];
  char x;
  scanf(" %d", &N);
  while (N > 0) {
    t1[3] = 0;
    t2[3] = 0;
    t1[5] = 0;
    t2[5] = 0;
    scanf(" %d %c %d", &t1[0], &x, &t2[1]);
    t1[4] = t1[0] - t2[1];
    t2[4] = t2[1] - t1[0];
    t2[5] += t2[1];
    if (t1[0] > t2[1]) {
      t1[3] += 3;
    } else if (t2[1] > t1[0]) {
      t2[3] += 3;
    } else {
      t1[3] += 1;
      t2[3] += 1;
    }
    scanf(" %d %c %d", &t2[0], &x, &t1[1]);
    t1[4] = t1[0] - t2[1];
    t2[4] = t2[0] - t1[1];
    t1[5] += t1[1];
    if (t1[1] > t2[0]) {
      t1[3] += 3;
    } else if (t2[0] > t1[1]) {
      t2[3] += 3;
    } else {
      t1[3] += 1;
      t2[3] += 1;
    }
    if (t1[3] > t2[3])
      printf("Time 1\n");
    else if (t2[3] > t1[3])
      printf("Time 2\n");
    else {
      if (t1[4] > t2[4])
        printf("Time 1\n");
      else if (t2[4] > t1[4])
        printf("Time 2\n");
      else if (t1[5] > t2[5])
        printf("Time 1\n");
      else if (t2[5] > t1[5])
        printf("Time 2\n");
      else
        printf("Penaltis\n");
    }
    N--;
  }
  return 0;
}
```