user: 请将以下的汇编代码转换成C语言代码:

```asm
<_extractCGIdata>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %rdx,-0x58(%rbp)
  mov    %rcx,-0x60(%rbp)
  cmpq   $0x0,-0x48(%rbp)
  je     L20
  cmpq   $0x0,-0x50(%rbp)
  je     L20
  cmpq   $0x0,-0x58(%rbp)
  jne    L91
L20:
  lea    D42(%rip),%rax
  mov    %rax,%rdi
  call   <print_exit_failure@plt>
L91:
  movq   $0x0,-0x38(%rbp)
  mov    -0x50(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  add    $0x2,%eax
  mov    $0x1,%esi
  mov    %eax,%edi
  call   <calloc@plt>
  mov    %rax,-0x38(%rbp)
  movq   $0x0,-0x30(%rbp)
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  add    $0x1,%eax
  mov    $0x1,%esi
  mov    %eax,%edi
  call   <calloc@plt>
  mov    %rax,-0x30(%rbp)
  cmpq   $0x0,-0x38(%rbp)
  je     L13
  cmpq   $0x0,-0x30(%rbp)
  jne    L97
L13:
  lea    D4(%rip),%rax
  mov    %rax,%rdi
  call   <print_exit_failure@plt>
L97:
  mov    -0x50(%rbp),%rdx
  mov    -0x38(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    -0x38(%rbp),%rax
  lea    D41(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  mov    -0x48(%rbp),%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  movq   $0x0,-0x28(%rbp)
  mov    -0x38(%rbp),%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strstr@plt>
  mov    %rax,-0x28(%rbp)
  cmpq   $0x0,-0x28(%rbp)
  jne    L53
  mov    $0xffffffff,%eax
  jmp    L94
L53:
  movq   $0x0,-0x20(%rbp)
  mov    -0x58(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strtok@plt>
  mov    %rax,%rbx
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cltq
  add    %rbx,%rax
  mov    %rax,-0x20(%rbp)
  cmpq   $0x0,-0x20(%rbp)
  jne    L4
  lea    D36(%rip),%rax
  mov    %rax,%rdi
  call   <print_exit_failure@plt>
L4:
  mov    -0x20(%rbp),%rax
  mov    $0xa,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0x18(%rbp)
  cmpq   $0x0,-0x18(%rbp)
  je     L51
  mov    -0x18(%rbp),%rax
  movb   $0x0,(%rax)
L51:
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  add    $0x1,%eax
  mov    $0x1,%esi
  mov    %eax,%edi
  call   <calloc@plt>
  mov    -0x60(%rbp),%rdx
  mov    %rax,(%rdx)
  mov    -0x60(%rbp),%rax
  mov    (%rax),%rax
  test   %rax,%rax
  jne    L64
  lea    D4(%rip),%rax
  mov    %rax,%rdi
  call   <print_exit_failure@plt>
L64:
  mov    -0x60(%rbp),%rax
  mov    (%rax),%rax
  mov    -0x20(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
L94:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: parse_data
arguments: label: D42
datatype: string
name: parse_data
arguments: label: D4
datatype: string
name: parse_data
arguments: label: D41
datatype: string
name: parse_data
arguments: label: D36
datatype: string

tool: D42: Eingabeparameter von extractCGIdata sind falsch

tool: D4: Es konnte kein Speicher angefordert werden

tool: D41: =

tool: D36: Token nicht gefunden

assistant: ```c
int _extractCGIdata(char *data, const char *property, char *delim, char **out) {
  if (data == NULL || property == NULL || delim == NULL) {
    print_exit_failure("Eingabeparameter von extractCGIdata sind falsch");
  }
  char *prop = NULL;
  prop = (char *)calloc(strlen(property) + 1 + 1, sizeof(char));
  char *tempData = NULL;
  tempData = (char *)calloc(strlen(data) + 1, sizeof(char));
  if (prop == NULL || tempData == NULL) {
    print_exit_failure("Es konnte kein Speicher angefordert werden");
  }
  strcpy(prop, property);
  strcat(prop, "=");
  strcpy(tempData, data);
  char *start = NULL;
  start = strstr(tempData, prop);
  if (start == NULL) {
    return -1;
  }
  char *klaus = NULL;
  klaus = strtok(start, delim) + strlen(prop);
  if (klaus == NULL) {
    print_exit_failure("Token nicht gefunden");
  }
  char *newline = strchr(klaus, '\n');
  if (newline != NULL) {
    *newline = '\0';
  }
  *out = calloc(strlen(klaus) + 1, sizeof(char));
  if (*out == NULL) {
    print_exit_failure("Es konnte kein Speicher angefordert werden");
  }
  strcpy(*out, klaus);
  free(prop);
  free(tempData);
  return 0;
}
```