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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  lea    -0x40(%rbp),%rsi
  push   %r13
  push   %r12
  push   %rbx
  lea    D10(%rip),%rbx
  mov    %rbx,%rdi
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  call   <scanf@plt>
  mov    -0x40(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0x40(%rbp)
  test   %eax,%eax
  je     L127
  lea    -0x3c(%rbp),%rax
  mov    $0x1,%r13d
  mov    %rax,-0x58(%rbp)
  cs nopw 0x0(%rax,%rax,1)
L76:
  mov    -0x58(%rbp),%rsi
  mov    %rbx,%rdi
  mov    %rsp,-0x48(%rbp)
  call   <scanf@plt>
  movslq -0x3c(%rbp),%rax
  mov    %rsp,%rsi
  mov    %rax,%rcx
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rsi
  and    $0xfffffffffffffff0,%rdx
  cmp    %rsi,%rsp
  je     L14
L141:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rsi,%rsp
  jne    L141
L14:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L77
  orq    $0x0,-0x8(%rsp,%rdx,1)
L77:
  lea    0x3(%rsp),%r12
  mov    %r12,%rax
  and    $0xfffffffffffffffc,%r12
  shr    $0x2,%rax
  mov    %rax,-0x50(%rbp)
  test   %ecx,%ecx
  jle    L20
  mov    %r12,%r15
  xor    %r14d,%r14d
  nopw   0x0(%rax,%rax,1)
L18:
  mov    %r15,%rsi
  mov    %rbx,%rdi
  add    $0x1,%r14d
  add    $0x4,%r15
  call   <scanf@plt>
  mov    -0x3c(%rbp),%ecx
  cmp    %r14d,%ecx
  jg     L18
  mov    -0x50(%rbp),%rax
  mov    0x4(,%rax,4),%esi
  add    0x0(,%rax,4),%esi
  test   %ecx,%ecx
  jle    L42
  cmp    $0x1,%ecx
  je     L42
  lea    0x4(%r12),%r8
  mov    $0x1,%edx
  lea    -0x1(%rcx),%r9d
  nopl   0x0(%rax)
L174:
  mov    %ecx,%r10d
  mov    %r9d,%eax
  mov    -0x4(%r8),%edi
  sub    %edx,%r10d
  cmp    %edx,%ecx
  cmovle %r13d,%r10d
  sub    %edx,%eax
  cmp    $0x2,%eax
  jbe    L138
  cmp    %edx,%ecx
  jle    L138
  mov    %r10d,%eax
  movd   %esi,%xmm4
  movd   %edi,%xmm5
  shr    $0x2,%eax
  pshufd $0x0,%xmm4,%xmm0
  pshufd $0x0,%xmm5,%xmm3
  sub    $0x1,%eax
  shl    $0x4,%rax
  lea    0x10(%r8,%rax,1),%rsi
  mov    %r8,%rax
  nopl   (%rax)
L101:
  movdqu (%rax),%xmm2
  add    $0x10,%rax
  paddd  %xmm3,%xmm2
  movdqa %xmm2,%xmm1
  pcmpgtd %xmm0,%xmm1
  pand   %xmm1,%xmm0
  pandn  %xmm2,%xmm1
  por    %xmm1,%xmm0
  cmp    %rax,%rsi
  jne    L101
  movdqa %xmm0,%xmm2
  mov    %r10d,%r11d
  psrldq $0x8,%xmm2
  and    $0xfffffffc,%r11d
  movdqa %xmm2,%xmm1
  lea    (%r11,%rdx,1),%eax
  pcmpgtd %xmm0,%xmm1
  pand   %xmm1,%xmm0
  pandn  %xmm2,%xmm1
  por    %xmm1,%xmm0
  movdqa %xmm0,%xmm2
  psrldq $0x4,%xmm2
  movdqa %xmm2,%xmm1
  pcmpgtd %xmm0,%xmm1
  pand   %xmm1,%xmm0
  pandn  %xmm2,%xmm1
  por    %xmm0,%xmm1
  movd   %xmm1,%esi
  cmp    %r11d,%r10d
  je     L74
L80:
  movslq %eax,%r10
  lea    (%r12,%r10,4),%r10
  mov    (%r10),%r11d
  add    %edi,%r11d
  cmp    %r11d,%esi
  cmovg  %r11d,%esi
  lea    0x1(%rax),%r11d
  cmp    %r11d,%ecx
  jle    L74
  mov    0x4(%r10),%r11d
  add    %edi,%r11d
  cmp    %r11d,%esi
  cmovg  %r11d,%esi
  add    $0x2,%eax
  cmp    %eax,%ecx
  jle    L74
  add    0x8(%r10),%edi
  cmp    %edi,%esi
  cmovg  %edi,%esi
L74:
  add    $0x1,%edx
  add    $0x4,%r8
  cmp    %edx,%ecx
  jne    L174
L42:
  lea    D9(%rip),%rdi
  call   <printf@plt>
  mov    -0x40(%rbp),%eax
  mov    -0x48(%rbp),%rsp
  lea    -0x1(%rax),%edx
  mov    %edx,-0x40(%rbp)
  test   %eax,%eax
  jne    L76
L127:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L184
  lea    -0x28(%rbp),%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L138:
  mov    %edx,%eax
  jmp    L80
L20:
  mov    0x4(,%rax,4),%esi
  add    0x0(,%rax,4),%esi
  jmp    L42
L184:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D10
data_type: string
name: parse_data
arguments: data_tag: D9
data_type: string

tool: D10: %d

tool: D9: %d


assistant: ```c
int main() {
  int i, j, t, n, k, min;
  scanf("%d", &t);
  while (t--) {
    scanf("%d", &n);
    int x[n];
    for (i = 0; i < n; i++) {
      scanf("%d", &x[i]);
    }
    min = x[0] + x[1];
    for (i = 0; i < n; i++) {
      for (j = i + 1; j < n; j++) {
        if (x[i] + x[j] < min) {
          min = x[i] + x[j];
        }
      }
    }
    printf("%d\n", min);
  }
  return 0;
}
```