user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %r13
  lea    D73(%rip),%rdi
  lea    D62(%rip),%r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    D61(%rip),%rdi
  call   <puts@plt>
  lea    D65(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D64(%rip),%rdi
  call   <puts@plt>
  lea    0xc(%rsp),%rsi
  mov    %r13,%rdi
  call   <scanf@plt>
  lea    D70(%rip),%rdi
  call   <puts@plt>
  mov    0xc(%rsp),%edx
  test   %edx,%edx
  jle    L40
  lea    0x10(%rsp),%rbx
  xor    %ebp,%ebp
  mov    %rbx,%r12
  nopw   0x0(%rax,%rax,1)
L47:
  mov    %r12,%rsi
  mov    %r13,%rdi
  add    $0x1,%ebp
  add    $0x4,%r12
  call   <scanf@plt>
  mov    0xc(%rsp),%eax
  cmp    %ebp,%eax
  jg     L47
  test   %eax,%eax
  jle    L40
  lea    -0x1(%rax),%r10d
  xor    %r8d,%r8d
  lea    -0x2(%rax),%r9d
  mov    %rbx,%rsi
  lea    0x4(%rbx),%r11
  cmp    %r10,%r8
  je     L40
  nopl   (%rax)
L1:
  mov    %r9d,%eax
  sub    %r8d,%eax
  add    %r8,%rax
  lea    (%r11,%rax,4),%rdi
  mov    %rsi,%rax
L31:
  mov    (%rsi),%edx
  mov    0x4(%rax),%ecx
  cmp    %ecx,%edx
  jle    L39
  mov    %ecx,(%rsi)
  mov    %edx,0x4(%rax)
L39:
  add    $0x4,%rax
  cmp    %rdi,%rax
  jne    L31
  add    $0x1,%r8
  add    $0x4,%rsi
  cmp    %r10,%r8
  jne    L1
L40:
  lea    D58(%rip),%rdi
  call   <puts@plt>
  mov    0xc(%rsp),%eax
  test   %eax,%eax
  jle    L57
  xor    %ebp,%ebp
  lea    0x10(%rsp),%rbx
  lea    D53(%rip),%r12
  cs nopw 0x0(%rax,%rax,1)
L17:
  mov    (%rbx,%rbp,4),%esi
  mov    %r12,%rdi
  xor    %eax,%eax
  add    $0x1,%rbp
  call   <printf@plt>
  cmp    %ebp,0xc(%rsp)
  jg     L17
L57:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L24
  add    $0x48,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L24:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D73
type_infered: string
name: disassemble_data
arguments: data_label: D62
type_infered: string
name: disassemble_data
arguments: data_label: D61
type_infered: string
name: disassemble_data
arguments: data_label: D65
type_infered: string
name: disassemble_data
arguments: data_label: D64
type_infered: string
name: disassemble_data
arguments: data_label: D70
type_infered: string
name: disassemble_data
arguments: data_label: D58
type_infered: string
name: disassemble_data
arguments: data_label: D53
type_infered: string

tool: D73: 
*************************************************

tool: D62: %d

tool: D61: 
*	PROGRAM TO IMPLEMENT BUBBLE SORT	*

tool: D65: *************************************************

tool: D64: 
Enter no of elements

tool: D70: 
Enter the elements

tool: D58: 
The Sorted array is 

tool: D53: %d	

assistant: ```c
int main(void) {
  int iNum, i, j, iaArr[10], iTemp;
  printf("\n*************************************************");
  printf("\n*\tPROGRAM TO IMPLEMENT BUBBLE SORT\t*\n");
  printf("*************************************************");
  printf("\nEnter no of elements\n");
  scanf("%d", &iNum);
  printf("\nEnter the elements\n");
  for (i = 0; i < iNum; i++)
    scanf("%d", &iaArr[i]);
  for (i = 0; i < iNum; i++) {
    for (j = i + 1; j < iNum; j++) {
      if (iaArr[i] > iaArr[j]) {
        iTemp = iaArr[i];
        iaArr[i] = iaArr[j];
        iaArr[j] = iTemp;
      }
    }
  }
  printf("\nThe Sorted array is \n");
  for (i = 0; i < iNum; i++)
    printf("%d\t", iaArr[i]);
  printf("\n");
  return 0;
}
```