user: 这段汇编代码用C语言表示是什么样的：

```asm
<pisa_cert_get_part>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  movl   $0x0,-0x18(%rbp)
  movl   $0x0,-0x14(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  movq   $0x0,-0x8(%rbp)
  cmpq   $0x0,-0x38(%rbp)
  jne    L153
  mov    $0x0,%eax
  jmp    L261
L153:
  cmpq   $0x0,-0x28(%rbp)
  je     L169
  cmpq   $0x0,-0x30(%rbp)
  je     L142
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x14(%rbp)
  cmpl   $0x0,-0x14(%rbp)
  je     L38
  jmp    L16
L271:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x28,%al
  jne    L199
  addl   $0x1,-0x18(%rbp)
  cmpl   $0x2,-0x18(%rbp)
  jne    L199
  mov    -0x10(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    -0x14(%rbp),%edx
  mov    -0x30(%rbp),%rax
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L199
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  jne    L199
  mov    -0x10(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x10(%rbp)
  mov    %rax,-0x8(%rbp)
  jmp    L192
L199:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x29,%al
  jne    L190
  subl   $0x1,-0x18(%rbp)
L190:
  cmpl   $0x0,-0x18(%rbp)
  je     L39
  addq   $0x1,-0x10(%rbp)
L16:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L271
  jmp    L192
L39:
  nop
L192:
  cmpq   $0x0,-0x8(%rbp)
  je     L52
  movl   $0x0,-0x14(%rbp)
  jmp    L89
L235:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x28,%al
  jne    L86
  addl   $0x1,-0x18(%rbp)
L86:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x29,%al
  jne    L234
  subl   $0x1,-0x18(%rbp)
  cmpl   $0x1,-0x18(%rbp)
  jne    L234
  mov    -0x10(%rbp),%rax
  sub    -0x8(%rbp),%rax
  add    $0x1,%eax
  mov    %eax,-0x14(%rbp)
  jmp    L56
L234:
  cmpl   $0x0,-0x18(%rbp)
  je     L17
  addq   $0x1,-0x10(%rbp)
L89:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L235
  jmp    L56
L17:
  nop
L56:
  mov    -0x14(%rbp),%edx
  mov    -0x8(%rbp),%rcx
  mov    -0x38(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    -0x38(%rbp),%rax
  jmp    L261
L169:
  nop
  jmp    L130
L142:
  nop
  jmp    L130
L38:
  nop
  jmp    L130
L52:
  nop
L130:
  mov    -0x38(%rbp),%rax
  movb   $0x0,(%rax)
  mov    $0x0,%eax
L261:
  leave
  ret
```

assistant: ```c
char *pisa_cert_get_part(char *cert, const char *name, char *r) {
  int level = 0, len = 0;
  char *p = cert, *start = NULL;
  if (!r) {
    return NULL;
  }
  if (!cert) {
    goto out_err;
  }
  if (!name) {
    goto out_err;
  }
  len = strlen(name);
  if (len == 0) {
    goto out_err;
  }
  while (*p) {
    if (*p == '(') {
      level++;
      if (level == 2 && !strncmp(p + 1, name, len)) {
        if (*(p + len + 1) == ' ') {
          start = p++;
          break;
        }
      }
    }
    if (*p == ')') {
      level--;
    }
    if (level == 0) {
      break;
    }
    p++;
  }
  if (!start) {
    goto out_err;
  }
  len = 0;
  while (*p) {
    if (*p == '(') {
      level++;
    }
    if (*p == ')') {
      level--;
      if (level == 1) {
        len = p - start + 1;
        break;
      }
    }
    if (level == 0) {
      break;
    }
    p++;
  }
  strncpy(r, start, len);
  r[len] = '\0';
  return r;
out_err:
  r[0] = '\0';
  return NULL;
}
```