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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  lea    D21(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x64(%rbp),%rax
  mov    %rax,%rsi
  lea    D36(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x64(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x50(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r14
  mov    $0x0,%r15d
  movslq %eax,%rdx
  mov    %rdx,%r12
  mov    $0x0,%r13d
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L27:
  cmp    %rdx,%rsp
  je     L12
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L27
L12:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L32
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L32:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x48(%rbp)
  mov    $0x4,%edi
  call   <malloc@plt>
  mov    %rax,-0x40(%rbp)
  lea    D46(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x58(%rbp)
  jmp    L14
L3:
  mov    -0x58(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rsi
  lea    D36(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  addl   $0x1,-0x58(%rbp)
L14:
  mov    -0x64(%rbp),%eax
  cmp    %eax,-0x58(%rbp)
  jl     L3
  mov    -0x64(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x40(%rbp),%rsi
  mov    -0x48(%rbp),%rax
  mov    $0x1,%r8d
  mov    %edx,%ecx
  mov    $0x0,%edx
  mov    %rax,%rdi
  call   <build@plt>
  lea    D67(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x5c(%rbp),%rdx
  lea    -0x60(%rbp),%rax
  mov    %rax,%rsi
  lea    D9(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x5c(%rbp),%eax
  lea    -0x1(%rax),%esi
  mov    -0x60(%rbp),%eax
  lea    -0x1(%rax),%ecx
  mov    -0x64(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x40(%rbp),%rax
  mov    $0x1,%r9d
  mov    %esi,%r8d
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <query@plt>
  mov    %eax,-0x54(%rbp)
  mov    -0x5c(%rbp),%edx
  mov    -0x60(%rbp),%eax
  mov    -0x54(%rbp),%ecx
  mov    %eax,%esi
  lea    D64(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  mov    %rbx,%rsp
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L28
  call   <__stack_chk_fail@plt>
L28:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D21
data_type: string
name: unpack_data
arguments: data_label: D36
data_type: string
name: unpack_data
arguments: data_label: D46
data_type: string
name: unpack_data
arguments: data_label: D67
data_type: string
name: unpack_data
arguments: data_label: D9
data_type: string
name: unpack_data
arguments: data_label: D64
data_type: string

tool: D21: Enter the size of the array: 

tool: D36: %d

tool: D46: Enter the elements.

tool: D67: Enter the range of the query: 

tool: D9: %d %d

tool: D64: Minimum value in index range %d to %d is: %d


assistant: ```c
int main() {
  int size;
  printf("Enter the size of the array: ");
  scanf("%d", &size);
  int array[size];
  int *segTree = (int *)malloc(sizeof(4 * size));
  printf("Enter the elements.\n");
  for (int i = 0; i < size; i++) {
    scanf("%d", &array[i]);
  }
  build(array, segTree, 0, size - 1, 1);
  int start, end;
  printf("Enter the range of the query: ");
  scanf("%d %d", &start, &end);
  int result = query(segTree, 0, size - 1, start - 1, end - 1, 1);
  printf("Minimum value in index range %d to %d is: %d\n", start, end, result);
  return 0;
}
```