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

```asm
<iconvConvert>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x30,%rsp
  mov    %rdi,%r14
  mov    %rsi,%r12
  mov    %edx,%ebx
  mov    %rcx,%rbp
  mov    %r8d,%r13d
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  test   %rsi,%rsi
  je     L83
L21:
  test   %ebx,%ebx
  js     L73
L84:
  test   %rbp,%rbp
  je     L60
L98:
  cmp    %r13d,%ebx
  jge    L64
L77:
  movb   $0x0,0x0(%rbp)
  cmp    $0xffffffffffffffff,%r14
  je     L67
  mov    %r12,0x18(%rsp)
  mov    %rbp,0x20(%rsp)
  movslq %ebx,%rbx
  mov    %rbx,0x8(%rsp)
  movslq %r13d,%rax
  mov    %rax,0x10(%rsp)
  lea    0x20(%rsp),%rcx
  lea    0x8(%rsp),%rdx
  lea    0x18(%rsp),%rsi
  lea    0x10(%rsp),%r8
  mov    %r14,%rdi
  call   <iconv@plt>
  mov    %eax,%edx
  mov    $0xffffffff,%eax
  test   %edx,%edx
  js     L39
  cmpq   $0x0,0x8(%rsp)
  jne    L39
  mov    %r13d,%eax
  sub    0x10(%rsp),%eax
  movslq %eax,%rdx
  movb   $0x0,0x0(%rbp,%rdx,1)
  jmp    L39
L83:
  lea    D22(%rip),%rdx
  mov    $0x7a,%esi
  lea    D4(%rip),%rdi
  call   <utfError@plt>
  jmp    L21
L73:
  lea    D74(%rip),%rdx
  mov    $0x7b,%esi
  lea    D4(%rip),%rdi
  call   <utfError@plt>
  jmp    L84
L60:
  lea    D26(%rip),%rdx
  mov    $0x7c,%esi
  lea    D4(%rip),%rdi
  call   <utfError@plt>
  jmp    L98
L64:
  lea    D73(%rip),%rdx
  mov    $0x7d,%esi
  lea    D4(%rip),%rdi
  call   <utfError@plt>
  jmp    L77
L67:
  mov    %ebx,%edx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <memcpy@plt>
  movslq %ebx,%rax
  movb   $0x0,0x0(%rbp,%rax,1)
  mov    %ebx,%eax
L39:
  mov    0x28(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L7
  add    $0x30,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L7:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D22
type_guessed: string
name: disassemble_data
arguments: label: D4
type_guessed: string
name: disassemble_data
arguments: label: D74
type_guessed: string
name: disassemble_data
arguments: label: D26
type_guessed: string
name: disassemble_data
arguments: label: D73
type_guessed: string

tool: D22: ASSERT ERROR bytes

tool: D4: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/34benma/openjdk/refs/heads/jaklin-master/jdk/src/java.instrument/unix/native/libinstrument/EncodingSupport_md.c

tool: D74: ASSERT ERROR len>=0

tool: D26: ASSERT ERROR output

tool: D73: ASSERT ERROR outputMaxLen>len

assistant: ```c
int iconvConvert(iconv_t ic, char *bytes, int len, char *output, int outputMaxLen) {
  int outputLen = 0;
  ((bytes) == 0 ? utfError("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/34benma/openjdk/refs/heads/jaklin-master/jdk/src/java.instrument/unix/native/libinstrument/EncodingSupport_md.c", 122,
                           "ASSERT ERROR "
                           "bytes")
                : (void)0);
  ((len >= 0) == 0 ? utfError("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/34benma/openjdk/refs/heads/jaklin-master/jdk/src/java.instrument/unix/native/libinstrument/EncodingSupport_md.c", 123,
                              "ASSERT ERROR "
                              "len>=0")
                   : (void)0);
  ((output) == 0 ? utfError("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/34benma/openjdk/refs/heads/jaklin-master/jdk/src/java.instrument/unix/native/libinstrument/EncodingSupport_md.c", 124,
                            "ASSERT ERROR "
                            "output")
                 : (void)0);
  ((outputMaxLen > len) == 0 ? utfError("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/34benma/openjdk/refs/heads/jaklin-master/jdk/src/java.instrument/unix/native/libinstrument/EncodingSupport_md.c", 125,
                                        "ASSERT ERROR "
                                        "outputMaxLen>len")
                             : (void)0);
  output[0] = 0;
  outputLen = 0;
  if (ic != (iconv_t)-1) {
    int returnValue;
    size_t inLeft;
    size_t outLeft;
    char *inbuf;
    char *outbuf;
    inbuf = bytes;
    outbuf = output;
    inLeft = len;
    outLeft = outputMaxLen;
    returnValue = iconv(ic, (void *)&inbuf, &inLeft, &outbuf, &outLeft);
    if (returnValue >= 0 && inLeft == 0) {
      outputLen = outputMaxLen - outLeft;
      output[outputLen] = 0;
      return outputLen;
    }
    return -1;
  }
  outputLen = len;
  (void)memcpy(output, bytes, len);
  output[len] = 0;
  return outputLen;
}
```