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

```asm
<ptGetFileContentFormat>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xe0,%rsp
  mov    %rdi,-0xd8(%rbp)
  mov    %rsi,-0xa8(%rbp)
  mov    %rdx,-0xa0(%rbp)
  mov    %rcx,-0x98(%rbp)
  mov    %r8,-0x90(%rbp)
  mov    %r9,-0x88(%rbp)
  test   %al,%al
  je     L98
  movaps %xmm0,-0x80(%rbp)
  movaps %xmm1,-0x70(%rbp)
  movaps %xmm2,-0x60(%rbp)
  movaps %xmm3,-0x50(%rbp)
  movaps %xmm4,-0x40(%rbp)
  movaps %xmm5,-0x30(%rbp)
  movaps %xmm6,-0x20(%rbp)
  movaps %xmm7,-0x10(%rbp)
L98:
  movq   $0x0,-0xc0(%rbp)
  cmpq   $0x0,-0xd8(%rbp)
  jne    L79
  mov    D32(%rip),%rax
  mov    (%rax),%edx
  mov    D35(%rip),%rax
  mov    %edx,(%rax)
  mov    $0x0,%eax
  jmp    L35
L79:
  mov    -0xd8(%rbp),%rdx
  mov    -0xcc(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <va_start@plt>
  mov    -0xcc(%rbp),%edx
  mov    -0xc8(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <va_copy@plt>
  mov    -0xc8(%rbp),%edx
  mov    -0xd8(%rbp),%rax
  mov    %edx,%ecx
  mov    %rax,%rdx
  mov    $0x0,%esi
  mov    $0x0,%edi
  call   <vsnprintf@plt>
  add    $0x1,%rax
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,-0xb8(%rbp)
  cmpq   $0x0,-0xb8(%rbp)
  jne    L73
  mov    -0xcc(%rbp),%eax
  mov    %eax,%edi
  call   <va_end@plt>
  mov    -0xc8(%rbp),%eax
  mov    %eax,%edi
  call   <va_end@plt>
  mov    D22(%rip),%rax
  mov    (%rax),%edx
  mov    D35(%rip),%rax
  mov    %edx,(%rax)
  mov    $0x0,%eax
  jmp    L35
L73:
  mov    -0xcc(%rbp),%edx
  mov    -0xd8(%rbp),%rcx
  mov    -0xb8(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <vsprintf@plt>
  mov    -0xcc(%rbp),%eax
  mov    %eax,%edi
  call   <va_end@plt>
  mov    -0xc8(%rbp),%eax
  mov    %eax,%edi
  call   <va_end@plt>
  mov    D27(%rip),%rax
  mov    (%rax),%edx
  mov    -0xb8(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <open@plt>
  mov    %eax,-0xc4(%rbp)
  cmpl   $0xffffffff,-0xc4(%rbp)
  jne    L7
  mov    -0xb8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
  jmp    L35
L7:
  mov    -0xc4(%rbp),%eax
  mov    %eax,%edi
  call   <ptGetFileContent@plt>
  mov    %rax,-0xc0(%rbp)
  cmpq   $0x0,-0xc0(%rbp)
  jne    L88
  mov    -0xb8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0xc4(%rbp),%eax
  mov    %eax,%edi
  call   <close@plt>
  mov    $0x0,%eax
  jmp    L35
L88:
  mov    -0xc4(%rbp),%eax
  mov    %eax,%edi
  call   <close@plt>
  cmp    $0xffffffff,%eax
  jne    L0
  mov    -0xb8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0xc0(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
  jmp    L35
L0:
  mov    -0xb8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0xc0(%rbp),%rax
L35:
  leave
  ret
```

assistant: ```c
char *ptGetFileContentFormat(const char *format, ...) {
  char *content = NULL;
  if (!format) {
    errno = EINVAL;
    return NULL;
  }
  va_list ap, apn;
  va_start(ap, format);
  va_copy(apn, ap);
  char *path = (char *)malloc(vsnprintf(NULL, 0, format, apn) + 1);
  if (!path) {
    va_end(ap);
    va_end(apn);
    errno = ENOMEM;
    return NULL;
  }
  vsprintf(path, format, ap);
  va_end(ap);
  va_end(apn);
  int fn = open(path, O_RDONLY);
  if (fn == -1) {
    free(path);
    return NULL;
  }
  content = ptGetFileContent(fn);
  if (content == NULL) {
    free(path);
    close(fn);
    return NULL;
  }
  if (-1 == close(fn)) {
    free(path);
    free(content);
    return NULL;
  }
  free(path);
  return content;
}
```