user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<qfits_card_build>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x398,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x388(%rsp)
  xor    %eax,%eax
  test   %rdi,%rdi
  je     L96
  mov    %rsi,%r12
  test   %rsi,%rsi
  je     L96
  mov    $0x20,%esi
  mov    %rdx,%rbp
  mov    $0x50,%edx
  mov    %rdi,%rbx
  mov    %rcx,%r13
  call   <memset@plt>
  lea    D47(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L254
  lea    D22(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L59
  lea    D83(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L321
L59:
  xor    %eax,%eax
  mov    %r12,%rdx
  lea    D6(%rip),%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  test   %rbp,%rbp
  je     L96
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    0x388(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L51
  mov    $0x48,%edx
  lea    0x8(%rbx),%rdi
  mov    %rbp,%rsi
  cmp    %edx,%eax
  cmovle %eax,%edx
  add    $0x398,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1110 <strncpy@plt>
  nopl   (%rax)
L254:
  movl   $0x444e45,(%rbx)
  xchg   %ax,%ax
L96:
  mov    0x388(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L51
  add    $0x398,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L321:
  mov    $0x8,%edx
  lea    D104(%rip),%rsi
  mov    %r12,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L59
  test   %rbp,%rbp
  je     L146
  mov    %rbp,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  jg     L26
L146:
  movb   $0x0,(%rsp)
  mov    %rsp,%r14
L310:
  lea    0x120(%rsp),%r15
  test   %r13,%r13
  je     L299
  mov    %r13,%rsi
  mov    %r15,%rdi
  call   <strcpy@plt>
L134:
  mov    $0x8,%edx
  lea    D120(%rip),%rsi
  mov    %r12,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L58
  mov    %r14,%rdi
  call   <qfits_is_int@plt>
  test   %rax,%rax
  jne    L230
  mov    %r14,%rdi
  call   <qfits_is_float@plt>
  test   %rax,%rax
  jne    L230
  mov    %r14,%rdi
  call   <qfits_is_boolean@plt>
  test   %rax,%rax
  jne    L230
  mov    %r14,%rdi
  mov    $0x1,%ebp
  call   <qfits_is_complex@plt>
  test   %rax,%rax
  jne    L230
L28:
  cmpb   $0x0,(%rsp)
  jne    L231
  test   %ebp,%ebp
  mov    %r15,%rcx
  lea    0x180(%rsp),%rbp
  mov    %r12,%rdx
  je     L272
  lea    D123(%rip),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <sprintf@plt>
  nopw   0x0(%rax,%rax,1)
L309:
  mov    $0x50,%edx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <strncpy@plt>
  movb   $0x0,0x50(%rbx)
  jmp    L96
  nopl   0x0(%rax)
L58:
  mov    %r14,%rdi
  call   <qfits_is_int@plt>
  test   %rax,%rax
  jne    L63
  mov    %r14,%rdi
  call   <qfits_is_float@plt>
  test   %rax,%rax
  jne    L63
  mov    %r14,%rdi
  call   <qfits_is_boolean@plt>
  test   %rax,%rax
  jne    L63
  mov    %r14,%rdi
  xor    %ebp,%ebp
  call   <qfits_is_complex@plt>
  test   %rax,%rax
  je     L28
  nopw   0x0(%rax,%rax,1)
L63:
  lea    0x180(%rsp),%rbp
  mov    %r15,%r8
  mov    %r14,%rcx
  xor    %eax,%eax
  mov    %r12,%rdx
  lea    D82(%rip),%rsi
  mov    %rbp,%rdi
  call   <sprintf@plt>
  jmp    L309
  nopw   0x0(%rax,%rax,1)
L230:
  lea    0x180(%rsp),%rbp
  mov    %r15,%r8
  mov    %r14,%rcx
  xor    %eax,%eax
  mov    %r12,%rdx
  lea    D100(%rip),%rsi
  mov    %rbp,%rdi
  call   <sprintf@plt>
  jmp    L309
  nopw   0x0(%rax,%rax,1)
L299:
  lea    D26(%rip),%rsi
  mov    %r15,%rdi
  call   <strcpy@plt>
  jmp    L134
L26:
  mov    %rsp,%r14
  mov    %rbp,%rsi
  mov    %r14,%rdi
  call   <strcpy@plt>
  jmp    L310
L231:
  lea    0xc0(%rsp),%r13
  mov    $0x51,%edx
  xor    %esi,%esi
  mov    %r13,%rdi
  call   <memset@plt>
  mov    %r14,%rdi
  call   <qfits_pretty_string@plt>
  lea    0x60(%rsp),%rdi
  mov    %rax,%rsi
  call   <strcpy@plt>
  movzbl 0x60(%rsp),%edx
  lea    0x61(%rsp),%rcx
  xor    %eax,%eax
  test   %dl,%dl
  jne    L239
  jmp    L118
  nopl   (%rax)
L320:
  movslq %eax,%rsi
  mov    %dl,0xc0(%rsp,%rsi,1)
L125:
  movzbl (%rcx),%edx
  add    $0x1,%rcx
  add    $0x1,%eax
  test   %dl,%dl
  je     L118
L239:
  cmp    $0x27,%dl
  jne    L320
  lea    0x1(%rax),%edx
  cltq
  movb   $0x27,0xc0(%rsp,%rax,1)
  movslq %edx,%rax
  movb   $0x27,0xc0(%rsp,%rax,1)
  mov    %edx,%eax
  jmp    L125
L118:
  test   %ebp,%ebp
  je     L191
  lea    0x180(%rsp),%rbp
  mov    %r12,%rdx
  mov    %r15,%r8
  xor    %eax,%eax
  mov    %r13,%rcx
  lea    D38(%rip),%rsi
  mov    %rbp,%rdi
  call   <sprintf@plt>
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    %r13,%rdi
  mov    %eax,%r12d
  call   <strlen@plt>
  add    %eax,%r12d
  cmp    $0x4c,%r12d
  jle    L309
  movb   $0x27,0x1cf(%rsp)
  jmp    L309
L272:
  lea    D17(%rip),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <sprintf@plt>
  jmp    L309
L191:
  lea    0x180(%rsp),%rbp
  mov    %r15,%r8
  mov    %r13,%rcx
  xor    %eax,%eax
  mov    %r12,%rdx
  lea    D95(%rip),%rsi
  mov    %rbp,%rdi
  call   <sprintf@plt>
  jmp    L309
L51:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_tag: D47
type_guessed: string
name: read_data
arguments: data_tag: D22
type_guessed: string
name: read_data
arguments: data_tag: D83
type_guessed: string
name: read_data
arguments: data_tag: D6
type_guessed: string
name: read_data
arguments: data_tag: D104
type_guessed: string
name: read_data
arguments: data_tag: D120
type_guessed: string
name: read_data
arguments: data_tag: D123
type_guessed: string
name: read_data
arguments: data_tag: D82
type_guessed: string
name: read_data
arguments: data_tag: D100
type_guessed: string
name: read_data
arguments: data_tag: D26
type_guessed: string
name: read_data
arguments: data_tag: D38
type_guessed: string
name: read_data
arguments: data_tag: D17
type_guessed: string
name: read_data
arguments: data_tag: D95
type_guessed: string

tool: D47: END

tool: D22: HISTORY

tool: D83: COMMENT

tool: D6: %s 

tool: D104:         

tool: D120: HIERARCH

tool: D123: %-29s=                    / %s

tool: D82: %-8.8s= %20s / %-48s

tool: D100: %-29s= %s / %s

tool: D26: no comment

tool: D38: %-29s= '%s' / %s

tool: D17: %-8.8s=                      / %-48s

tool: D95: %-8.8s= '%-8s' / %s

assistant: ```c
void qfits_card_build(char *line, const char *key, const char *val, const char *com) {
  int len;
  int hierarch = 0;
  char cval[81];
  char cval2[81];
  char cval_q[81];
  char ccom[81];
  char safe_line[512];
  int i, j;
  if (line == NULL || key == NULL)
    return;
  memset(line, ' ', 80);
  if (key == NULL)
    return;
  if (!strcmp(key, "END")) {
    sprintf(line, "END");
    return;
  }
  if (!strcmp(key, "HISTORY") || !strcmp(key, "COMMENT") || !strncmp(key, "        ", 8)) {
    sprintf(line, "%s ", key);
    if (val == NULL)
      return;
    len = strlen(val);
    if (len > 72)
      len = 72;
    strncpy(line + 8, val, len);
    return;
  }
  if (val == NULL)
    cval[0] = (char)0;
  else if (strlen(val) < 1)
    cval[0] = (char)0;
  else
    strcpy(cval, val);
  if (com == NULL)
    strcpy(ccom, "no comment");
  else
    strcpy(ccom, com);
  if (!strncmp(key, "HIERARCH", 8))
    hierarch++;
  if (qfits_is_int(cval) || qfits_is_float(cval) || qfits_is_boolean(cval) || qfits_is_complex(cval)) {
    if (hierarch)
      sprintf(safe_line, "%-29s= %s / %s", key, cval, ccom);
    else
      sprintf(safe_line, "%-8.8s= %20s / %-48s", key, cval, ccom);
    strncpy(line, safe_line, 80);
    line[80] = (char)0;
    return;
  }
  if (cval[0] == 0) {
    if (hierarch) {
      sprintf(safe_line, "%-29s=                    / %s", key, ccom);
    } else {
      sprintf(safe_line, "%-8.8s=                      / %-48s", key, ccom);
    }
    strncpy(line, safe_line, 80);
    line[80] = (char)0;
    return;
  }
  memset(cval_q, 0, 81);
  strcpy(cval2, qfits_pretty_string(cval));
  j = 0;
  i = 0;
  while (cval2[i] != (char)0) {
    if (cval2[i] == '\'') {
      cval_q[j] = '\'';
      j++;
      cval_q[j] = '\'';
    } else {
      cval_q[j] = cval2[i];
    }
    i++;
    j++;
  }
  if (hierarch) {
    sprintf(safe_line, "%-29s= '%s' / %s", key, cval_q, ccom);
    if (strlen(key) + strlen(cval_q) + 3 >= 80)
      safe_line[79] = '\'';
  } else {
    sprintf(safe_line, "%-8.8s= '%-8s' / %s", key, cval_q, ccom);
  }
  strncpy(line, safe_line, 80);
  line[80] = (char)0;
  return;
}
```