user: What is the c source code of the assembly code below?

```asm
<main>:
  endbr64
  push   %r14
  lea    D31(%rip),%rdi
  lea    D57(%rip),%r14
  push   %r13
  push   %r12
  lea    D12(%rip),%r12
  push   %rbp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x660,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x658(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%r13
  call   <puts@plt>
  lea    0x8(%rsp),%rsi
  mov    %r12,%rdi
  mov    %r13,%rbp
  call   <scanf@plt>
  mov    0x8(%rsp),%esi
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%edx
  test   %edx,%edx
  jle    L42
  nopl   (%rax)
L9:
  mov    %rbp,%rsi
  mov    %r12,%rdi
  add    $0x1,%ebx
  add    $0x4,%rbp
  call   <scanf@plt>
  cmp    %ebx,0x8(%rsp)
  jg     L9
L42:
  lea    D0(%rip),%rdi
  xor    %ebx,%ebx
  call   <puts@plt>
  lea    0xc(%rsp),%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
  mov    0xc(%rsp),%esi
  mov    %r14,%rdi
  xor    %eax,%eax
  lea    0x1a0(%rsp),%r14
  call   <printf@plt>
  mov    0xc(%rsp),%eax
  mov    %r14,%rbp
  test   %eax,%eax
  jle    L14
  nopl   0x0(%rax)
L45:
  mov    %rbp,%rsi
  mov    %r12,%rdi
  add    $0x1,%ebx
  add    $0x4,%rbp
  call   <scanf@plt>
  cmp    %ebx,0xc(%rsp)
  jg     L45
L14:
  mov    0x8(%rsp),%esi
  mov    %r13,%rdi
  lea    0x330(%rsp),%rbp
  call   <bubble@plt>
  mov    0xc(%rsp),%esi
  mov    %r14,%rdi
  call   <bubble@plt>
  mov    0xc(%rsp),%ecx
  mov    0x8(%rsp),%esi
  mov    %rbp,%r8
  mov    %r14,%rdx
  mov    %r13,%rdi
  call   <merge@plt>
  lea    D1(%rip),%rdi
  call   <puts@plt>
  mov    0xc(%rsp),%eax
  add    0x8(%rsp),%eax
  test   %eax,%eax
  jle    L23
  xor    %ebx,%ebx
  lea    D38(%rip),%r12
  nopw   0x0(%rax,%rax,1)
L62:
  mov    0x0(%rbp,%rbx,4),%esi
  mov    %r12,%rdi
  xor    %eax,%eax
  add    $0x1,%rbx
  call   <printf@plt>
  mov    0xc(%rsp),%eax
  add    0x8(%rsp),%eax
  cmp    %ebx,%eax
  jg     L62
L23:
  mov    0x658(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L29
  add    $0x660,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L29:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D31
type_infered: string
name: parse_data
arguments: data_label: D57
type_infered: string
name: parse_data
arguments: data_label: D12
type_infered: string
name: parse_data
arguments: data_label: D0
type_infered: string
name: parse_data
arguments: data_label: D1
type_infered: string
name: parse_data
arguments: data_label: D38
type_infered: string

tool: D31: Input number of elements in first array

tool: D57: Input %d integers


tool: D12: %d

tool: D0: Input number of elements in second array

tool: D1: Sorted array:

tool: D38: %d


assistant: ```c
int main() {
  int a[100], b[100], m, n, c, sorted[200];
  printf("Input number of elements in first array\n");
  scanf("%d", &m);
  printf("Input %d integers\n", m);
  for (c = 0; c < m; c++) {
    scanf("%d", &a[c]);
  }
  printf("Input number of elements in second array\n");
  scanf("%d", &n);
  printf("Input %d integers\n", n);
  for (c = 0; c < n; c++) {
    scanf("%d", &b[c]);
  }
  bubble(a, m);
  bubble(b, n);
  merge(a, m, b, n, sorted);
  printf("Sorted array:\n");
  for (c = 0; c < m + n; c++) {
    printf("%d\n", sorted[c]);
  }
  return 0;
}
```