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

```asm
<dasdview_print_format2>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x70,%rsp
  mov    %edi,-0x54(%rbp)
  mov    %rsi,-0x60(%rbp)
  mov    %rdx,-0x68(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x44(%rbp)
  jmp    L58
L9:
  mov    -0x44(%rbp),%eax
  and    $0xfffffff8,%eax
  cmp    %eax,-0x44(%rbp)
  jne    L29
  mov    -0x44(%rbp),%edx
  mov    -0x68(%rbp),%rax
  add    %rax,%rdx
  mov    -0x44(%rbp),%ecx
  mov    -0x68(%rbp),%rax
  add    %rcx,%rax
  mov    %rax,%rsi
  lea    D23(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x44(%rbp),%edx
  mov    -0x60(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  lea    -0x40(%rbp),%rax
  mov    $0x8,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  mov    -0x44(%rbp),%edx
  mov    -0x60(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  lea    -0x20(%rbp),%rax
  mov    $0x8,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
L29:
  mov    -0x44(%rbp),%edx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%esi
  lea    D20(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x44(%rbp),%eax
  add    $0x1,%eax
  and    $0xfffffffc,%eax
  mov    %eax,%edx
  mov    -0x44(%rbp),%eax
  add    $0x1,%eax
  cmp    %eax,%edx
  jne    L25
  lea    D14(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L25:
  mov    -0x44(%rbp),%eax
  add    $0x1,%eax
  and    $0xfffffff8,%eax
  mov    %eax,%edx
  mov    -0x44(%rbp),%eax
  add    $0x1,%eax
  cmp    %eax,%edx
  jne    L39
  lea    -0x40(%rbp),%rcx
  lea    -0x40(%rbp),%rax
  mov    $0x8,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <vtoc_ebcdic_dec@plt>
  lea    -0x40(%rbp),%rax
  mov    %rax,%rdi
  call   <dot@plt>
  lea    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <dot@plt>
  lea    -0x20(%rbp),%rdx
  lea    -0x40(%rbp),%rax
  mov    %rax,%rsi
  lea    D39(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L39:
  addl   $0x1,-0x44(%rbp)
L58:
  mov    -0x44(%rbp),%eax
  cmp    -0x54(%rbp),%eax
  jb     L9
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L27
  call   <__stack_chk_fail@plt>
L27:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_label: D23
type_infered: string
name: parse_data
arguments: data_label: D20
type_infered: string
name: parse_data
arguments: data_label: D14
type_infered: string
name: parse_data
arguments: data_label: D39
type_infered: string

tool: D23: 
 | %13llu | %13llX |  

tool: D20: %02X

tool: D14:   

tool: D39: | %8.8s | %8.8s |

assistant: ```c
int dasdview_print_format2(unsigned int size, unsigned char *dumpstr, unsigned long long begin) {
  unsigned int i;
  char asc[17], ebc[17];
  for (i = 0; i < size; i++) {
    if ((i / 8) * 8 == i) {
      printf("\n | %13llu | %13llX |  ", begin + (unsigned long long)i, begin + (unsigned long long)i);
      strncpy(asc, (char *)dumpstr + i, 8);
      strncpy(ebc, (char *)dumpstr + i, 8);
    }
    printf("%02X", dumpstr[i]);
    if (((i + 1) / 4) * 4 == i + 1)
      printf("  ");
    if (((i + 1) / 8) * 8 == i + 1) {
      vtoc_ebcdic_dec(asc, asc, 8);
      dot(asc);
      dot(ebc);
      printf("| %8.8s | %8.8s |", asc, ebc);
    }
  }
  return 0;
}
```