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

```asm
<main>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x238,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x228(%rsp)
  xor    %eax,%eax
  movq   $0x0,0x20(%rsp)
  movq   $0x0,0x28(%rsp)
  movq   $0x0,0x30(%rsp)
  movq   $0x0,0x38(%rsp)
  movq   $0x0,0x40(%rsp)
  movq   $0x0,0x48(%rsp)
  movq   $0x0,0x50(%rsp)
  movq   $0x0,0x58(%rsp)
  movq   $0x0,0x60(%rsp)
  movq   $0x0,0x68(%rsp)
  movq   $0x0,0x70(%rsp)
  movq   $0x0,0x78(%rsp)
  movq   $0x0,0x80(%rsp)
  movq   $0x0,0x88(%rsp)
  movq   $0x0,0x90(%rsp)
  movq   $0x0,0x98(%rsp)
  movq   $0x0,0xa0(%rsp)
  movq   $0x0,0xa8(%rsp)
  movq   $0x0,0xb0(%rsp)
  movq   $0x0,0xb8(%rsp)
  movq   $0x0,0xc0(%rsp)
  movq   $0x0,0xc8(%rsp)
  movq   $0x0,0xd0(%rsp)
  movq   $0x0,0xd8(%rsp)
  movq   $0x0,0xe0(%rsp)
  movq   $0x0,0xe8(%rsp)
  movq   $0x0,0xf0(%rsp)
  movq   $0x0,0xf8(%rsp)
  movq   $0x0,0x100(%rsp)
  movq   $0x0,0x108(%rsp)
  movq   $0x0,0x110(%rsp)
  movq   $0x0,0x118(%rsp)
  movq   $0x0,0x120(%rsp)
  movq   $0x0,0x128(%rsp)
  movq   $0x0,0x130(%rsp)
  movq   $0x0,0x138(%rsp)
  movq   $0x0,0x140(%rsp)
  movq   $0x0,0x148(%rsp)
  movq   $0x0,0x150(%rsp)
  movq   $0x0,0x158(%rsp)
  movq   $0x0,0x160(%rsp)
  movq   $0x0,0x168(%rsp)
  movq   $0x0,0x170(%rsp)
  movq   $0x0,0x178(%rsp)
  movq   $0x0,0x180(%rsp)
  movq   $0x0,0x188(%rsp)
  movq   $0x0,0x190(%rsp)
  movq   $0x0,0x198(%rsp)
  movq   $0x0,0x1a0(%rsp)
  movq   $0x0,0x1a8(%rsp)
  movq   $0x0,0x1b0(%rsp)
  movq   $0x0,0x1b8(%rsp)
  movq   $0x0,0x1c0(%rsp)
  movq   $0x0,0x1c8(%rsp)
  movq   $0x0,0x1d0(%rsp)
  movq   $0x0,0x1d8(%rsp)
  movq   $0x0,0x1e0(%rsp)
  movq   $0x0,0x1e8(%rsp)
  movq   $0x0,0x1f0(%rsp)
  movq   $0x0,0x1f8(%rsp)
  movq   $0x0,0x200(%rsp)
  movq   $0x0,0x208(%rsp)
  movq   $0x0,0x210(%rsp)
  movq   $0x0,0x218(%rsp)
  lea    D80(%rip),%rsi
  lea    D96(%rip),%rdi
  call   <fopen@plt>
  test   %rax,%rax
  je     L83
  mov    %rax,%rbx
  lea    0x20(%rsp),%rbp
  mov    %rax,%rdx
  mov    $0x100,%esi
  mov    %rbp,%rdi
  call   <fgets@plt>
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %rax,0x8(%rsp)
  cmpb   $0xa,0x1f(%rsp,%rax,1)
  je     L52
L65:
  mov    %rbx,%rdi
  call   <fclose@plt>
  lea    D94(%rip),%rsi
  lea    D27(%rip),%rdi
  call   <iconv_open@plt>
  mov    %rax,%rbx
  cmp    $0xffffffffffffffff,%rax
  je     L5
L31:
  lea    0x20(%rsp),%rdi
  mov    %rdi,(%rsp)
  call   <strlen@plt>
  mov    %rax,0x8(%rsp)
  movq   $0x100,0x10(%rsp)
  lea    0x120(%rsp),%rax
  mov    %rax,0x18(%rsp)
  lea    0x18(%rsp),%rcx
  lea    0x8(%rsp),%rdx
  mov    %rsp,%rsi
  lea    0x10(%rsp),%r8
  mov    %rbx,%rdi
  call   <iconv@plt>
  cmp    $0xffffffffffffffff,%rax
  je     L11
  mov    %rbx,%rdi
  call   <iconv_close@plt>
  lea    D88(%rip),%rsi
  lea    D6(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,%rbx
  lea    0x120(%rsp),%rdi
  mov    %rax,%rsi
  call   <fputs@plt>
  mov    %rbx,%rdi
  call   <fclose@plt>
  mov    $0x0,%eax
L21:
  mov    0x228(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L45
  add    $0x238,%rsp
  pop    %rbx
  pop    %rbp
  ret
L83:
  lea    D46(%rip),%rdi
  call   <printf@plt>
  mov    $0xffffffff,%eax
  jmp    L21
L52:
  movb   $0x0,0x1f(%rsp,%rax,1)
  jmp    L65
L5:
  lea    D10(%rip),%rdi
  call   <printf@plt>
  jmp    L31
L11:
  lea    D56(%rip),%rdi
  call   <printf@plt>
  lea    D23(%rip),%rdi
  call   <perror@plt>
  mov    $0xfffffffd,%eax
  jmp    L21
L45:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D80
type: string
name: extract_symbolic_data
arguments: data_label: D96
type: string
name: extract_symbolic_data
arguments: data_label: D94
type: string
name: extract_symbolic_data
arguments: data_label: D27
type: string
name: extract_symbolic_data
arguments: data_label: D88
type: string
name: extract_symbolic_data
arguments: data_label: D6
type: string
name: extract_symbolic_data
arguments: data_label: D46
type: string
name: extract_symbolic_data
arguments: data_label: D10
type: string
name: extract_symbolic_data
arguments: data_label: D56
type: string
name: extract_symbolic_data
arguments: data_label: D23
type: string

tool: D80: r

tool: D96: test1.txt

tool: D94: utf-8

tool: D27: Shift_JIS

tool: D88: w

tool: D6: test2.txt

tool: D46: fopen error!


tool: D10: iconv_open error!


tool: D56: iconv error!


tool: D23: iconv error detail

assistant: ```c
int main(void) {
  FILE *fp = NULL;
  char buf[256] = {0};
  char *buf_ptr;
  size_t len;
  iconv_t iconv_dsc;
  char buf2[256] = {0};
  size_t len2;
  char *buf2_ptr;
  size_t ret_len;
  fp = fopen("test1.txt", "r");
  if (fp == NULL) {
    printf("fopen error!\n");
    return -1;
  }
  fgets(buf, 256, fp);
  len = strlen(buf);
  if (buf[len - 1] == '\n') {
    buf[len - 1] = '\0';
  }
  fclose(fp);
  iconv_dsc = iconv_open("Shift_JIS", "utf-8");
  if (iconv_dsc == (iconv_t)-1) {
    printf("iconv_open error!\n");
  }
  buf_ptr = buf;
  len = strlen(buf);
  len2 = sizeof(buf2);
  buf2_ptr = buf2;
  ret_len = iconv(iconv_dsc, &buf_ptr, &len, &buf2_ptr, &len2);
  if (ret_len == -1) {
    printf("iconv error!\n");
    perror("iconv error detail");
    return -3;
  }
  iconv_close(iconv_dsc);
  fp = fopen("test2.txt", "w");
  fputs(buf2, fp);
  fclose(fp);
  return 0;
}
```