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

```asm
<main>:
  endbr64
  push   %r14
  lea    D49(%rip),%rdi
  lea    D27(%rip),%r14
  push   %r13
  push   %r12
  lea    D28(%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    L4
  nopl   (%rax)
L40:
  mov    %rbp,%rsi
  mov    %r12,%rdi
  add    $0x1,%ebx
  add    $0x4,%rbp
  call   <scanf@plt>
  cmp    %ebx,0x8(%rsp)
  jg     L40
L4:
  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    L61
  nopl   0x0(%rax)
L21:
  mov    %rbp,%rsi
  mov    %r12,%rdi
  add    $0x1,%ebx
  add    $0x4,%rbp
  call   <scanf@plt>
  cmp    %ebx,0xc(%rsp)
  jg     L21
L61:
  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    D2(%rip),%rdi
  call   <puts@plt>
  mov    0xc(%rsp),%eax
  add    0x8(%rsp),%eax
  test   %eax,%eax
  jle    L25
  xor    %ebx,%ebx
  lea    D40(%rip),%r12
  nopw   0x0(%rax,%rax,1)
L50:
  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     L50
L25:
  mov    0x658(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L34
  add    $0x660,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L34:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D49
type_infered: string
name: read_data
arguments: data_label: D27
type_infered: string
name: read_data
arguments: data_label: D28
type_infered: string
name: read_data
arguments: data_label: D0
type_infered: string
name: read_data
arguments: data_label: D2
type_infered: string
name: read_data
arguments: data_label: D40
type_infered: string

tool: D49: Input number of elements in first array

tool: D27: Input %d integers


tool: D28: %d

tool: D0: Input number of elements in second array

tool: D2: Sorted array:

tool: D40: %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;
}
```