user: Translate the below assembly code into C programming language:

```asm
<_extractCGIdata>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%r13
  mov    %rsi,%rbp
  mov    %rdx,%r15
  mov    %rcx,%r14
  test   %rsi,%rsi
  sete   %al
  test   %rdx,%rdx
  sete   %dl
  or     %dl,%al
  jne    L53
  test   %rdi,%rdi
  jne    L92
L53:
  lea    D25(%rip),%rdi
  call   <print_exit_failure@plt>
L92:
  mov    %rbp,%rdi
  call   <strlen@plt>
  lea    0x2(%rax),%edi
  mov    $0x1,%esi
  call   <calloc@plt>
  mov    %rax,%rbx
  mov    %r13,%rdi
  call   <strlen@plt>
  lea    0x1(%rax),%edi
  mov    $0x1,%esi
  call   <calloc@plt>
  mov    %rax,%r12
  test   %rbx,%rbx
  je     L1
  test   %rax,%rax
  je     L1
L22:
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <strcpy@plt>
  lea    D24(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcat@plt>
  mov    %r13,%rsi
  mov    %r12,%rdi
  call   <strcpy@plt>
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <strstr@plt>
  mov    %rax,%rdi
  test   %rax,%rax
  je     L12
  mov    %r15,%rsi
  call   <strtok@plt>
  mov    %rax,%rbp
  mov    %rbx,%rdi
  call   <strlen@plt>
  cltq
  add    %rax,%rbp
  je     L57
L54:
  mov    $0xa,%esi
  mov    %rbp,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L111
  movb   $0x0,(%rax)
L111:
  mov    %rbp,%rdi
  call   <strlen@plt>
  lea    0x1(%rax),%edi
  mov    $0x1,%esi
  call   <calloc@plt>
  mov    %rax,(%r14)
  test   %rax,%rax
  je     L20
L116:
  mov    %rbp,%rsi
  mov    (%r14),%rdi
  call   <strcpy@plt>
  mov    %rbx,%rdi
  call   <free@plt>
  mov    %r12,%rdi
  call   <free@plt>
  mov    $0x0,%eax
L105:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L1:
  lea    D46(%rip),%rdi
  call   <print_exit_failure@plt>
  jmp    L22
L57:
  lea    D27(%rip),%rdi
  call   <print_exit_failure@plt>
  jmp    L54
L20:
  lea    D46(%rip),%rdi
  call   <print_exit_failure@plt>
  jmp    L116
L12:
  mov    $0xffffffff,%eax
  jmp    L105
```

tool_calls: name: parse_data
arguments: data_tag: D25
data_type: string
name: parse_data
arguments: data_tag: D24
data_type: string
name: parse_data
arguments: data_tag: D46
data_type: string
name: parse_data
arguments: data_tag: D27
data_type: string

tool: D25: Eingabeparameter von extractCGIdata sind falsch

tool: D24: =

tool: D46: Es konnte kein Speicher angefordert werden

tool: D27: 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;
}
```