user: Please show me the C implementation that matches the assembly code listed below:

```asm
<Sfile_off_t_text>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %edx,-0x30(%rbp)
  movl   $0x1,-0x18(%rbp)
  movl   $0x0,-0x10(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x2c(%rbp),%eax
  mov    %eax,-0x1c(%rbp)
  cmpl   $0x0,-0x1c(%rbp)
  jns    L85
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  movb   $0x2d,(%rax)
  mov    -0x2c(%rbp),%eax
  neg    %eax
  mov    %eax,-0x1c(%rbp)
L85:
  cmpl   $0x0,-0x1c(%rbp)
  jns    L15
  mov    -0x28(%rbp),%rax
  lea    D0(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    $0x0,%eax
  jmp    L68
L15:
  movl   $0x0,-0x14(%rbp)
  jmp    L127
L95:
  cmpl   $0x0,-0x1c(%rbp)
  je     L50
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x2,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x1c(%rbp)
  cmpl   $0x0,-0x1c(%rbp)
  je     L102
  mov    -0x18(%rbp),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,-0x18(%rbp)
L102:
  addl   $0x1,-0x14(%rbp)
L127:
  cmpl   $0x16,-0x14(%rbp)
  jle    L95
  jmp    L54
L50:
  nop
L54:
  cmpl   $0x0,-0x14(%rbp)
  jne    L104
  mov    -0x28(%rbp),%rax
  lea    D19(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    $0x1,%eax
  jmp    L68
L104:
  cmpl   $0x17,-0x14(%rbp)
  jne    L5
  mov    -0x28(%rbp),%rax
  lea    D0(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    $0x0,%eax
  jmp    L68
L5:
  mov    -0x14(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x2c(%rbp),%eax
  mov    %eax,-0x1c(%rbp)
  jmp    L89
L36:
  mov    -0x1c(%rbp),%eax
  cltd
  idivl  -0x18(%rbp)
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  lea    0x30(%rax),%ecx
  mov    -0x10(%rbp),%eax
  sub    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x1c(%rbp),%eax
  cltd
  idivl  -0x18(%rbp)
  mov    %edx,-0x1c(%rbp)
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x2,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x18(%rbp)
  subl   $0x1,-0x14(%rbp)
L89:
  cmpl   $0x0,-0x14(%rbp)
  jg     L36
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    $0x1,%eax
L68:
  leave
  ret
```

tool_calls: name: parse_data
arguments: label: D0
data_type: string
name: parse_data
arguments: label: D19
data_type: string

tool: D0: _overflow_

tool: D19: 0

assistant: ```c
int Sfile_off_t_text(char text[80], off_t num, int flag) {
  char *tpt;
  off_t hnum, scale = 1;
  int digits = 0, d, i;
  tpt = text;
  hnum = num;
  if (hnum < 0) {
    *(tpt++) = '-';
    hnum = -num;
  }
  if (hnum < 0) {
    strcpy(text, "_overflow_");
    return (0);
  }
  for (i = 0; i < 23; i++) {
    if (hnum == 0)
      break;
    hnum /= 10;
    if (hnum)
      scale *= 10;
  }
  if (i == 0) {
    strcpy(text, "0");
    return (1);
  }
  if (i == 23) {
    strcpy(text, "_overflow_");
    return (0);
  }
  digits = i;
  hnum = num;
  for (; i > 0; i--) {
    d = hnum / scale;
    tpt[digits - i] = '0' + d;
    hnum = hnum % scale;
    scale /= 10;
  }
  tpt[digits] = 0;
  return (1);
}
```