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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  lea    -0xc3000(%rsp),%r11
L4:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L4
  sub    $0x530,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0xc352c(%rbp)
  movl   $0x0,-0xc3528(%rbp)
  movl   $0x0,-0xc3524(%rbp)
  movl   $0x0,-0xc3520(%rbp)
  movl   $0x0,-0xc351c(%rbp)
  movl   $0x0,-0xc3518(%rbp)
  movl   $0x0,-0xc3514(%rbp)
  lea    D92(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D97(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0xc352c(%rbp),%rax
  mov    %rax,%rsi
  lea    D29(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    D46(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0xc3528(%rbp),%rax
  mov    %rax,%rsi
  lea    D29(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0xc352c(%rbp),%eax
  mov    $0x4,%esi
  mov    %eax,%edi
  call   <calloc@plt>
  mov    %rax,-0xc3510(%rbp)
  mov    -0xc3528(%rbp),%eax
  mov    $0x4,%esi
  mov    %eax,%edi
  call   <calloc@plt>
  mov    %rax,-0xc3508(%rbp)
  movl   $0x0,-0xc3524(%rbp)
  jmp    L73
L31:
  mov    -0xc3524(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xc3510(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rsi
  lea    D29(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0xc3524(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xc3510(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jle    L28
  mov    -0xc3524(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xc3510(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    $0x3,%eax
  jle    L9
L28:
  lea    D30(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  subl   $0x1,-0xc3524(%rbp)
L9:
  addl   $0x1,-0xc3524(%rbp)
L73:
  mov    -0xc352c(%rbp),%eax
  cmp    %eax,-0xc3524(%rbp)
  jl     L31
  movl   $0x0,-0xc3524(%rbp)
  jmp    L122
L103:
  lea    D52(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0xc3500(%rbp),%rdx
  mov    -0xc3524(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    %rax,%rsi
  lea    D29(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    -0xc3500(%rbp),%rdx
  mov    -0xc3524(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    $0x4,%rax
  add    %rdx,%rax
  mov    %rax,%rsi
  lea    D29(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0xc3524(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xc3508(%rbp),%rax
  add    %rax,%rdx
  mov    -0xc3524(%rbp),%eax
  cltq
  mov    -0xc3500(%rbp,%rax,8),%eax
  mov    %eax,(%rdx)
  mov    -0xc3524(%rbp),%eax
  cltq
  mov    -0xc3500(%rbp,%rax,8),%eax
  mov    %eax,-0xc3520(%rbp)
  jmp    L21
L48:
  mov    -0xc3524(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xc3508(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0xc3520(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    -0x4(%rax),%rcx
  mov    -0xc3510(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jle    L96
  mov    -0xc3520(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0xc3510(%rbp),%rax
  add    %rdx,%rax
  mov    -0xc3524(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0xc3508(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
L96:
  addl   $0x1,-0xc3520(%rbp)
L21:
  mov    -0xc3524(%rbp),%eax
  cltq
  mov    -0xc34fc(%rbp,%rax,8),%eax
  cmp    %eax,-0xc3520(%rbp)
  jle    L48
  addl   $0x1,-0xc3524(%rbp)
L122:
  mov    -0xc3528(%rbp),%eax
  cmp    %eax,-0xc3524(%rbp)
  jl     L103
  movl   $0x0,-0xc3520(%rbp)
  jmp    L14
L47:
  mov    -0xc3520(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xc3508(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%esi
  lea    D29(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0xc3520(%rbp)
L14:
  mov    -0xc3528(%rbp),%eax
  cmp    %eax,-0xc3520(%rbp)
  jl     L47
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L11
  call   <__stack_chk_fail@plt>
L11:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D92
data_type: string
name: parse_data
arguments: data_tag: D97
data_type: string
name: parse_data
arguments: data_tag: D29
data_type: string
name: parse_data
arguments: data_tag: D46
data_type: string
name: parse_data
arguments: data_tag: D30
data_type: string
name: parse_data
arguments: data_tag: D52
data_type: string

tool: D92: Welcome to Service Lane


tool: D97: Enter the length or no segments of unit length : 

tool: D29: %d

tool: D46: Enter no of Test cases : 

tool: D30: Entered width of service lane is invalid. Please enter it between 1-3

tool: D52: Entry Exit

assistant: ```c
int main() {
  int N = 0, T = 0, i = 0, j = 0, li = 0, lo = 0, k = 0;
  int *width, *min;
  int tc[99998][2];
  printf("Welcome to Service Lane\n\n");
  printf("Enter the length or no segments of unit length : ");
  scanf("%d", &N);
  printf("Enter no of Test cases : ");
  scanf("%d", &T);
  width = (int *)calloc(N, sizeof(int));
  min = (int *)calloc(T, sizeof(int));
  for (i = 0; i < N; i++) {
    scanf("%d", &width[i]);
    if (!(width[i] > 0 && width[i] < 4)) {
      printf("Entered width of service lane is invalid. Please enter it between 1-3\n");
      i--;
    }
  }
  for (i = 0; i < T; i++) {
    printf("Entry Exit");
    scanf("%d", &tc[i][0]);
    scanf("%d", &tc[i][1]);
    min[i] = tc[i][0];
    for (j = tc[i][0]; j <= tc[i][1]; j++) {
      if (min[i] > width[j - 1])
        min[i] = width[j - 1];
    }
  }
  for (j = 0; j < T; j++)
    printf("%d", min[j]);
  return 0;
}
```