user: 这段汇编代码用C语言表示是什么样的？

```asm
<get_file_duration>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x230,%rsp
  mov    %rdi,-0x228(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x218(%rbp)
  movl   $0x0,-0x214(%rbp)
  movq   $0x0,-0x210(%rbp)
  movq   $0x0,-0x208(%rbp)
  movq   $0x0,-0x200(%rbp)
  movq   $0x0,-0x1f8(%rbp)
  movq   $0x0,-0x1f0(%rbp)
  movq   $0x0,-0x1e8(%rbp)
  movq   $0x0,-0x1e0(%rbp)
  movq   $0x0,-0x1d8(%rbp)
  movq   $0x0,-0x1d0(%rbp)
  movq   $0x0,-0x1c8(%rbp)
  movq   $0x0,-0x1c0(%rbp)
  movq   $0x0,-0x1b8(%rbp)
  movq   $0x0,-0x1b0(%rbp)
  movq   $0x0,-0x1a8(%rbp)
  movq   $0x0,-0x1a0(%rbp)
  movq   $0x0,-0x198(%rbp)
  movq   $0x0,-0x190(%rbp)
  movq   $0x0,-0x188(%rbp)
  movq   $0x0,-0x180(%rbp)
  movq   $0x0,-0x178(%rbp)
  movq   $0x0,-0x170(%rbp)
  movq   $0x0,-0x168(%rbp)
  movq   $0x0,-0x160(%rbp)
  movq   $0x0,-0x158(%rbp)
  movq   $0x0,-0x150(%rbp)
  movq   $0x0,-0x148(%rbp)
  movq   $0x0,-0x140(%rbp)
  movq   $0x0,-0x138(%rbp)
  movq   $0x0,-0x130(%rbp)
  movq   $0x0,-0x128(%rbp)
  movq   $0x0,-0x120(%rbp)
  movq   $0x0,-0x118(%rbp)
  movq   $0x0,-0x110(%rbp)
  movq   $0x0,-0x108(%rbp)
  movq   $0x0,-0x100(%rbp)
  movq   $0x0,-0xf8(%rbp)
  movq   $0x0,-0xf0(%rbp)
  movq   $0x0,-0xe8(%rbp)
  movq   $0x0,-0xe0(%rbp)
  movq   $0x0,-0xd8(%rbp)
  movq   $0x0,-0xd0(%rbp)
  movq   $0x0,-0xc8(%rbp)
  movq   $0x0,-0xc0(%rbp)
  movq   $0x0,-0xb8(%rbp)
  movq   $0x0,-0xb0(%rbp)
  movq   $0x0,-0xa8(%rbp)
  movq   $0x0,-0xa0(%rbp)
  movq   $0x0,-0x98(%rbp)
  movq   $0x0,-0x90(%rbp)
  movq   $0x0,-0x88(%rbp)
  movq   $0x0,-0x80(%rbp)
  movq   $0x0,-0x78(%rbp)
  movq   $0x0,-0x70(%rbp)
  movq   $0x0,-0x68(%rbp)
  movq   $0x0,-0x60(%rbp)
  movq   $0x0,-0x58(%rbp)
  movq   $0x0,-0x50(%rbp)
  movq   $0x0,-0x48(%rbp)
  movq   $0x0,-0x40(%rbp)
  movq   $0x0,-0x38(%rbp)
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x20(%rbp)
  movq   $0x0,-0x18(%rbp)
  cmpq   $0x0,-0x228(%rbp)
  jne    L43
  mov    $0xffffffff,%eax
  jmp    L7
L43:
  mov    -0x228(%rbp),%rdx
  lea    -0x210(%rbp),%rax
  lea    D20(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  lea    -0x110(%rbp),%rcx
  lea    -0x210(%rbp),%rax
  mov    $0x100,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <get_shell_stdout@plt>
  mov    %eax,-0x218(%rbp)
  cmpl   $0x0,-0x218(%rbp)
  jns    L19
  lea    D1(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0xfffffffe,%eax
  jmp    L7
L19:
  lea    -0x110(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <strtof@plt>
  mov    %eax,-0x214(%rbp)
  mov    -0x214(%rbp),%eax
  mov    %eax,%esi
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x214(%rbp),%eax
L7:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L17
  call   <__stack_chk_fail@plt>
L17:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: label: D20
data_type: string
name: unpack_data
arguments: label: D1
data_type: string
name: unpack_data
arguments: label: D17
data_type: string

tool: D20: ffprobe -i %s -show_format -v quiet | sed -n 's/duration=//p'

tool: D1: ###ERR: Exec Cmd Err.

tool: D17: %d


assistant: ```c
int get_file_duration(const char *file_name) {
  int ret = 0, i_duration = 0;
  char cmd[(256)] = {0}, str_duration[(256)] = {0};
  if (file_name == NULL)
    return -1;
  sprintf(cmd, "ffprobe -i %s -show_format -v quiet | sed -n \'s/duration=//p\'", file_name);
  ret = get_shell_stdout(cmd, str_duration, sizeof(str_duration));
  if (ret < 0) {
    printf("###ERR: Exec Cmd Err.\r\n");
    return -2;
  }
  i_duration = (int)strtof(str_duration, NULL);
  printf("%d\r\n", i_duration);
  return i_duration;
}
```