user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<de_ascii_1050_header>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %rdx,-0x48(%rbp)
  mov    %rcx,-0x50(%rbp)
  mov    -0x40(%rbp),%rax
  lea    0x30(%rax),%r13
  mov    -0x40(%rbp),%rax
  lea    0x2c(%rax),%r12
  mov    -0x40(%rbp),%rax
  lea    0x28(%rax),%rbx
  mov    -0x40(%rbp),%rax
  lea    0x24(%rax),%r11
  mov    -0x40(%rbp),%rax
  lea    0x20(%rax),%r10
  mov    -0x40(%rbp),%rax
  lea    0x1c(%rax),%r9
  mov    -0x40(%rbp),%rax
  lea    0x18(%rax),%r8
  mov    -0x40(%rbp),%rax
  lea    0x14(%rax),%rdi
  mov    -0x40(%rbp),%rax
  lea    0x10(%rax),%rsi
  mov    -0x40(%rbp),%rax
  lea    0xc(%rax),%r15
  mov    -0x40(%rbp),%rax
  lea    0x8(%rax),%r14
  mov    -0x40(%rbp),%rax
  lea    0x4(%rax),%rcx
  mov    -0x40(%rbp),%rdx
  mov    -0x38(%rbp),%rax
  sub    $0x8,%rsp
  push   %r13
  push   %r12
  push   %rbx
  push   %r11
  push   %r10
  push   %r9
  push   %r8
  push   %rdi
  push   %rsi
  mov    %r15,%r9
  mov    %r14,%r8
  lea    D10(%rip),%rsi
  mov    %rax,%rdi
  call   <fscanf@plt>
  add    $0x50,%rsp
  cmp    $0xd,%eax
  je     L6
  mov    $0xffffffff,%eax
  jmp    L8
L6:
  mov    -0x48(%rbp),%rax
  lea    0x30(%rax),%r13
  mov    -0x48(%rbp),%rax
  lea    0x2c(%rax),%r12
  mov    -0x48(%rbp),%rax
  lea    0x28(%rax),%rbx
  mov    -0x48(%rbp),%rax
  lea    0x24(%rax),%r11
  mov    -0x48(%rbp),%rax
  lea    0x20(%rax),%r10
  mov    -0x48(%rbp),%rax
  lea    0x1c(%rax),%r9
  mov    -0x48(%rbp),%rax
  lea    0x18(%rax),%r8
  mov    -0x48(%rbp),%rax
  lea    0x14(%rax),%rdi
  mov    -0x48(%rbp),%rax
  lea    0x10(%rax),%rsi
  mov    -0x48(%rbp),%rax
  lea    0xc(%rax),%r15
  mov    -0x48(%rbp),%rax
  lea    0x8(%rax),%r14
  mov    -0x48(%rbp),%rax
  lea    0x4(%rax),%rcx
  mov    -0x48(%rbp),%rdx
  mov    -0x38(%rbp),%rax
  sub    $0x8,%rsp
  push   %r13
  push   %r12
  push   %rbx
  push   %r11
  push   %r10
  push   %r9
  push   %r8
  push   %rdi
  push   %rsi
  mov    %r15,%r9
  mov    %r14,%r8
  lea    D10(%rip),%rsi
  mov    %rax,%rdi
  call   <fscanf@plt>
  add    $0x50,%rsp
  cmp    $0xd,%eax
  je     L58
  mov    $0xffffffff,%eax
  jmp    L8
L58:
  mov    -0x50(%rbp),%rax
  lea    0x30(%rax),%r13
  mov    -0x50(%rbp),%rax
  lea    0x2c(%rax),%r12
  mov    -0x50(%rbp),%rax
  lea    0x28(%rax),%rbx
  mov    -0x50(%rbp),%rax
  lea    0x24(%rax),%r11
  mov    -0x50(%rbp),%rax
  lea    0x20(%rax),%r10
  mov    -0x50(%rbp),%rax
  lea    0x1c(%rax),%r9
  mov    -0x50(%rbp),%rax
  lea    0x18(%rax),%r8
  mov    -0x50(%rbp),%rax
  lea    0x14(%rax),%rdi
  mov    -0x50(%rbp),%rax
  lea    0x10(%rax),%rsi
  mov    -0x50(%rbp),%rax
  lea    0xc(%rax),%r15
  mov    -0x50(%rbp),%rax
  lea    0x8(%rax),%r14
  mov    -0x50(%rbp),%rax
  lea    0x4(%rax),%rcx
  mov    -0x50(%rbp),%rdx
  mov    -0x38(%rbp),%rax
  sub    $0x8,%rsp
  push   %r13
  push   %r12
  push   %rbx
  push   %r11
  push   %r10
  push   %r9
  push   %r8
  push   %rdi
  push   %rsi
  mov    %r15,%r9
  mov    %r14,%r8
  lea    D10(%rip),%rsi
  mov    %rax,%rdi
  call   <fscanf@plt>
  add    $0x50,%rsp
  cmp    $0xd,%eax
  je     L35
  mov    $0xffffffff,%eax
  jmp    L8
L35:
  mov    $0x0,%eax
L8:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D10
datatype: string

tool: D10: %d %d %d %d %d %d %d %d %d %d %d %d %d


assistant: ```c
int de_ascii_1050_header(FILE *f, int offs[13], int cooef[13], int sets[13]) {
  if (fscanf(f, "%d %d %d %d %d %d %d %d %d %d %d %d %d\n", offs, offs + 1, offs + 2, offs + 3, offs + 4, offs + 5, offs + 6, offs + 7, offs + 8, offs + 9, offs + 10, offs + 11, offs + 12) != 13) {
    return -1;
  }
  if (fscanf(f, "%d %d %d %d %d %d %d %d %d %d %d %d %d\n", cooef, cooef + 1, cooef + 2, cooef + 3, cooef + 4, cooef + 5, cooef + 6, cooef + 7, cooef + 8, cooef + 9, cooef + 10, cooef + 11, cooef + 12) != 13) {
    return -1;
  }
  if (fscanf(f, "%d %d %d %d %d %d %d %d %d %d %d %d %d\n", sets, sets + 1, sets + 2, sets + 3, sets + 4, sets + 5, sets + 6, sets + 7, sets + 8, sets + 9, sets + 10, sets + 11, sets + 12) != 13) {
    return -1;
  }
  return 0;
}
```