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

```asm
<FITS_image_size>:
  endbr64
  push   %r15
  mov    $0x46,%edx
  push   %r14
  mov    %rsi,%r14
  mov    $0x20,%esi
  push   %r13
  mov    %edi,%r13d
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x78(%rsp)
  xor    %eax,%eax
  lea    0x30(%rsp),%rbp
  mov    %rbp,%rdi
  call   <memset@plt>
  mov    %rbp,%rcx
  mov    %r14,%rsi
  mov    %r13d,%edi
  lea    D59(%rip),%rdx
  call   <get_FITS_key@plt>
  cmp    $0xffffffff,%eax
  je     L150
  cmp    $0x1,%eax
  jne    L81
L111:
  lea    D36(%rip),%r12
  lea    0x1c(%rsp),%rdx
  mov    %rbp,%rdi
  mov    %r12,%rsi
  call   <sscanf@plt>
  test   %eax,%eax
  jle    L160
  lea    0x28(%rsp),%r15
  lea    D41(%rip),%rsi
  mov    0x1c(%rsp),%ebx
  mov    %r15,%rdi
  call   <strcpy@plt>
  mov    %rbp,%rcx
  mov    %r15,%rdx
  mov    %r14,%rsi
  mov    %r13d,%edi
  call   <get_FITS_key@plt>
  cmp    $0xffffffff,%eax
  je     L0
  cmp    $0x2,%eax
  jne    L159
L181:
  lea    0x20(%rsp),%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <sscanf@plt>
  test   %eax,%eax
  jle    L142
  mov    0x20(%rsp),%eax
  test   %eax,%eax
  je     L154
  mov    %ebx,%edx
  neg    %edx
  cmovs  %ebx,%edx
  sar    $0x3,%edx
  mov    %edx,0x4(%rsp)
  test   %eax,%eax
  jle    L23
  lea    0x2d(%rsp),%rax
  mov    $0x1,%ebx
  mov    %rax,0x8(%rsp)
  jmp    L63
  xchg   %ax,%ax
L6:
  mov    %rbp,%rcx
  mov    %r15,%rdx
  mov    %r14,%rsi
  mov    %r13d,%edi
  call   <get_FITS_key@plt>
  cmp    $0xffffffff,%eax
  je     L202
  lea    0x2(%rbx),%edx
  cmp    %eax,%edx
  je     L176
  mov    %r15,%rsi
  lea    D53(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L176:
  lea    0x24(%rsp),%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <sscanf@plt>
  test   %eax,%eax
  jle    L198
  mov    0x4(%rsp),%eax
  imul   0x24(%rsp),%eax
  add    $0x1,%ebx
  mov    %eax,0x4(%rsp)
  cmp    %ebx,0x20(%rsp)
  jl     L154
L63:
  mov    0x8(%rsp),%rdi
  mov    %ebx,%ecx
  mov    %r12,%rdx
  mov    $0x3,%esi
  call   <snprintf@plt>
  test   %eax,%eax
  jg     L6
  mov    %r15,%rsi
  lea    D68(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  nopl   0x0(%rax,%rax,1)
L154:
  mov    0x78(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L53
  add    $0x88,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  cs nopw 0x0(%rax,%rax,1)
L81:
  lea    D18(%rip),%rdi
  call   <puts@plt>
  jmp    L111
  nopl   0x0(%rax)
L159:
  lea    D7(%rip),%rdi
  call   <puts@plt>
  jmp    L181
  nopl   0x0(%rax)
L160:
  lea    D45(%rip),%rdi
  call   <puts@plt>
  xor    %eax,%eax
  jmp    L154
L142:
  lea    D116(%rip),%rdi
  call   <puts@plt>
  xor    %eax,%eax
  jmp    L154
L150:
  lea    D34(%rip),%rdi
  call   <puts@plt>
  xor    %eax,%eax
  jmp    L154
  nopl   0x0(%rax,%rax,1)
L202:
  mov    %r15,%rsi
  lea    D90(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  jmp    L154
L198:
  mov    %r15,%rsi
  lea    D110(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  jmp    L154
  nopl   0x0(%rax,%rax,1)
L0:
  lea    D46(%rip),%rdi
  call   <puts@plt>
  xor    %eax,%eax
  jmp    L154
L23:
  mov    0x4(%rsp),%eax
  jmp    L154
L53:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: tag: D59
type_guessed: string
name: read_data
arguments: tag: D36
type_guessed: string
name: read_data
arguments: tag: D41
type_guessed: string
name: read_data
arguments: tag: D53
type_guessed: string
name: read_data
arguments: tag: D68
type_guessed: string
name: read_data
arguments: tag: D18
type_guessed: string
name: read_data
arguments: tag: D7
type_guessed: string
name: read_data
arguments: tag: D45
type_guessed: string
name: read_data
arguments: tag: D116
type_guessed: string
name: read_data
arguments: tag: D34
type_guessed: string
name: read_data
arguments: tag: D90
type_guessed: string
name: read_data
arguments: tag: D110
type_guessed: string
name: read_data
arguments: tag: D46
type_guessed: string

tool: D59: BITPIX

tool: D36: %d

tool: D41: NAXIS

tool: D53: 
	WARNING! header does not conform to FITS standard (%s)


tool: D68: 
	ERROR! FITS_image_size(): %s


tool: D18: 
	WARNING! header does not conform to FITS standard (BITPIX)

tool: D7: 
	WARNING! header does not conform to FITS standard (NAXIS)

tool: D45: 
	ERROR! FITS_image_size(): reading BITPIX

tool: D116: 
	ERROR! FITS_image_size(): reading NAXIS

tool: D34: 
	ERROR! FITS_image_size(): BITPIX not found in the header

tool: D90: 
	ERROR! FITS_image_size(): %s not found in the header


tool: D110: 
	ERROR! FITS_image_size(): reading %s


tool: D46: 
	ERROR! FITS_image_size(): NAXIS not found in the header

assistant: ```c
int FITS_image_size(const int ncards, char **header) {
  char val[70], keyword[8];
  int i, p, bitpix, bytepix, naxis, naxisn, size;
  memset(val, ' ', 70);
  if ((p = get_FITS_key(ncards, header, "BITPIX", val)) == -1) {
    printf("\n\tERROR! FITS_image_size(): BITPIX not found in the header\n");
    return (0);
  }
  if (p != 1)
    printf("\n\tWARNING! header does not conform to FITS standard (BITPIX)\n");
  if (sscanf(val, "%d", &bitpix) < 1) {
    printf("\n\tERROR! FITS_image_size(): reading BITPIX\n");
    return (0);
  }
  bytepix = abs(bitpix) / 8;
  strcpy(keyword, "NAXIS");
  if ((p = get_FITS_key(ncards, header, keyword, val)) == -1) {
    printf("\n\tERROR! FITS_image_size(): NAXIS not found in the header\n");
    return (0);
  }
  if (p != 2)
    printf("\n\tWARNING! header does not conform to FITS standard (NAXIS)\n");
  if (sscanf(val, "%d", &naxis) < 1) {
    printf("\n\tERROR! FITS_image_size(): reading NAXIS\n");
    return (0);
  }
  if (naxis == 0)
    return (0);
  size = bytepix;
  for (i = 1; i <= naxis; i++) {
    if (snprintf((keyword + 5), 8 - 5, "%d", i) < 1) {
      printf("\n\tERROR! FITS_image_size(): %s\n", keyword);
      return (0);
    }
    if ((p = get_FITS_key(ncards, header, keyword, val)) == -1) {
      printf("\n\tERROR! FITS_image_size(): %s not found in the header\n", keyword);
      return (0);
    }
    if (p != i + 2)
      printf("\n\tWARNING! header does not conform to FITS standard (%s)\n", keyword);
    if (sscanf(val, "%d", &naxisn) < 1) {
      printf("\n\tERROR! FITS_image_size(): reading %s\n", keyword);
      return (0);
    }
    size *= naxisn;
  }
  return (size);
}
```