user: Demonstrate the C code that generates the assembly output below:

```asm
<get_file_duration>:
  endbr64
  push   %rbx
  sub    $0x210,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x208(%rsp)
  xor    %eax,%eax
  movq   $0x0,(%rsp)
  movq   $0x0,0x8(%rsp)
  movq   $0x0,0x10(%rsp)
  movq   $0x0,0x18(%rsp)
  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)
  test   %rdi,%rdi
  je     L16
  mov    %rdi,%rdx
  mov    %rsp,%rbx
  lea    D19(%rip),%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  lea    0x100(%rsp),%rsi
  mov    $0x100,%edx
  mov    %rbx,%rdi
  call   <get_shell_stdout@plt>
  test   %eax,%eax
  js     L33
  lea    0x100(%rsp),%rdi
  mov    $0x0,%esi
  call   <strtof@plt>
  mov    %eax,%ebx
  mov    %eax,%esi
  lea    D10(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L10:
  mov    0x208(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L39
  mov    %ebx,%eax
  add    $0x210,%rsp
  pop    %rbx
  ret
L33:
  lea    D7(%rip),%rdi
  call   <puts@plt>
  mov    $0xfffffffe,%ebx
  jmp    L10
L16:
  mov    $0xffffffff,%ebx
  jmp    L10
L39:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D19
type_infered: string
name: parse_data
arguments: data_label: D10
type_infered: string
name: parse_data
arguments: data_label: D7
type_infered: string

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

tool: D10: %d


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

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;
}
```