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

```asm
<main>:
  endbr64
  push   %r13
  mov    $0x6,%r9d
  xor    %r13d,%r13d
  mov    $0x4,%edx
  push   %r12
  mov    $0x7,%esi
  xor    %r12d,%r12d
  mov    $0x3,%r8d
  push   %rbp
  mov    $0x2,%edi
  xor    %ebp,%ebp
  mov    $0x1,%r11d
  push   %rbx
  mov    $0x4e,%ecx
  xor    %ebx,%ebx
  mov    $0x2,%r10d
  sub    $0x28,%rsp
  movdqa D11(%rip),%xmm0
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  mov    D20(%rip),%rax
  movaps %xmm0,(%rsp)
  mov    %rax,0x10(%rsp)
  mov    $0x1,%eax
  nopl   0x0(%rax)
L147:
  cmp    %edx,%ecx
  jle    L31
  mov    %edi,%r8d
  mov    %r11d,%edi
  mov    %ecx,%r11d
  mov    $0x1,%ebp
  mov    %edx,%ecx
  mov    %r11d,%edx
L31:
  cmp    %eax,%edx
  jle    L109
  mov    %edi,%r8d
  mov    %edx,%edi
  mov    $0x1,%ebx
  mov    %eax,%edx
  mov    $0x1,%ebp
  mov    %edi,%eax
L109:
  cmp    %esi,%eax
  jg     L6
  cmp    %r9d,%esi
  jg     L22
  cmp    $0x4,%r8d
  jne    L88
  test   %r13b,%r13b
  je     L135
  mov    %r9d,0x14(%rsp)
L135:
  test   %r12b,%r12b
  je     L85
  mov    %esi,0x10(%rsp)
L85:
  test   %bl,%bl
  je     L72
  mov    %eax,0xc(%rsp)
L72:
  test   %bpl,%bpl
  je     L155
  mov    %edx,0x8(%rsp)
L155:
  mov    %ecx,0x4(%rsp)
  mov    %rsp,%rbx
  lea    0x18(%rsp),%r12
  lea    D10(%rip),%rbp
  mov    %r10d,(%rsp)
  nopl   0x0(%rax)
L19:
  mov    (%rbx),%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x4,%rbx
  call   <printf@plt>
  cmp    %rbx,%r12
  jne    L19
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L32
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L110:
  mov    %eax,%edi
  mov    $0x1,%ebx
  mov    %esi,%eax
  mov    %edi,%esi
L22:
  mov    %esi,%edi
  mov    $0x1,%r13d
  mov    %r9d,%esi
  mov    $0x1,%r12d
  mov    %edi,%r9d
L88:
  cmp    %ecx,%r10d
  jg     L1
L74:
  mov    $0x4,%r8d
  mov    $0x3,%edi
  mov    $0x2,%r11d
  jmp    L147
  nopw   0x0(%rax,%rax,1)
L6:
  cmp    %r9d,%eax
  jg     L110
  mov    %esi,%edi
  mov    $0x1,%ebx
  mov    %eax,%esi
  mov    $0x1,%r12d
  mov    %edi,%eax
  cmp    %ecx,%r10d
  jle    L74
L1:
  mov    %r10d,%edi
  mov    $0x3,%r8d
  mov    %ecx,%r10d
  mov    $0x1,%r11d
  mov    %edi,%ecx
  mov    $0x2,%edi
  jmp    L147
L32:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D11
type_infered: byte[16]
name: unpack_data
arguments: label: D20
type_infered: byte[8]
name: unpack_data
arguments: label: D10
type_infered: string

tool: {"D11": [0x4e,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x01,0x00,0x00,0x00]}

tool: {"D20": [0x07,0x00,0x00,0x00,0x06,0x00,0x00,0x00]}

tool: D10: %i 

assistant: ```c
int main(void) {
  int arr[6] = {78, 2, 4, 1, 7, 6};
  int temp;
  int temp2;
  int check = 0;
  int arr_len = sizeof(arr) / sizeof(arr[0]);
  while (check < (arr_len - 1)) {
    check = 0;
    for (int i = 0, n = (arr_len - 1); i < n; i++) {
      if (arr[i] > arr[i + 1]) {
        temp = arr[i];
        temp2 = arr[i + 1];
        arr[i] = temp2;
        arr[i + 1] = temp;
      } else {
        check++;
      }
    }
  }
  for (int j = 0; j < arr_len; j++) {
    printf("%i ", arr[j]);
  }
  printf("\n");
  return 0;
}
```