user: 请从给定的汇编指令推导出C源代码:

```asm
<file_create>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  push   %rbx
  sub    $0x238,%rsp
  mov    %rsi,0x8(%rsp)
  lea    0x1c(%rsp),%rsi
  mov    %fs:0x28,%rax
  mov    %rax,0x228(%rsp)
  xor    %eax,%eax
  movl   $0x0,0x1c(%rsp)
  call   <parse_tex@plt>
  mov    %rax,(%rsp)
  test   %rax,%rax
  je     L154
  mov    0x1c(%rsp),%esi
  lea    D3(%rip),%rdi
  lea    0x20(%rsp),%rbp
  lea    D80(%rip),%r14
  call   <printf@plt>
  call   <fork@plt>
  test   %eax,%eax
  je     L81
L151:
  lea    0x18(%rsp),%r13
  mov    %r13,%rdi
  call   <wait@plt>
  call   <fork@plt>
  test   %eax,%eax
  je     L15
L159:
  mov    %r13,%rdi
  call   <wait@plt>
  mov    0x1c(%rsp),%ecx
  test   %ecx,%ecx
  jg     L34
  call   <fork@plt>
  test   %eax,%eax
  je     L173
L172:
  mov    %r13,%rdi
  call   <wait@plt>
  call   <fork@plt>
  test   %eax,%eax
  je     L188
L157:
  mov    %r13,%rdi
  mov    $0x1,%ebx
  lea    D41(%rip),%r15
  call   <wait@plt>
  jmp    L199
  xchg   %ax,%ax
L117:
  call   <fclose@plt>
  add    $0x1,%ebx
L199:
  mov    %ebx,%r8d
  mov    %r12,%rcx
  mov    %r15,%rdx
  mov    $0x200,%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <snprintf@plt>
  mov    %rbp,%rdi
  mov    %r14,%rsi
  call   <fopen@plt>
  mov    %rax,%rdi
  test   %rax,%rax
  jne    L117
  movl   $0x1,0x1c(%rsp)
  sub    $0x1,%ebx
  je     L75
  lea    D9(%rip),%r15
  lea    D119(%rip),%r14
  jmp    L57
  nopl   0x0(%rax)
L186:
  mov    %r13,%rdi
  call   <wait@plt>
  mov    0x1c(%rsp),%eax
  add    $0x1,%eax
  mov    %eax,0x1c(%rsp)
  cmp    %ebx,%eax
  jg     L75
L57:
  call   <fork@plt>
  test   %eax,%eax
  jne    L186
  mov    0x1c(%rsp),%r8d
  sub    $0x8,%rsp
  mov    %r12,%r9
  mov    %r12,%rcx
  mov    %r15,%rdx
  mov    $0x200,%esi
  mov    %rbp,%rdi
  push   %r8
  call   <snprintf@plt>
  xor    %r8d,%r8d
  mov    %rbp,%rcx
  mov    %r14,%rsi
  lea    D18(%rip),%rdx
  mov    %r14,%rdi
  call   <execl@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  pop    %rax
  pop    %rdx
  jmp    L186
  nop
L75:
  mov    0x8(%rsp),%rax
  mov    %ebx,(%rax)
L154:
  mov    0x228(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L208
  mov    (%rsp),%rax
  add    $0x238,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L34:
  call   <fork@plt>
  test   %eax,%eax
  je     L36
L27:
  mov    %r13,%rdi
  call   <wait@plt>
  call   <fork@plt>
  test   %eax,%eax
  jne    L172
L173:
  mov    %r12,%r8
  mov    %r12,%rcx
  mov    %rbp,%rdi
  mov    $0x200,%esi
  lea    D125(%rip),%rdx
  call   <snprintf@plt>
  lea    D119(%rip),%rdi
  xor    %r8d,%r8d
  mov    %rbp,%rcx
  mov    %rdi,%rsi
  lea    D18(%rip),%rdx
  call   <execl@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L172
  nop
L15:
  mov    %r12,%rcx
  mov    %rbp,%rdi
  mov    $0x200,%esi
  lea    D49(%rip),%rdx
  call   <snprintf@plt>
  lea    D119(%rip),%rdi
  xor    %r8d,%r8d
  mov    %rbp,%rcx
  mov    %rdi,%rsi
  lea    D18(%rip),%rdx
  call   <execl@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L159
  nopw   0x0(%rax,%rax,1)
L81:
  mov    %r12,%rcx
  lea    D185(%rip),%rdx
  mov    $0x200,%esi
  mov    %rbp,%rdi
  call   <snprintf@plt>
  nop
L143:
  mov    %r14,%rsi
  mov    %rbp,%rdi
  call   <fopen@plt>
  test   %rax,%rax
  je     L143
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L151
  nopw   0x0(%rax,%rax,1)
L188:
  mov    %r12,%r9
  mov    %r12,%rcx
  mov    %rbp,%rdi
  mov    $0x200,%esi
  lea    D150(%rip),%r8
  lea    D199(%rip),%rdx
  call   <snprintf@plt>
  lea    D119(%rip),%rdi
  xor    %r8d,%r8d
  mov    %rbp,%rcx
  mov    %rdi,%rsi
  lea    D18(%rip),%rdx
  call   <execl@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L157
  nopl   0x0(%rax)
L36:
  mov    %r12,%rcx
  mov    %rbp,%rdi
  mov    $0x200,%esi
  lea    D49(%rip),%rdx
  call   <snprintf@plt>
  lea    D119(%rip),%rdi
  xor    %r8d,%r8d
  mov    %rbp,%rcx
  mov    %rdi,%rsi
  lea    D18(%rip),%rdx
  call   <execl@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L27
L208:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D3
datatype: string
name: extract_symbolic_data
arguments: data_label: D80
datatype: string
name: extract_symbolic_data
arguments: data_label: D41
datatype: string
name: extract_symbolic_data
arguments: data_label: D9
datatype: string
name: extract_symbolic_data
arguments: data_label: D119
datatype: string
name: extract_symbolic_data
arguments: data_label: D18
datatype: string
name: extract_symbolic_data
arguments: data_label: D125
datatype: string
name: extract_symbolic_data
arguments: data_label: D49
datatype: string
name: extract_symbolic_data
arguments: data_label: D185
datatype: string
name: extract_symbolic_data
arguments: data_label: D150
datatype: string
name: extract_symbolic_data
arguments: data_label: D199
datatype: string

tool: D3: MAP found %d tags that require resolving references.


tool: D80: r+

tool: D41: %s-PREMAP%02d.pnm

tool: D9: /usr/bin/pnmcrop < %s-PREMAP%02d.pnm | /usr/bin/pnmpad -white -l20 -r20 -t20 -b20 | /usr/bin/pnmtopng > %s-PREMAP%02d.png

tool: D119: /bin/sh

tool: D18: -c

tool: D125: /usr/bin/dvips -t letter -f %s-PREMAP.dvi > %s-PREMAP.ps

tool: D49: /usr/bin/latex -interaction=batchmode %s-PREMAP.tex

tool: D185: %s-PREMAP.tex

tool: D150: %02d

tool: D199: /usr/bin/gs -q -dBATCH -dGraphicsAlphaBits=4 -dTextAlphaBits=4 -dNOPAUSE -sDEVICE=pnmraw -r100 -sOutputFile=%s-PREMAP%s.pnm %s-PREMAP.ps

assistant: ```c
struct href *file_create(char name[], int *p) {
  char tmp_name[512];
  pid_t child;
  int pages, status, relay = 0;
  FILE *CHECK;
  struct href *hhead;
  if ((hhead = parse_tex(name, &relay)) == NULL)
    return NULL;
  printf("MAP found %d tags that require resolving references.\n", relay);
  if ((child = fork()) == 0) {
    snprintf(tmp_name, 512, "%s-PREMAP.tex", name);
    while ((CHECK = fopen(tmp_name, "r+")) == NULL) {
    }
    fclose(CHECK);
    exit(1);
  }
  wait(&status);
  if ((child = fork()) == 0) {
    snprintf(tmp_name, 512, "/usr/bin/latex -interaction=batchmode %s-PREMAP.tex", name);
    execl("/bin/sh", "/bin/sh", "-c", tmp_name, NULL);
    exit(1);
  }
  wait(&status);
  if (relay > 0) {
    if ((child = fork()) == 0) {
      snprintf(tmp_name, 512, "/usr/bin/latex -interaction=batchmode %s-PREMAP.tex", name);
      execl("/bin/sh", "/bin/sh", "-c", tmp_name, NULL);
      exit(1);
    }
    wait(&status);
  }
  if ((child = fork()) == 0) {
    snprintf(tmp_name, 512, "/usr/bin/dvips -t letter -f %s-PREMAP.dvi > %s-PREMAP.ps", name, name);
    execl("/bin/sh", "/bin/sh", "-c", tmp_name, NULL);
    exit(1);
  }
  wait(&status);
  if ((child = fork()) == 0) {
    snprintf(tmp_name, 512, "/usr/bin/gs -q -dBATCH -dGraphicsAlphaBits=4 -dTextAlphaBits=4 -dNOPAUSE -sDEVICE=pnmraw -r100 -sOutputFile=%s-PREMAP%s.pnm %s-PREMAP.ps", name, "%02d", name);
    execl("/bin/sh", "/bin/sh", "-c", tmp_name, NULL);
    exit(1);
  }
  wait(&status);
  for (pages = 1;; pages++) {
    snprintf(tmp_name, 512, "%s-PREMAP%02d.pnm", name, pages);
    if ((CHECK = fopen(tmp_name, "r+")) != NULL) {
      fclose(CHECK);
    } else {
      pages -= 1;
      break;
    }
  }
  for (relay = 1; relay < (pages + 1); relay++) {
    if ((child = fork()) == 0) {
      snprintf(tmp_name, 512, "/usr/bin/pnmcrop < %s-PREMAP%02d.pnm | /usr/bin/pnmpad -white -l20 -r20 -t20 -b20 | /usr/bin/pnmtopng > %s-PREMAP%02d.png", name, relay, name, relay);
      execl("/bin/sh", "/bin/sh", "-c", tmp_name, NULL);
      exit(1);
    }
    wait(&status);
  }
  *p = pages;
  return hhead;
}
```