#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
scalar_t__ calloc(int, int);
double fabs(double);
scalar_t__ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ free(void *);
int get_FITS_key(int, char **, char *, char *);
int /*<<< orphan*/ memset(char *, char, int);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int read_FITS_header(int /*<<< orphan*/ *, char ***);
int read_FITS_image(int /*<<< orphan*/ *, char **, int, void **);
int sscanf(char *, char *, ...);
float *read_FITS_2D1file(char *iname, int *ncards, char ***header, int *n1,
                         int *n2) {
  void *buf;
  char value[70], **lhead;
  int i, hs, bitpix, naxes, nx, ny, npix;
  float *ldata;
  double FITS_bzero, FITS_dirale;
  FILE *inf;
  memset(value, ' ', 70);
  if ((inf = fopen(iname, "r")) == NULL) {
    perror(iname);
    return (NULL);
  }
  if ((hs = read_FITS_header(inf, &lhead)) < 36) {
    printf("\n\tERROR! read_FITS_2D1file(): incorrect header length\n");
    return (NULL);
  }
  if ((npix = read_FITS_image(inf, lhead, hs, &buf)) < 1) {
    printf("\n\tERROR! read_FITS_2D1file(): incorrect image length\n");
    return (NULL);
  }
  if (fclose(inf) != 0)
    printf("\n\tWARNING! read_FITS_2D1file(%s): cannot close file\n", iname);
  if (get_FITS_key(hs, lhead, "NAXIS", value) == -1) {
    printf("\n\tERROR! read_FITS_2D1file(%s): NAXIS not found in the header\n",
           iname);
    return (NULL);
  }
  if (sscanf(value, "%d", &naxes) < 1) {
    printf("\n\tERROR! read_FITS_2D1file(%s): reading NAXIS\n", iname);
    return (NULL);
  }
  if (naxes != 2) {
    printf("\n\tERROR! read_FITS_2D1file(%s): NAXIS= %d (expected 2)\n", iname,
           naxes);
    return (NULL);
  }
  if (get_FITS_key(hs, lhead, "NAXIS1", value) == -1) {
    printf("\n\tERROR! read_FITS_2D1file(%s): NAXIS1 not found in header\n",
           iname);
    return (NULL);
  }
  if (sscanf(value, "%d", &nx) < 1) {
    printf("\n\tERROR! read_FITS_2D1file(%s): reading NAXIS1\n", iname);
    return (NULL);
  }
  if (get_FITS_key(hs, lhead, "NAXIS2", value) == -1) {
    printf("\n\tERROR! read_FITS_2D1file(%s): NAXIS2 not found in header\n",
           iname);
    return (NULL);
  }
  if (sscanf(value, "%d", &ny) < 1) {
    printf("\n\tERROR! read_FITS_2D1file(%s): reading NAXIS2\n", iname);
    return (NULL);
  }
  if (get_FITS_key(hs, lhead, "BITPIX", value) == -1) {
    printf("\n\tERROR! read_FITS_2D1file(%s): BITPIX not found in header\n",
           iname);
    return (NULL);
  }
  if (sscanf(value, "%d", &bitpix) < 1) {
    printf("\n\tERROR! read_FITS_2D1file(%s): reading BITPIX\n", iname);
    return (NULL);
  }
  if (get_FITS_key(hs, lhead, "BZERO", value) == -1)
    FITS_bzero = 0.0;
  else {
    if (sscanf(value, "%lg", &FITS_bzero) < 1) {
      printf("\n\tERROR! read_FITS_2D1file(%s): reading BZERO\n", iname);
      return (NULL);
    }
  }
  if (get_FITS_key(hs, lhead, "BSCALE", value) == -1)
    FITS_dirale = 1.0;
  else {
    if (sscanf(value, "%lg", &FITS_dirale) < 1) {
      printf("\n\tERROR! read_FITS_2D1file(%s): reading BSCALE\n", iname);
      return (NULL);
    }
  }
  if ((ldata = (float *)calloc(npix, sizeof(float))) == NULL) {
    perror("\n\tERROR! read_FITS_2D1file(): calloc(ldata)");
    return (NULL);
  }
  switch (bitpix) {
  case 8:
    for (i = 0; i < npix; i++)
      ldata[i] = (float)((unsigned char *)buf)[i];
    break;
  case 16:
    for (i = 0; i < npix; i++)
      ldata[i] = (float)((short *)buf)[i];
    break;
  case 32:
    for (i = 0; i < npix; i++)
      ldata[i] = (float)((int *)buf)[i];
    break;
  case -32:
    for (i = 0; i < npix; i++)
      ldata[i] = ((float *)buf)[i];
    break;
  case -64:
    for (i = 0; i < npix; i++)
      ldata[i] = (float)((double *)buf)[i];
    break;
  default:
    printf("\n\tERROR! read_FITS_2D1file(%s): bitpix= %d\n", iname, bitpix);
    return (NULL);
  }
  free(buf);
  if (fabs(FITS_dirale - 1.0) > 1.0e-15)
    for (i = 0; i < npix; i++)
      ldata[i] *= FITS_dirale;
  if (fabs(FITS_bzero) > 1.0e-15)
    for (i = 0; i < npix; i++)
      ldata[i] += FITS_bzero;
  *n1 = nx;
  *n2 = ny;
  *header = lhead;
  *ncards = hs;
  return (ldata);
}


x86 assembly (clang, -O0):
<read_FITS_2D1file>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
lea    -0x80(%rbp),%rdi
mov    $0x20,%esi
mov    $0x46,%edx
call   1070 <memset@plt>
mov    -0x10(%rbp),%rdi
lea    0xe33(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0xc8(%rbp)
cmp    $0x0,%rax
jne    1219 <read_FITS_2D1file+0x69>
mov    -0x10(%rbp),%rdi
call   10c0 <perror@plt>
movq   $0x0,-0x8(%rbp)
jmp    19f5 <read_FITS_2D1file+0x845>
mov    -0xc8(%rbp),%rdi
lea    -0x88(%rbp),%rsi
call   10d0 <read_FITS_header@plt>
mov    %eax,-0x90(%rbp)
cmp    $0x24,%eax
jge    1256 <read_FITS_2D1file+0xa6>
lea    0xde0(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movq   $0x0,-0x8(%rbp)
jmp    19f5 <read_FITS_2D1file+0x845>
mov    -0xc8(%rbp),%rdi
mov    -0x88(%rbp),%rsi
mov    -0x90(%rbp),%edx
lea    -0x38(%rbp),%rcx
call   1040 <read_FITS_image@plt>
mov    %eax,-0xa4(%rbp)
cmp    $0x1,%eax
jge    129d <read_FITS_2D1file+0xed>
lea    0xdd0(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movq   $0x0,-0x8(%rbp)
jmp    19f5 <read_FITS_2D1file+0x845>
mov    -0xc8(%rbp),%rdi
call   1050 <fclose@plt>
cmp    $0x0,%rax
je     12c5 <read_FITS_2D1file+0x115>
mov    -0x10(%rbp),%rsi
lea    0xdd1(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x90(%rbp),%edi
mov    -0x88(%rbp),%rsi
lea    -0x80(%rbp),%rcx
lea    0xde7(%rip),%rdx
call   1090 <get_FITS_key@plt>
cmp    $0xffffffff,%eax
jne    130a <read_FITS_2D1file+0x15a>
mov    -0x10(%rbp),%rsi
lea    0xdd4(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movq   $0x0,-0x8(%rbp)
jmp    19f5 <read_FITS_2D1file+0x845>
lea    -0x80(%rbp),%rdi
lea    0xdf4(%rip),%rsi
lea    -0x98(%rbp),%rdx
mov    $0x0,%al
call   10a0 <sscanf@plt>
cmp    $0x1,%eax
jge    134b <read_FITS_2D1file+0x19b>
mov    -0x10(%rbp),%rsi
lea    0xdd5(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movq   $0x0,-0x8(%rbp)
jmp    19f5 <read_FITS_2D1file+0x845>
cmpl   $0x2,-0x98(%rbp)
je     137d <read_FITS_2D1file+0x1cd>
mov    -0x10(%rbp),%rsi
mov    -0x98(%rbp),%edx
lea    0xdd2(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movq   $0x0,-0x8(%rbp)
jmp    19f5 <read_FITS_2D1file+0x845>
mov    -0x90(%rbp),%edi
mov    -0x88(%rbp),%rsi
lea    -0x80(%rbp),%rcx
lea    0xdde(%rip),%rdx
call   1090 <get_FITS_key@plt>
cmp    $0xffffffff,%eax
jne    13c2 <read_FITS_2D1file+0x212>
mov    -0x10(%rbp),%rsi
lea    0xdcc(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movq   $0x0,-0x8(%rbp)
jmp    19f5 <read_FITS_2D1file+0x845>
lea    -0x80(%rbp),%rdi
lea    0xd3c(%rip),%rsi
lea    -0x9c(%rbp),%rdx
mov    $0x0,%al
call   10a0 <sscanf@plt>
cmp    $0x1,%eax
jge    1403 <read_FITS_2D1file+0x253>
mov    -0x10(%rbp),%rsi
lea    0xdc7(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movq   $0x0,-0x8(%rbp)
jmp    19f5 <read_FITS_2D1file+0x845>
mov    -0x90(%rbp),%edi
mov    -0x88(%rbp),%rsi
lea    -0x80(%rbp),%rcx
lea    0xdcb(%rip),%rdx
call   1090 <get_FITS_key@plt>
cmp    $0xffffffff,%eax
jne    1448 <read_FITS_2D1file+0x298>
mov    -0x10(%rbp),%rsi
lea    0xdb9(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movq   $0x0,-0x8(%rbp)
jmp    19f5 <read_FITS_2D1file+0x845>
lea    -0x80(%rbp),%rdi
lea    0xcb6(%rip),%rsi
lea    -0xa0(%rbp),%rdx
mov    $0x0,%al
call   10a0 <sscanf@plt>
cmp    $0x1,%eax
jge    1489 <read_FITS_2D1file+0x2d9>
mov    -0x10(%rbp),%rsi
lea    0xdb4(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movq   $0x0,-0x8(%rbp)
jmp    19f5 <read_FITS_2D1file+0x845>
mov    -0x90(%rbp),%edi
mov    -0x88(%rbp),%rsi
lea    -0x80(%rbp),%rcx
lea    0xdb8(%rip),%rdx
call   1090 <get_FITS_key@plt>
cmp    $0xffffffff,%eax
jne    14ce <read_FITS_2D1file+0x31e>
mov    -0x10(%rbp),%rsi
lea    0xda6(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movq   $0x0,-0x8(%rbp)
jmp    19f5 <read_FITS_2D1file+0x845>
lea    -0x80(%rbp),%rdi
lea    0xc30(%rip),%rsi
lea    -0x94(%rbp),%rdx
mov    $0x0,%al
call   10a0 <sscanf@plt>
cmp    $0x1,%eax
jge    150f <read_FITS_2D1file+0x35f>
mov    -0x10(%rbp),%rsi
lea    0xda1(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movq   $0x0,-0x8(%rbp)
jmp    19f5 <read_FITS_2D1file+0x845>
mov    -0x90(%rbp),%edi
mov    -0x88(%rbp),%rsi
lea    -0x80(%rbp),%rcx
lea    0xda5(%rip),%rdx
call   1090 <get_FITS_key@plt>
cmp    $0xffffffff,%eax
jne    1545 <read_FITS_2D1file+0x395>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
jmp    158b <read_FITS_2D1file+0x3db>
lea    -0x80(%rbp),%rdi
lea    0xd82(%rip),%rsi
lea    -0xb8(%rbp),%rdx
mov    $0x0,%al
call   10a0 <sscanf@plt>
cmp    $0x1,%eax
jge    1586 <read_FITS_2D1file+0x3d6>
mov    -0x10(%rbp),%rsi
lea    0xd64(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movq   $0x0,-0x8(%rbp)
jmp    19f5 <read_FITS_2D1file+0x845>
jmp    158b <read_FITS_2D1file+0x3db>
mov    -0x90(%rbp),%edi
mov    -0x88(%rbp),%rsi
lea    -0x80(%rbp),%rcx
lea    0xd62(%rip),%rdx
call   1090 <get_FITS_key@plt>
cmp    $0xffffffff,%eax
jne    15c6 <read_FITS_2D1file+0x416>
movsd  0xa47(%rip),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
jmp    160c <read_FITS_2D1file+0x45c>
lea    -0x80(%rbp),%rdi
lea    0xd01(%rip),%rsi
lea    -0xc0(%rbp),%rdx
mov    $0x0,%al
call   10a0 <sscanf@plt>
cmp    $0x1,%eax
jge    1607 <read_FITS_2D1file+0x457>
mov    -0x10(%rbp),%rsi
lea    0xd19(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movq   $0x0,-0x8(%rbp)
jmp    19f5 <read_FITS_2D1file+0x845>
jmp    160c <read_FITS_2D1file+0x45c>
mov    -0xa4(%rbp),%edi
mov    $0x4,%esi
call   1080 <calloc@plt>
mov    %rax,-0xb0(%rbp)
cmp    $0x0,%rax
jne    1646 <read_FITS_2D1file+0x496>
lea    0xd08(%rip),%rdi
call   10c0 <perror@plt>
movq   $0x0,-0x8(%rbp)
jmp    19f5 <read_FITS_2D1file+0x845>
mov    -0x94(%rbp),%eax
mov    %eax,-0xcc(%rbp)
sub    $0xffffffc0,%eax
je     1816 <read_FITS_2D1file+0x666>
jmp    1660 <read_FITS_2D1file+0x4b0>
mov    -0xcc(%rbp),%eax
sub    $0xffffffe0,%eax
je     17be <read_FITS_2D1file+0x60e>
jmp    1674 <read_FITS_2D1file+0x4c4>
mov    -0xcc(%rbp),%eax
sub    $0x8,%eax
je     16b0 <read_FITS_2D1file+0x500>
jmp    1688 <read_FITS_2D1file+0x4d8>
mov    -0xcc(%rbp),%eax
sub    $0x10,%eax
je     170b <read_FITS_2D1file+0x55b>
jmp    169c <read_FITS_2D1file+0x4ec>
mov    -0xcc(%rbp),%eax
sub    $0x20,%eax
je     1766 <read_FITS_2D1file+0x5b6>
jmp    1872 <read_FITS_2D1file+0x6c2>
movl   $0x0,-0x8c(%rbp)
mov    -0x8c(%rbp),%eax
cmp    -0xa4(%rbp),%eax
jge    1706 <read_FITS_2D1file+0x556>
mov    -0x38(%rbp),%rax
movslq -0x8c(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
cvtsi2ss %eax,%xmm0
mov    -0xb0(%rbp),%rax
movslq -0x8c(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    16ba <read_FITS_2D1file+0x50a>
jmp    1897 <read_FITS_2D1file+0x6e7>
movl   $0x0,-0x8c(%rbp)
mov    -0x8c(%rbp),%eax
cmp    -0xa4(%rbp),%eax
jge    1761 <read_FITS_2D1file+0x5b1>
mov    -0x38(%rbp),%rax
movslq -0x8c(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
cvtsi2ss %eax,%xmm0
mov    -0xb0(%rbp),%rax
movslq -0x8c(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    1715 <read_FITS_2D1file+0x565>
jmp    1897 <read_FITS_2D1file+0x6e7>
movl   $0x0,-0x8c(%rbp)
mov    -0x8c(%rbp),%eax
cmp    -0xa4(%rbp),%eax
jge    17b9 <read_FITS_2D1file+0x609>
mov    -0x38(%rbp),%rax
movslq -0x8c(%rbp),%rcx
cvtsi2ssl (%rax,%rcx,4),%xmm0
mov    -0xb0(%rbp),%rax
movslq -0x8c(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    1770 <read_FITS_2D1file+0x5c0>
jmp    1897 <read_FITS_2D1file+0x6e7>
movl   $0x0,-0x8c(%rbp)
mov    -0x8c(%rbp),%eax
cmp    -0xa4(%rbp),%eax
jge    1811 <read_FITS_2D1file+0x661>
mov    -0x38(%rbp),%rax
movslq -0x8c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0xb0(%rbp),%rax
movslq -0x8c(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    17c8 <read_FITS_2D1file+0x618>
jmp    1897 <read_FITS_2D1file+0x6e7>
movl   $0x0,-0x8c(%rbp)
mov    -0x8c(%rbp),%eax
cmp    -0xa4(%rbp),%eax
jge    186d <read_FITS_2D1file+0x6bd>
mov    -0x38(%rbp),%rax
movslq -0x8c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0xb0(%rbp),%rax
movslq -0x8c(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    1820 <read_FITS_2D1file+0x670>
jmp    1897 <read_FITS_2D1file+0x6e7>
mov    -0x10(%rbp),%rsi
mov    -0x94(%rbp),%edx
lea    0xae5(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movq   $0x0,-0x8(%rbp)
jmp    19f5 <read_FITS_2D1file+0x845>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
movsd  -0xc0(%rbp),%xmm0
ff
movsd  0x750(%rip),%xmm1
subsd  %xmm1,%xmm0
movaps 0x755(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  0x741(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1932 <read_FITS_2D1file+0x782>
movl   $0x0,-0x8c(%rbp)
mov    -0x8c(%rbp),%eax
cmp    -0xa4(%rbp),%eax
jge    192d <read_FITS_2D1file+0x77d>
movsd  -0xc0(%rbp),%xmm1
ff
mov    -0xb0(%rbp),%rax
movslq -0x8c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    18db <read_FITS_2D1file+0x72b>
jmp    1932 <read_FITS_2D1file+0x782>
movsd  -0xb8(%rbp),%xmm0
ff
movaps 0x6cf(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  0x6bb(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    19b8 <read_FITS_2D1file+0x808>
movl   $0x0,-0x8c(%rbp)
mov    -0x8c(%rbp),%eax
cmp    -0xa4(%rbp),%eax
jge    19b3 <read_FITS_2D1file+0x803>
movsd  -0xb8(%rbp),%xmm1
ff
mov    -0xb0(%rbp),%rax
movslq -0x8c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    1961 <read_FITS_2D1file+0x7b1>
jmp    19b8 <read_FITS_2D1file+0x808>
mov    -0x9c(%rbp),%ecx
mov    -0x28(%rbp),%rax
mov    %ecx,(%rax)
mov    -0xa0(%rbp),%ecx
mov    -0x30(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x88(%rbp),%rcx
mov    -0x20(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x90(%rbp),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    -0xb0(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_FITS_2D1file>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x88,%rsp
mov    %r8,%r12
mov    %rcx,%rbp
mov    %rdx,%r14
mov    %rsi,%r13
mov    %rdi,%r15
lea    0x40(%rsp),%rdi
mov    $0x20,%esi
mov    $0x46,%edx
call   1080 <memset@plt>
lea    0xe25(%rip),%rsi
mov    %r15,%rdi
call   10c0 <fopen@plt>
test   %rax,%rax
je     1400 <read_FITS_2D1file+0x240>
mov    %rax,%rbx
mov    %r12,0x38(%rsp)
mov    %rsp,%rsi
mov    %rax,%rdi
call   10e0 <read_FITS_header@plt>
cmp    $0x23,%eax
jg     1230 <read_FITS_2D1file+0x70>
lea    0x1131(%rip),%rdi
jmp    13dc <read_FITS_2D1file+0x21c>
mov    %eax,%r12d
mov    %r13,0x30(%rsp)
mov    %r14,%r13
mov    (%rsp),%rsi
lea    0x8(%rsp),%rcx
mov    %rbx,%rdi
mov    %eax,%edx
call   1050 <read_FITS_image@plt>
test   %eax,%eax
jle    13d5 <read_FITS_2D1file+0x215>
mov    %eax,%r14d
mov    %rbx,%rdi
call   1060 <fclose@plt>
test   %rax,%rax
je     1277 <read_FITS_2D1file+0xb7>
lea    0xdb5(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
mov    (%rsp),%rsi
lea    0xdd5(%rip),%rdx
lea    0x40(%rsp),%rcx
mov    %r12d,%edi
call   10a0 <get_FITS_key@plt>
cmp    $0xffffffff,%eax
je     13e8 <read_FITS_2D1file+0x228>
lea    0xdfd(%rip),%rsi
lea    0x40(%rsp),%rdi
lea    0x18(%rsp),%rdx
xor    %eax,%eax
call   10b0 <sscanf@plt>
test   %eax,%eax
jle    13f4 <read_FITS_2D1file+0x234>
mov    0x18(%rsp),%edx
cmp    $0x2,%edx
jne    140f <read_FITS_2D1file+0x24f>
mov    (%rsp),%rsi
lea    0xe36(%rip),%rdx
lea    0x40(%rsp),%rcx
mov    %r12d,%edi
call   10a0 <get_FITS_key@plt>
cmp    $0xffffffff,%eax
je     1427 <read_FITS_2D1file+0x267>
lea    0xdaf(%rip),%rsi
lea    0x40(%rsp),%rdi
lea    0x14(%rsp),%rdx
xor    %eax,%eax
call   10b0 <sscanf@plt>
test   %eax,%eax
jle    1430 <read_FITS_2D1file+0x270>
mov    (%rsp),%rsi
lea    0xe68(%rip),%rdx
lea    0x40(%rsp),%rcx
mov    %r12d,%edi
call   10a0 <get_FITS_key@plt>
cmp    $0xffffffff,%eax
je     1439 <read_FITS_2D1file+0x279>
lea    0xd6e(%rip),%rsi
lea    0x40(%rsp),%rdi
lea    0x10(%rsp),%rdx
xor    %eax,%eax
call   10b0 <sscanf@plt>
test   %eax,%eax
jle    1442 <read_FITS_2D1file+0x282>
mov    (%rsp),%rsi
lea    0xe9a(%rip),%rdx
lea    0x40(%rsp),%rcx
mov    %r12d,%edi
call   10a0 <get_FITS_key@plt>
cmp    $0xffffffff,%eax
je     144b <read_FITS_2D1file+0x28b>
lea    0xd2d(%rip),%rsi
lea    0x40(%rsp),%rdi
lea    0x1c(%rsp),%rdx
xor    %eax,%eax
call   10b0 <sscanf@plt>
test   %eax,%eax
jle    1454 <read_FITS_2D1file+0x294>
mov    (%rsp),%rsi
lea    0xecc(%rip),%rdx
lea    0x40(%rsp),%rcx
mov    %r12d,%edi
call   10a0 <get_FITS_key@plt>
cmp    $0xffffffff,%eax
je     145d <read_FITS_2D1file+0x29d>
lea    0xeb5(%rip),%rsi
lea    0x40(%rsp),%rdi
lea    0x28(%rsp),%rdx
xor    %eax,%eax
call   10b0 <sscanf@plt>
test   %eax,%eax
jg     1466 <read_FITS_2D1file+0x2a6>
lea    0xe99(%rip),%rdi
jmp    14a6 <read_FITS_2D1file+0x2e6>
lea    0xf4b(%rip),%rdi
call   1040 <puts@plt>
xor    %ebx,%ebx
jmp    14b2 <read_FITS_2D1file+0x2f2>
lea    0xc6e(%rip),%rdi
jmp    14a6 <read_FITS_2D1file+0x2e6>
lea    0xca4(%rip),%rdi
jmp    14a6 <read_FITS_2D1file+0x2e6>
mov    %r15,%rdi
call   10d0 <perror@plt>
xor    %ebx,%ebx
jmp    14b2 <read_FITS_2D1file+0x2f2>
lea    0xcb8(%rip),%rdi
xor    %ebx,%ebx
mov    %r15,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
jmp    14b2 <read_FITS_2D1file+0x2f2>
lea    0xcdf(%rip),%rdi
jmp    14a6 <read_FITS_2D1file+0x2e6>
lea    0xd12(%rip),%rdi
jmp    14a6 <read_FITS_2D1file+0x2e6>
lea    0xd40(%rip),%rdi
jmp    14a6 <read_FITS_2D1file+0x2e6>
lea    0xd73(%rip),%rdi
jmp    14a6 <read_FITS_2D1file+0x2e6>
lea    0xda1(%rip),%rdi
jmp    14a6 <read_FITS_2D1file+0x2e6>
lea    0xdd4(%rip),%rdi
jmp    14a6 <read_FITS_2D1file+0x2e6>
movq   $0x0,0x28(%rsp)
mov    (%rsp),%rsi
lea    0xe27(%rip),%rdx
lea    0x40(%rsp),%rcx
mov    %r12d,%edi
call   10a0 <get_FITS_key@plt>
cmp    $0xffffffff,%eax
je     14c7 <read_FITS_2D1file+0x307>
lea    0xddb(%rip),%rsi
lea    0x40(%rsp),%rdi
lea    0x20(%rsp),%rdx
xor    %eax,%eax
call   10b0 <sscanf@plt>
test   %eax,%eax
jg     14d6 <read_FITS_2D1file+0x316>
lea    0xdf9(%rip),%rdi
xor    %ebx,%ebx
mov    %r15,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
mov    %rbx,%rax
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
movabs $0x3ff0000000000000,%rax
mov    %rax,0x20(%rsp)
mov    %r14d,%edi
mov    $0x4,%esi
call   1090 <calloc@plt>
test   %rax,%rax
je     182b <read_FITS_2D1file+0x66b>
mov    %rax,%rbx
mov    0x1c(%rsp),%edx
cmp    $0x7,%edx
jle    152c <read_FITS_2D1file+0x36c>
cmp    $0x8,%edx
je     15d4 <read_FITS_2D1file+0x414>
cmp    $0x10,%edx
je     1688 <read_FITS_2D1file+0x4c8>
cmp    $0x20,%edx
jne    16ba <read_FITS_2D1file+0x4fa>
mov    0x8(%rsp),%rax
mov    %r14d,%ecx
cmp    $0x8,%r14d
jae    16c6 <read_FITS_2D1file+0x506>
xor    %edx,%edx
jmp    191d <read_FITS_2D1file+0x75d>
cmp    $0xffffffc0,%edx
je     16a1 <read_FITS_2D1file+0x4e1>
cmp    $0xffffffe0,%edx
jne    16ba <read_FITS_2D1file+0x4fa>
mov    0x8(%rsp),%rax
mov    %r14d,%r9d
cmp    $0x8,%r14d
jb     1566 <read_FITS_2D1file+0x3a6>
lea    (%rax,%r9,4),%rcx
cmp    %rcx,%rbx
jae    1837 <read_FITS_2D1file+0x677>
lea    (%rbx,%r9,4),%rcx
cmp    %rcx,%rax
jae    1837 <read_FITS_2D1file+0x677>
xor    %edx,%edx
mov    %rdx,%rsi
not    %rsi
add    %r9,%rsi
mov    %r9,%rdi
and    $0x3,%rdi
je     158e <read_FITS_2D1file+0x3ce>
movss  (%rax,%rdx,4),%xmm0
movss  %xmm0,(%rbx,%rdx,4)
add    $0x1,%rdx
add    $0xffffffffffffffff,%rdi
jne    157a <read_FITS_2D1file+0x3ba>
cmp    $0x3,%rsi
jb     19cc <read_FITS_2D1file+0x80c>
movss  (%rax,%rdx,4),%xmm0
movss  %xmm0,(%rbx,%rdx,4)
movss  0x4(%rax,%rdx,4),%xmm0
movss  %xmm0,0x4(%rbx,%rdx,4)
movss  0x8(%rax,%rdx,4),%xmm0
movss  %xmm0,0x8(%rbx,%rdx,4)
movss  0xc(%rax,%rdx,4),%xmm0
movss  %xmm0,0xc(%rbx,%rdx,4)
add    $0x4,%rdx
cmp    %rdx,%r9
jne    1598 <read_FITS_2D1file+0x3d8>
jmp    19cc <read_FITS_2D1file+0x80c>
mov    0x8(%rsp),%rax
mov    %r14d,%r9d
cmp    $0x8,%r14d
jb     15fc <read_FITS_2D1file+0x43c>
lea    (%rax,%r9,1),%rdx
cmp    %rbx,%rdx
jbe    1864 <read_FITS_2D1file+0x6a4>
lea    (%rbx,%r9,4),%rdx
cmp    %rdx,%rax
jae    1864 <read_FITS_2D1file+0x6a4>
xor    %edx,%edx
mov    %rdx,%rsi
not    %rsi
add    %r9,%rsi
mov    %r9,%rdi
and    $0x3,%rdi
je     162a <read_FITS_2D1file+0x46a>
movzbl (%rax,%rdx,1),%ecx
xorps  %xmm0,%xmm0
cvtsi2ss %ecx,%xmm0
movss  %xmm0,(%rbx,%rdx,4)
add    $0x1,%rdx
add    $0xffffffffffffffff,%rdi
jne    1610 <read_FITS_2D1file+0x450>
cmp    $0x3,%rsi
jb     19cc <read_FITS_2D1file+0x80c>
movzbl (%rax,%rdx,1),%ecx
xorps  %xmm0,%xmm0
cvtsi2ss %ecx,%xmm0
movss  %xmm0,(%rbx,%rdx,4)
movzbl 0x1(%rax,%rdx,1),%ecx
xorps  %xmm0,%xmm0
cvtsi2ss %ecx,%xmm0
movss  %xmm0,0x4(%rbx,%rdx,4)
movzbl 0x2(%rax,%rdx,1),%ecx
xorps  %xmm0,%xmm0
cvtsi2ss %ecx,%xmm0
movss  %xmm0,0x8(%rbx,%rdx,4)
movzbl 0x3(%rax,%rdx,1),%ecx
xorps  %xmm0,%xmm0
cvtsi2ss %ecx,%xmm0
movss  %xmm0,0xc(%rbx,%rdx,4)
add    $0x4,%rdx
cmp    %rdx,%r9
jne    1634 <read_FITS_2D1file+0x474>
jmp    19cc <read_FITS_2D1file+0x80c>
mov    0x8(%rsp),%rax
mov    %r14d,%ecx
cmp    $0x8,%r14d
jae    172d <read_FITS_2D1file+0x56d>
xor    %edx,%edx
jmp    1971 <read_FITS_2D1file+0x7b1>
mov    0x8(%rsp),%rax
mov    %r14d,%ecx
cmp    $0x4,%r14d
jae    17bc <read_FITS_2D1file+0x5fc>
xor    %edx,%edx
jmp    19b5 <read_FITS_2D1file+0x7f5>
lea    0xc3a(%rip),%rdi
jmp    1416 <read_FITS_2D1file+0x256>
mov    %ecx,%edx
and    $0xfffffff8,%edx
lea    -0x8(%rdx),%rsi
mov    %rsi,%r8
shr    $0x3,%r8
add    $0x1,%r8
test   %rsi,%rsi
je     18f4 <read_FITS_2D1file+0x734>
mov    %r8,%rsi
and    $0xfffffffffffffffe,%rsi
xor    %edi,%edi
movups (%rax,%rdi,4),%xmm0
movups 0x10(%rax,%rdi,4),%xmm1
cvtdq2ps %xmm0,%xmm0
cvtdq2ps %xmm1,%xmm1
movups %xmm0,(%rbx,%rdi,4)
movups %xmm1,0x10(%rbx,%rdi,4)
movups 0x20(%rax,%rdi,4),%xmm0
movups 0x30(%rax,%rdi,4),%xmm1
cvtdq2ps %xmm0,%xmm0
cvtdq2ps %xmm1,%xmm1
movups %xmm0,0x20(%rbx,%rdi,4)
movups %xmm1,0x30(%rbx,%rdi,4)
add    $0x10,%rdi
add    $0xfffffffffffffffe,%rsi
jne    16ec <read_FITS_2D1file+0x52c>
jmp    18f6 <read_FITS_2D1file+0x736>
mov    %ecx,%edx
and    $0xfffffff8,%edx
lea    -0x8(%rdx),%rsi
mov    %rsi,%r8
shr    $0x3,%r8
add    $0x1,%r8
test   %rsi,%rsi
je     1938 <read_FITS_2D1file+0x778>
mov    %r8,%rdi
and    $0xfffffffffffffffe,%rdi
xor    %esi,%esi
movq   (%rax,%rsi,2),%xmm0
punpcklwd %xmm0,%xmm0
movq   0x8(%rax,%rsi,2),%xmm1
punpcklwd %xmm1,%xmm1
psrad  $0x10,%xmm0
cvtdq2ps %xmm0,%xmm0
psrad  $0x10,%xmm1
cvtdq2ps %xmm1,%xmm1
movups %xmm0,(%rbx,%rsi,4)
movups %xmm1,0x10(%rbx,%rsi,4)
movq   0x10(%rax,%rsi,2),%xmm0
punpcklwd %xmm0,%xmm0
movq   0x18(%rax,%rsi,2),%xmm1
punpcklwd %xmm1,%xmm1
psrad  $0x10,%xmm0
cvtdq2ps %xmm0,%xmm0
psrad  $0x10,%xmm1
cvtdq2ps %xmm1,%xmm1
movups %xmm0,0x20(%rbx,%rsi,4)
movups %xmm1,0x30(%rbx,%rsi,4)
add    $0x10,%rsi
add    $0xfffffffffffffffe,%rdi
jne    1753 <read_FITS_2D1file+0x593>
jmp    193a <read_FITS_2D1file+0x77a>
mov    %ecx,%edx
and    $0xfffffffc,%edx
lea    -0x4(%rdx),%rsi
mov    %rsi,%r8
shr    $0x2,%r8
add    $0x1,%r8
test   %rsi,%rsi
je     198c <read_FITS_2D1file+0x7cc>
mov    %r8,%rsi
and    $0xfffffffffffffffe,%rsi
xor    %edi,%edi
movupd (%rax,%rdi,8),%xmm0
movupd 0x10(%rax,%rdi,8),%xmm1
cvtpd2ps %xmm0,%xmm0
cvtpd2ps %xmm1,%xmm1
unpcklpd %xmm1,%xmm0
movupd %xmm0,(%rbx,%rdi,4)
movupd 0x20(%rax,%rdi,8),%xmm0
movupd 0x30(%rax,%rdi,8),%xmm1
cvtpd2ps %xmm0,%xmm0
cvtpd2ps %xmm1,%xmm1
unpcklpd %xmm1,%xmm0
movupd %xmm0,0x10(%rbx,%rdi,4)
add    $0x8,%rdi
add    $0xfffffffffffffffe,%rsi
jne    17e2 <read_FITS_2D1file+0x622>
jmp    198e <read_FITS_2D1file+0x7ce>
lea    0xa9d(%rip),%rdi
jmp    1403 <read_FITS_2D1file+0x243>
mov    %r9d,%edx
and    $0xfffffff8,%edx
lea    -0x8(%rdx),%rcx
mov    %rcx,%rdi
shr    $0x3,%rdi
add    $0x1,%rdi
mov    %edi,%r8d
and    $0x3,%r8d
cmp    $0x18,%rcx
jae    1cf3 <read_FITS_2D1file+0xb33>
xor    %esi,%esi
jmp    1d62 <read_FITS_2D1file+0xba2>
mov    %r9d,%edx
and    $0xfffffff8,%edx
lea    -0x8(%rdx),%rsi
mov    %rsi,%r8
shr    $0x3,%r8
add    $0x1,%r8
test   %rsi,%rsi
je     1daa <read_FITS_2D1file+0xbea>
mov    %r8,%rdi
and    $0xfffffffffffffffe,%rdi
xor    %esi,%esi
pxor   %xmm0,%xmm0
movd   (%rax,%rsi,1),%xmm1
movd   0x4(%rax,%rsi,1),%xmm2
punpcklbw %xmm0,%xmm1
punpcklwd %xmm0,%xmm1
cvtdq2ps %xmm1,%xmm1
punpcklbw %xmm0,%xmm2
punpcklwd %xmm0,%xmm2
cvtdq2ps %xmm2,%xmm2
movups %xmm1,(%rbx,%rsi,4)
movups %xmm2,0x10(%rbx,%rsi,4)
movd   0x8(%rax,%rsi,1),%xmm1
movd   0xc(%rax,%rsi,1),%xmm2
punpcklbw %xmm0,%xmm1
punpcklwd %xmm0,%xmm1
cvtdq2ps %xmm1,%xmm1
punpcklbw %xmm0,%xmm2
punpcklwd %xmm0,%xmm2
cvtdq2ps %xmm2,%xmm2
movups %xmm1,0x20(%rbx,%rsi,4)
movups %xmm2,0x30(%rbx,%rsi,4)
add    $0x10,%rsi
add    $0xfffffffffffffffe,%rdi
jne    188f <read_FITS_2D1file+0x6cf>
jmp    1dac <read_FITS_2D1file+0xbec>
xor    %edi,%edi
test   $0x1,%r8b
je     1914 <read_FITS_2D1file+0x754>
movups (%rax,%rdi,4),%xmm0
movups 0x10(%rax,%rdi,4),%xmm1
cvtdq2ps %xmm0,%xmm0
cvtdq2ps %xmm1,%xmm1
movups %xmm0,(%rbx,%rdi,4)
movups %xmm1,0x10(%rbx,%rdi,4)
cmp    %rcx,%rdx
je     19cc <read_FITS_2D1file+0x80c>
xorps  %xmm0,%xmm0
cvtsi2ssl (%rax,%rdx,4),%xmm0
movss  %xmm0,(%rbx,%rdx,4)
add    $0x1,%rdx
cmp    %rdx,%rcx
jne    191d <read_FITS_2D1file+0x75d>
jmp    19cc <read_FITS_2D1file+0x80c>
xor    %esi,%esi
test   $0x1,%r8b
je     196c <read_FITS_2D1file+0x7ac>
movq   (%rax,%rsi,2),%xmm0
movq   0x8(%rax,%rsi,2),%xmm1
punpcklwd %xmm0,%xmm0
psrad  $0x10,%xmm0
cvtdq2ps %xmm0,%xmm0
punpcklwd %xmm1,%xmm1
psrad  $0x10,%xmm1
cvtdq2ps %xmm1,%xmm1
movups %xmm0,(%rbx,%rsi,4)
movups %xmm1,0x10(%rbx,%rsi,4)
cmp    %rcx,%rdx
je     19cc <read_FITS_2D1file+0x80c>
movswl (%rax,%rdx,2),%esi
xorps  %xmm0,%xmm0
cvtsi2ss %esi,%xmm0
movss  %xmm0,(%rbx,%rdx,4)
add    $0x1,%rdx
cmp    %rdx,%rcx
jne    1971 <read_FITS_2D1file+0x7b1>
jmp    19cc <read_FITS_2D1file+0x80c>
xor    %edi,%edi
test   $0x1,%r8b
je     19b0 <read_FITS_2D1file+0x7f0>
movupd (%rax,%rdi,8),%xmm0
movupd 0x10(%rax,%rdi,8),%xmm1
cvtpd2ps %xmm0,%xmm0
cvtpd2ps %xmm1,%xmm1
unpcklpd %xmm1,%xmm0
movupd %xmm0,(%rbx,%rdi,4)
cmp    %rcx,%rdx
je     19cc <read_FITS_2D1file+0x80c>
movsd  (%rax,%rdx,8),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,(%rbx,%rdx,4)
add    $0x1,%rdx
cmp    %rdx,%rcx
jne    19b5 <read_FITS_2D1file+0x7f5>
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
movsd  0x20(%rsp),%xmm0
movsd  0x61c(%rip),%xmm1
addsd  %xmm0,%xmm1
andpd  0x620(%rip),%xmm1
ucomisd 0x610(%rip),%xmm1
jbe    1b55 <read_FITS_2D1file+0x995>
test   %r14d,%r14d
jle    1b55 <read_FITS_2D1file+0x995>
mov    %r14d,%eax
cmp    $0x8,%r14d
jae    1a17 <read_FITS_2D1file+0x857>
xor    %ecx,%ecx
jmp    1b36 <read_FITS_2D1file+0x976>
mov    %eax,%ecx
and    $0xfffffff8,%ecx
movapd %xmm0,%xmm1
unpcklpd %xmm0,%xmm1
lea    -0x8(%rcx),%rdx
mov    %rdx,%rsi
shr    $0x3,%rsi
add    $0x1,%rsi
test   %rdx,%rdx
je     1ae3 <read_FITS_2D1file+0x923>
mov    %rsi,%rdi
and    $0xfffffffffffffffe,%rdi
xor    %edx,%edx
cvtps2pd 0x8(%rbx,%rdx,4),%xmm2
cvtps2pd (%rbx,%rdx,4),%xmm3
cvtps2pd 0x18(%rbx,%rdx,4),%xmm4
cvtps2pd 0x10(%rbx,%rdx,4),%xmm5
mulpd  %xmm1,%xmm3
mulpd  %xmm1,%xmm2
mulpd  %xmm1,%xmm5
mulpd  %xmm1,%xmm4
cvtpd2ps %xmm2,%xmm2
cvtpd2ps %xmm3,%xmm3
cvtpd2ps %xmm4,%xmm4
unpcklpd %xmm2,%xmm3
cvtpd2ps %xmm5,%xmm2
unpcklpd %xmm4,%xmm2
movupd %xmm3,(%rbx,%rdx,4)
movupd %xmm2,0x10(%rbx,%rdx,4)
cvtps2pd 0x28(%rbx,%rdx,4),%xmm2
cvtps2pd 0x20(%rbx,%rdx,4),%xmm3
cvtps2pd 0x38(%rbx,%rdx,4),%xmm4
cvtps2pd 0x30(%rbx,%rdx,4),%xmm5
mulpd  %xmm1,%xmm3
mulpd  %xmm1,%xmm2
mulpd  %xmm1,%xmm5
mulpd  %xmm1,%xmm4
cvtpd2ps %xmm2,%xmm2
cvtpd2ps %xmm3,%xmm3
cvtpd2ps %xmm4,%xmm4
unpcklpd %xmm2,%xmm3
cvtpd2ps %xmm5,%xmm2
unpcklpd %xmm4,%xmm2
movupd %xmm3,0x20(%rbx,%rdx,4)
movupd %xmm2,0x30(%rbx,%rdx,4)
add    $0x10,%rdx
add    $0xfffffffffffffffe,%rdi
jne    1a45 <read_FITS_2D1file+0x885>
jmp    1ae5 <read_FITS_2D1file+0x925>
xor    %edx,%edx
test   $0x1,%sil
je     1b31 <read_FITS_2D1file+0x971>
cvtps2pd 0x8(%rbx,%rdx,4),%xmm2
cvtps2pd (%rbx,%rdx,4),%xmm3
cvtps2pd 0x18(%rbx,%rdx,4),%xmm4
cvtps2pd 0x10(%rbx,%rdx,4),%xmm5
mulpd  %xmm1,%xmm3
mulpd  %xmm1,%xmm2
mulpd  %xmm1,%xmm5
mulpd  %xmm1,%xmm4
cvtpd2ps %xmm2,%xmm1
cvtpd2ps %xmm3,%xmm2
cvtpd2ps %xmm4,%xmm3
cvtpd2ps %xmm5,%xmm4
unpcklpd %xmm1,%xmm2
unpcklpd %xmm3,%xmm4
movupd %xmm2,(%rbx,%rdx,4)
movupd %xmm4,0x10(%rbx,%rdx,4)
cmp    %rax,%rcx
je     1b55 <read_FITS_2D1file+0x995>
movss  (%rbx,%rcx,4),%xmm1
cvtss2sd %xmm1,%xmm1
mulsd  %xmm0,%xmm1
cvtsd2ss %xmm1,%xmm1
movss  %xmm1,(%rbx,%rcx,4)
add    $0x1,%rcx
cmp    %rcx,%rax
jne    1b36 <read_FITS_2D1file+0x976>
movsd  0x28(%rsp),%xmm0
movapd 0x4ad(%rip),%xmm1
andpd  %xmm0,%xmm1
ucomisd 0x499(%rip),%xmm1
jbe    1ccc <read_FITS_2D1file+0xb0c>
test   %r14d,%r14d
jle    1ccc <read_FITS_2D1file+0xb0c>
mov    %r14d,%eax
cmp    $0x8,%r14d
jae    1b8e <read_FITS_2D1file+0x9ce>
xor    %ecx,%ecx
jmp    1cad <read_FITS_2D1file+0xaed>
mov    %eax,%ecx
and    $0xfffffff8,%ecx
movapd %xmm0,%xmm1
unpcklpd %xmm0,%xmm1
lea    -0x8(%rcx),%rdx
mov    %rdx,%rsi
shr    $0x3,%rsi
add    $0x1,%rsi
test   %rdx,%rdx
je     1c5a <read_FITS_2D1file+0xa9a>
mov    %rsi,%rdi
and    $0xfffffffffffffffe,%rdi
xor    %edx,%edx
cvtps2pd 0x8(%rbx,%rdx,4),%xmm2
cvtps2pd (%rbx,%rdx,4),%xmm3
cvtps2pd 0x18(%rbx,%rdx,4),%xmm4
cvtps2pd 0x10(%rbx,%rdx,4),%xmm5
addpd  %xmm1,%xmm3
addpd  %xmm1,%xmm2
addpd  %xmm1,%xmm5
addpd  %xmm1,%xmm4
cvtpd2ps %xmm2,%xmm2
cvtpd2ps %xmm3,%xmm3
cvtpd2ps %xmm4,%xmm4
unpcklpd %xmm2,%xmm3
cvtpd2ps %xmm5,%xmm2
unpcklpd %xmm4,%xmm2
movupd %xmm3,(%rbx,%rdx,4)
movupd %xmm2,0x10(%rbx,%rdx,4)
cvtps2pd 0x28(%rbx,%rdx,4),%xmm2
cvtps2pd 0x20(%rbx,%rdx,4),%xmm3
cvtps2pd 0x38(%rbx,%rdx,4),%xmm4
cvtps2pd 0x30(%rbx,%rdx,4),%xmm5
addpd  %xmm1,%xmm3
addpd  %xmm1,%xmm2
addpd  %xmm1,%xmm5
addpd  %xmm1,%xmm4
cvtpd2ps %xmm2,%xmm2
cvtpd2ps %xmm3,%xmm3
cvtpd2ps %xmm4,%xmm4
unpcklpd %xmm2,%xmm3
cvtpd2ps %xmm5,%xmm2
unpcklpd %xmm4,%xmm2
movupd %xmm3,0x20(%rbx,%rdx,4)
movupd %xmm2,0x30(%rbx,%rdx,4)
add    $0x10,%rdx
add    $0xfffffffffffffffe,%rdi
jne    1bbc <read_FITS_2D1file+0x9fc>
jmp    1c5c <read_FITS_2D1file+0xa9c>
xor    %edx,%edx
test   $0x1,%sil
je     1ca8 <read_FITS_2D1file+0xae8>
cvtps2pd 0x8(%rbx,%rdx,4),%xmm2
cvtps2pd (%rbx,%rdx,4),%xmm3
cvtps2pd 0x18(%rbx,%rdx,4),%xmm4
cvtps2pd 0x10(%rbx,%rdx,4),%xmm5
addpd  %xmm1,%xmm3
addpd  %xmm1,%xmm2
addpd  %xmm1,%xmm5
addpd  %xmm1,%xmm4
cvtpd2ps %xmm2,%xmm1
cvtpd2ps %xmm3,%xmm2
cvtpd2ps %xmm4,%xmm3
cvtpd2ps %xmm5,%xmm4
unpcklpd %xmm1,%xmm2
unpcklpd %xmm3,%xmm4
movupd %xmm2,(%rbx,%rdx,4)
movupd %xmm4,0x10(%rbx,%rdx,4)
cmp    %rax,%rcx
je     1ccc <read_FITS_2D1file+0xb0c>
movss  (%rbx,%rcx,4),%xmm1
cvtss2sd %xmm1,%xmm1
addsd  %xmm0,%xmm1
cvtsd2ss %xmm1,%xmm1
movss  %xmm1,(%rbx,%rcx,4)
add    $0x1,%rcx
cmp    %rcx,%rax
jne    1cad <read_FITS_2D1file+0xaed>
mov    0x14(%rsp),%eax
mov    %eax,0x0(%rbp)
mov    0x10(%rsp),%eax
mov    0x38(%rsp),%rcx
mov    %eax,(%rcx)
mov    (%rsp),%rax
mov    %rax,0x0(%r13)
mov    0x30(%rsp),%rax
mov    %r12d,(%rax)
jmp    14b2 <read_FITS_2D1file+0x2f2>
movabs $0x3ffffffffffffffe,%rcx
ff ff 3f
add    $0xfffffffffffffffe,%rcx
and    %rcx,%rdi
xor    %esi,%esi
movups (%rax,%rsi,4),%xmm0
movups 0x10(%rax,%rsi,4),%xmm1
movups %xmm0,(%rbx,%rsi,4)
movups %xmm1,0x10(%rbx,%rsi,4)
movups 0x20(%rax,%rsi,4),%xmm0
movups 0x30(%rax,%rsi,4),%xmm1
movups %xmm0,0x20(%rbx,%rsi,4)
movups %xmm1,0x30(%rbx,%rsi,4)
movups 0x40(%rax,%rsi,4),%xmm0
movups 0x50(%rax,%rsi,4),%xmm1
movups %xmm0,0x40(%rbx,%rsi,4)
movups %xmm1,0x50(%rbx,%rsi,4)
movupd 0x60(%rax,%rsi,4),%xmm0
movupd 0x70(%rax,%rsi,4),%xmm1
movupd %xmm0,0x60(%rbx,%rsi,4)
movupd %xmm1,0x70(%rbx,%rsi,4)
add    $0x20,%rsi
add    $0xfffffffffffffffc,%rdi
jne    1d06 <read_FITS_2D1file+0xb46>
test   %r8,%r8
je     1d9c <read_FITS_2D1file+0xbdc>
lea    (%rbx,%rsi,4),%rdi
add    $0x10,%rdi
lea    (%rax,%rsi,4),%rsi
add    $0x10,%rsi
shl    $0x5,%r8
xor    %ecx,%ecx
movupd -0x10(%rsi,%rcx,1),%xmm0
movupd (%rsi,%rcx,1),%xmm1
movupd %xmm0,-0x10(%rdi,%rcx,1)
movupd %xmm1,(%rdi,%rcx,1)
add    $0x20,%rcx
cmp    %rcx,%r8
jne    1d7d <read_FITS_2D1file+0xbbd>
cmp    %r9,%rdx
je     19cc <read_FITS_2D1file+0x80c>
jmp    1568 <read_FITS_2D1file+0x3a8>
xor    %esi,%esi
test   $0x1,%r8b
je     1ddf <read_FITS_2D1file+0xc1f>
movd   (%rax,%rsi,1),%xmm0
movd   0x4(%rax,%rsi,1),%xmm1
xorps  %xmm2,%xmm2
punpcklbw %xmm2,%xmm0
punpcklwd %xmm2,%xmm0
cvtdq2ps %xmm0,%xmm0
punpcklbw %xmm2,%xmm1
punpcklwd %xmm2,%xmm1
cvtdq2ps %xmm1,%xmm1
movups %xmm0,(%rbx,%rsi,4)
movups %xmm1,0x10(%rbx,%rsi,4)
cmp    %r9,%rdx
je     19cc <read_FITS_2D1file+0x80c>
jmp    15fe <read_FITS_2D1file+0x43e>

LLVM IR (-O0):
@.str = [2 x i8] c"r\00"
@.str.1 = [55 x i8] c"\0A\09ERROR! read_FITS_2D1file(): incorrect header length\0A\00"
@.str.2 = [54 x i8] c"\0A\09ERROR! read_FITS_2D1file(): incorrect image length\0A\00"
@.str.3 = [53 x i8] c"\0A\09WARNING! read_FITS_2D1file(%s): cannot close file\0A\00"
@.str.4 = [6 x i8] c"NAXIS\00"
@.str.5 = [63 x i8] c"\0A\09ERROR! read_FITS_2D1file(%s): NAXIS not found in the header\0A\00"
@.str.6 = [3 x i8] c"%d\00"
@.str.7 = [47 x i8] c"\0A\09ERROR! read_FITS_2D1file(%s): reading NAXIS\0A\00"
@.str.8 = [56 x i8] c"\0A\09ERROR! read_FITS_2D1file(%s): NAXIS= %d (expected 2)\0A\00"
@.str.9 = [7 x i8] c"NAXIS1\00"
@.str.10 = [60 x i8] c"\0A\09ERROR! read_FITS_2D1file(%s): NAXIS1 not found in header\0A\00"
@.str.11 = [48 x i8] c"\0A\09ERROR! read_FITS_2D1file(%s): reading NAXIS1\0A\00"
@.str.12 = [7 x i8] c"NAXIS2\00"
@.str.13 = [60 x i8] c"\0A\09ERROR! read_FITS_2D1file(%s): NAXIS2 not found in header\0A\00"
@.str.14 = [48 x i8] c"\0A\09ERROR! read_FITS_2D1file(%s): reading NAXIS2\0A\00"
@.str.15 = [7 x i8] c"BITPIX\00"
@.str.16 = [60 x i8] c"\0A\09ERROR! read_FITS_2D1file(%s): BITPIX not found in header\0A\00"
@.str.17 = [48 x i8] c"\0A\09ERROR! read_FITS_2D1file(%s): reading BITPIX\0A\00"
@.str.18 = [6 x i8] c"BZERO\00"
@.str.19 = [4 x i8] c"%lg\00"
@.str.20 = [47 x i8] c"\0A\09ERROR! read_FITS_2D1file(%s): reading BZERO\0A\00"
@.str.21 = [7 x i8] c"BSCALE\00"
@.str.22 = [48 x i8] c"\0A\09ERROR! read_FITS_2D1file(%s): reading BSCALE\0A\00"
@.str.23 = [44 x i8] c"\0A\09ERROR! read_FITS_2D1file(): calloc(ldata)\00"
@.str.24 = [44 x i8] c"\0A\09ERROR! read_FITS_2D1file(%s): bitpix= %d\0A\00"
define float* @read_FITS_2D1file(i8* %0, i32* %1, i8*** %2, i32* %3, i32* %4) {
%6 = alloca float*
%7 = alloca i8*
%8 = alloca i32*
%9 = alloca i8***
%10 = alloca i32*
%11 = alloca i32*
%12 = alloca i8*
%13 = alloca [70 x i8]
%14 = alloca i8**
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca float*
%23 = alloca double
%24 = alloca double
%25 = alloca i32*
store i8* %0, i8** %7
store i32* %1, i32** %8
store i8*** %2, i8**** %9
store i32* %3, i32** %10
store i32* %4, i32** %11
%26 = getelementptr inbounds [70 x i8], [70 x i8]* %13, i64 0, i64 0
%27 = call i32 @memset(i8* %26, i8 signext 32, i32 70)
%28 = load i8*, i8** %7
%29 = call i32* @fopen(i8* %28, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %29, i32** %25
%30 = icmp eq i32* %29, null
br i1 %30, label %31, label %34
31: ; preds = %5
%32 = load i8*, i8** %7
%33 = call i32 @perror(i8* %32)
store float* null, float** %6
br label %331
34: ; preds = %5
%35 = load i32*, i32** %25
%36 = call i32 @read_FITS_header(i32* %35, i8*** %14)
store i32 %36, i32* %16
%37 = icmp slt i32 %36, 36
br i1 %37, label %38, label %40
38: ; preds = %34
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0))
store float* null, float** %6
br label %331
40: ; preds = %34
%41 = load i32*, i32** %25
%42 = load i8**, i8*** %14
%43 = load i32, i32* %16
%44 = call i32 @read_FITS_image(i32* %41, i8** %42, i32 %43, i8** %12)
store i32 %44, i32* %21
%45 = icmp slt i32 %44, 1
br i1 %45, label %46, label %48
46: ; preds = %40
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0))
store float* null, float** %6
br label %331
48: ; preds = %40
%49 = load i32*, i32** %25
%50 = call i64 @fclose(i32* %49)
%51 = icmp ne i64 %50, 0
br i1 %51, label %52, label %55
52: ; preds = %48
%53 = load i8*, i8** %7
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.3, i64 0, i64 0), i8* %53)
br label %55
55: ; preds = %52, %48
%56 = load i32, i32* %16
%57 = load i8**, i8*** %14
%58 = getelementptr inbounds [70 x i8], [70 x i8]* %13, i64 0, i64 0
%59 = call i32 @get_FITS_key(i32 %56, i8** %57, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* %58)
%60 = icmp eq i32 %59, -1
br i1 %60, label %61, label %64
61: ; preds = %55
%62 = load i8*, i8** %7
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.5, i64 0, i64 0), i8* %62)
store float* null, float** %6
br label %331
64: ; preds = %55
%65 = getelementptr inbounds [70 x i8], [70 x i8]* %13, i64 0, i64 0
%66 = call i32 (i8*, i8*, ...) @sscanf(i8* %65, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %18)
%67 = icmp slt i32 %66, 1
br i1 %67, label %68, label %71
68: ; preds = %64
%69 = load i8*, i8** %7
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0), i8* %69)
store float* null, float** %6
br label %331
71: ; preds = %64
%72 = load i32, i32* %18
%73 = icmp ne i32 %72, 2
br i1 %73, label %74, label %78
74: ; preds = %71
%75 = load i8*, i8** %7
%76 = load i32, i32* %18
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.8, i64 0, i64 0), i8* %75, i32 %76)
store float* null, float** %6
br label %331
78: ; preds = %71
%79 = load i32, i32* %16
%80 = load i8**, i8*** %14
%81 = getelementptr inbounds [70 x i8], [70 x i8]* %13, i64 0, i64 0
%82 = call i32 @get_FITS_key(i32 %79, i8** %80, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i8* %81)
%83 = icmp eq i32 %82, -1
br i1 %83, label %84, label %87
84: ; preds = %78
%85 = load i8*, i8** %7
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.10, i64 0, i64 0), i8* %85)
store float* null, float** %6
br label %331
87: ; preds = %78
%88 = getelementptr inbounds [70 x i8], [70 x i8]* %13, i64 0, i64 0
%89 = call i32 (i8*, i8*, ...) @sscanf(i8* %88, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %19)
%90 = icmp slt i32 %89, 1
br i1 %90, label %91, label %94
91: ; preds = %87
%92 = load i8*, i8** %7
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.11, i64 0, i64 0), i8* %92)
store float* null, float** %6
br label %331
94: ; preds = %87
%95 = load i32, i32* %16
%96 = load i8**, i8*** %14
%97 = getelementptr inbounds [70 x i8], [70 x i8]* %13, i64 0, i64 0
%98 = call i32 @get_FITS_key(i32 %95, i8** %96, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0), i8* %97)
%99 = icmp eq i32 %98, -1
br i1 %99, label %100, label %103
100: ; preds = %94
%101 = load i8*, i8** %7
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.13, i64 0, i64 0), i8* %101)
store float* null, float** %6
br label %331
103: ; preds = %94
%104 = getelementptr inbounds [70 x i8], [70 x i8]* %13, i64 0, i64 0
%105 = call i32 (i8*, i8*, ...) @sscanf(i8* %104, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %20)
%106 = icmp slt i32 %105, 1
br i1 %106, label %107, label %110
107: ; preds = %103
%108 = load i8*, i8** %7
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.14, i64 0, i64 0), i8* %108)
store float* null, float** %6
br label %331
110: ; preds = %103
%111 = load i32, i32* %16
%112 = load i8**, i8*** %14
%113 = getelementptr inbounds [70 x i8], [70 x i8]* %13, i64 0, i64 0
%114 = call i32 @get_FITS_key(i32 %111, i8** %112, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.15, i64 0, i64 0), i8* %113)
%115 = icmp eq i32 %114, -1
br i1 %115, label %116, label %119
116: ; preds = %110
%117 = load i8*, i8** %7
%118 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.16, i64 0, i64 0), i8* %117)
store float* null, float** %6
br label %331
119: ; preds = %110
%120 = getelementptr inbounds [70 x i8], [70 x i8]* %13, i64 0, i64 0
%121 = call i32 (i8*, i8*, ...) @sscanf(i8* %120, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %17)
%122 = icmp slt i32 %121, 1
br i1 %122, label %123, label %126
123: ; preds = %119
%124 = load i8*, i8** %7
%125 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.17, i64 0, i64 0), i8* %124)
store float* null, float** %6
br label %331
126: ; preds = %119
%127 = load i32, i32* %16
%128 = load i8**, i8*** %14
%129 = getelementptr inbounds [70 x i8], [70 x i8]* %13, i64 0, i64 0
%130 = call i32 @get_FITS_key(i32 %127, i8** %128, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.18, i64 0, i64 0), i8* %129)
%131 = icmp eq i32 %130, -1
br i1 %131, label %132, label %133
132: ; preds = %126
store double 0.000000e+00, double* %23
br label %141
133: ; preds = %126
%134 = getelementptr inbounds [70 x i8], [70 x i8]* %13, i64 0, i64 0
%135 = call i32 (i8*, i8*, ...) @sscanf(i8* %134, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0), double* %23)
%136 = icmp slt i32 %135, 1
br i1 %136, label %137, label %140
137: ; preds = %133
%138 = load i8*, i8** %7
%139 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.20, i64 0, i64 0), i8* %138)
store float* null, float** %6
br label %331
140: ; preds = %133
br label %141
141: ; preds = %140, %132
%142 = load i32, i32* %16
%143 = load i8**, i8*** %14
%144 = getelementptr inbounds [70 x i8], [70 x i8]* %13, i64 0, i64 0
%145 = call i32 @get_FITS_key(i32 %142, i8** %143, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0), i8* %144)
%146 = icmp eq i32 %145, -1
br i1 %146, label %147, label %148
147: ; preds = %141
store double 1.000000e+00, double* %24
br label %156
148: ; preds = %141
%149 = getelementptr inbounds [70 x i8], [70 x i8]* %13, i64 0, i64 0
%150 = call i32 (i8*, i8*, ...) @sscanf(i8* %149, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0), double* %24)
%151 = icmp slt i32 %150, 1
br i1 %151, label %152, label %155
152: ; preds = %148
%153 = load i8*, i8** %7
%154 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.22, i64 0, i64 0), i8* %153)
store float* null, float** %6
br label %331
155: ; preds = %148
br label %156
156: ; preds = %155, %147
%157 = load i32, i32* %21
%158 = call i64 @calloc(i32 %157, i32 4)
%159 = inttoptr i64 %158 to float*
store float* %159, float** %22
%160 = icmp eq float* %159, null
br i1 %160, label %161, label %163
161: ; preds = %156
%162 = call i32 @perror(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.23, i64 0, i64 0))
store float* null, float** %6
br label %331
163: ; preds = %156
%164 = load i32, i32* %17
switch i32 %164, label %268 [
i32 8, label %165
i32 16, label %185
i32 32, label %206
i32 -32, label %227
i32 -64, label %247
]
165: ; preds = %163
store i32 0, i32* %15
br label %166
166: ; preds = %181, %165
%167 = load i32, i32* %15
%168 = load i32, i32* %21
%169 = icmp slt i32 %167, %168
br i1 %169, label %170, label %184
170: ; preds = %166
%171 = load i8*, i8** %12
%172 = load i32, i32* %15
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds i8, i8* %171, i64 %173
%175 = load i8, i8* %174
%176 = uitofp i8 %175 to float
%177 = load float*, float** %22
%178 = load i32, i32* %15
%179 = sext i32 %178 to i64
%180 = getelementptr inbounds float, float* %177, i64 %179
store float %176, float* %180
br label %181
181: ; preds = %170
%182 = load i32, i32* %15
%183 = add nsw i32 %182, 1
store i32 %183, i32* %15
br label %166
184: ; preds = %166
br label %272
185: ; preds = %163
store i32 0, i32* %15
br label %186
186: ; preds = %202, %185
%187 = load i32, i32* %15
%188 = load i32, i32* %21
%189 = icmp slt i32 %187, %188
br i1 %189, label %190, label %205
190: ; preds = %186
%191 = load i8*, i8** %12
%192 = bitcast i8* %191 to i16*
%193 = load i32, i32* %15
%194 = sext i32 %193 to i64
%195 = getelementptr inbounds i16, i16* %192, i64 %194
%196 = load i16, i16* %195
%197 = sitofp i16 %196 to float
%198 = load float*, float** %22
%199 = load i32, i32* %15
%200 = sext i32 %199 to i64
%201 = getelementptr inbounds float, float* %198, i64 %200
store float %197, float* %201
br label %202
202: ; preds = %190
%203 = load i32, i32* %15
%204 = add nsw i32 %203, 1
store i32 %204, i32* %15
br label %186
205: ; preds = %186
br label %272
206: ; preds = %163
store i32 0, i32* %15
br label %207
207: ; preds = %223, %206
%208 = load i32, i32* %15
%209 = load i32, i32* %21
%210 = icmp slt i32 %208, %209
br i1 %210, label %211, label %226
211: ; preds = %207
%212 = load i8*, i8** %12
%213 = bitcast i8* %212 to i32*
%214 = load i32, i32* %15
%215 = sext i32 %214 to i64
%216 = getelementptr inbounds i32, i32* %213, i64 %215
%217 = load i32, i32* %216
%218 = sitofp i32 %217 to float
%219 = load float*, float** %22
%220 = load i32, i32* %15
%221 = sext i32 %220 to i64
%222 = getelementptr inbounds float, float* %219, i64 %221
store float %218, float* %222
br label %223
223: ; preds = %211
%224 = load i32, i32* %15
%225 = add nsw i32 %224, 1
store i32 %225, i32* %15
br label %207
226: ; preds = %207
br label %272
227: ; preds = %163
store i32 0, i32* %15
br label %228
228: ; preds = %243, %227
%229 = load i32, i32* %15
%230 = load i32, i32* %21
%231 = icmp slt i32 %229, %230
br i1 %231, label %232, label %246
232: ; preds = %228
%233 = load i8*, i8** %12
%234 = bitcast i8* %233 to float*
%235 = load i32, i32* %15
%236 = sext i32 %235 to i64
%237 = getelementptr inbounds float, float* %234, i64 %236
%238 = load float, float* %237
%239 = load float*, float** %22
%240 = load i32, i32* %15
%241 = sext i32 %240 to i64
%242 = getelementptr inbounds float, float* %239, i64 %241
store float %238, float* %242
br label %243
243: ; preds = %232
%244 = load i32, i32* %15
%245 = add nsw i32 %244, 1
store i32 %245, i32* %15
br label %228
246: ; preds = %228
br label %272
247: ; preds = %163
store i32 0, i32* %15
br label %248
248: ; preds = %264, %247
%249 = load i32, i32* %15
%250 = load i32, i32* %21
%251 = icmp slt i32 %249, %250
br i1 %251, label %252, label %267
252: ; preds = %248
%253 = load i8*, i8** %12
%254 = bitcast i8* %253 to double*
%255 = load i32, i32* %15
%256 = sext i32 %255 to i64
%257 = getelementptr inbounds double, double* %254, i64 %256
%258 = load double, double* %257
%259 = fptrunc double %258 to float
%260 = load float*, float** %22
%261 = load i32, i32* %15
%262 = sext i32 %261 to i64
%263 = getelementptr inbounds float, float* %260, i64 %262
store float %259, float* %263
br label %264
264: ; preds = %252
%265 = load i32, i32* %15
%266 = add nsw i32 %265, 1
store i32 %266, i32* %15
br label %248
267: ; preds = %248
br label %272
268: ; preds = %163
%269 = load i8*, i8** %7
%270 = load i32, i32* %17
%271 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.24, i64 0, i64 0), i8* %269, i32 %270)
store float* null, float** %6
br label %331
272: ; preds = %267, %246, %226, %205, %184
%273 = load i8*, i8** %12
%274 = call i32 @free(i8* %273)
%275 = load double, double* %24
%276 = fsub double %275, 1.000000e+00
%277 = call double @llvm.fabs.f64(double %276)
%278 = fcmp ogt double %277, 1.000000e-15
br i1 %278, label %279, label %298
279: ; preds = %272
store i32 0, i32* %15
br label %280
280: ; preds = %294, %279
%281 = load i32, i32* %15
%282 = load i32, i32* %21
%283 = icmp slt i32 %281, %282
br i1 %283, label %284, label %297
284: ; preds = %280
%285 = load double, double* %24
%286 = load float*, float** %22
%287 = load i32, i32* %15
%288 = sext i32 %287 to i64
%289 = getelementptr inbounds float, float* %286, i64 %288
%290 = load float, float* %289
%291 = fpext float %290 to double
%292 = fmul double %291, %285
%293 = fptrunc double %292 to float
store float %293, float* %289
br label %294
294: ; preds = %284
%295 = load i32, i32* %15
%296 = add nsw i32 %295, 1
store i32 %296, i32* %15
br label %280
297: ; preds = %280
br label %298
298: ; preds = %297, %272
%299 = load double, double* %23
%300 = call double @llvm.fabs.f64(double %299)
%301 = fcmp ogt double %300, 1.000000e-15
br i1 %301, label %302, label %321
302: ; preds = %298
store i32 0, i32* %15
br label %303
303: ; preds = %317, %302
%304 = load i32, i32* %15
%305 = load i32, i32* %21
%306 = icmp slt i32 %304, %305
br i1 %306, label %307, label %320
307: ; preds = %303
%308 = load double, double* %23
%309 = load float*, float** %22
%310 = load i32, i32* %15
%311 = sext i32 %310 to i64
%312 = getelementptr inbounds float, float* %309, i64 %311
%313 = load float, float* %312
%314 = fpext float %313 to double
%315 = fadd double %314, %308
%316 = fptrunc double %315 to float
store float %316, float* %312
br label %317
317: ; preds = %307
%318 = load i32, i32* %15
%319 = add nsw i32 %318, 1
store i32 %319, i32* %15
br label %303
320: ; preds = %303
br label %321
321: ; preds = %320, %298
%322 = load i32, i32* %19
%323 = load i32*, i32** %10
store i32 %322, i32* %323
%324 = load i32, i32* %20
%325 = load i32*, i32** %11
store i32 %324, i32* %325
%326 = load i8**, i8*** %14
%327 = load i8***, i8**** %9
store i8** %326, i8*** %327
%328 = load i32, i32* %16
%329 = load i32*, i32** %8
store i32 %328, i32* %329
%330 = load float*, float** %22
store float* %330, float** %6
br label %331
331: ; preds = %321, %268, %161, %152, %137, %123, %116, %107, %100, %91, %84, %74, %68, %61, %46, %38, %31
%332 = load float*, float** %6
ret float* %332
}

LLVM IR (-O2):
@.str = [2 x i8] c"r\00"
@.str.3 = [53 x i8] c"\0A\09WARNING! read_FITS_2D1file(%s): cannot close file\0A\00"
@.str.4 = [6 x i8] c"NAXIS\00"
@.str.5 = [63 x i8] c"\0A\09ERROR! read_FITS_2D1file(%s): NAXIS not found in the header\0A\00"
@.str.6 = [3 x i8] c"%d\00"
@.str.7 = [47 x i8] c"\0A\09ERROR! read_FITS_2D1file(%s): reading NAXIS\0A\00"
@.str.8 = [56 x i8] c"\0A\09ERROR! read_FITS_2D1file(%s): NAXIS= %d (expected 2)\0A\00"
@.str.9 = [7 x i8] c"NAXIS1\00"
@.str.10 = [60 x i8] c"\0A\09ERROR! read_FITS_2D1file(%s): NAXIS1 not found in header\0A\00"
@.str.11 = [48 x i8] c"\0A\09ERROR! read_FITS_2D1file(%s): reading NAXIS1\0A\00"
@.str.12 = [7 x i8] c"NAXIS2\00"
@.str.13 = [60 x i8] c"\0A\09ERROR! read_FITS_2D1file(%s): NAXIS2 not found in header\0A\00"
@.str.14 = [48 x i8] c"\0A\09ERROR! read_FITS_2D1file(%s): reading NAXIS2\0A\00"
@.str.15 = [7 x i8] c"BITPIX\00"
@.str.16 = [60 x i8] c"\0A\09ERROR! read_FITS_2D1file(%s): BITPIX not found in header\0A\00"
@.str.17 = [48 x i8] c"\0A\09ERROR! read_FITS_2D1file(%s): reading BITPIX\0A\00"
@.str.18 = [6 x i8] c"BZERO\00"
@.str.19 = [4 x i8] c"%lg\00"
@.str.20 = [47 x i8] c"\0A\09ERROR! read_FITS_2D1file(%s): reading BZERO\0A\00"
@.str.21 = [7 x i8] c"BSCALE\00"
@.str.22 = [48 x i8] c"\0A\09ERROR! read_FITS_2D1file(%s): reading BSCALE\0A\00"
@.str.23 = [44 x i8] c"\0A\09ERROR! read_FITS_2D1file(): calloc(ldata)\00"
@.str.24 = [44 x i8] c"\0A\09ERROR! read_FITS_2D1file(%s): bitpix= %d\0A\00"
@str = [53 x i8] c"\0A\09ERROR! read_FITS_2D1file(): incorrect image length\00"
@str.25 = [54 x i8] c"\0A\09ERROR! read_FITS_2D1file(): incorrect header length\00"
define float* @read_FITS_2D1file(i8* %0, i32* nocapture writeonly %1, i8*** nocapture writeonly %2, i32* nocapture writeonly %3, i32* nocapture writeonly %4) {
%6 = alloca i8*
%7 = alloca [70 x i8]
%8 = alloca i8**
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca double
%14 = alloca double
%15 = bitcast i8** %6 to i8*
%16 = getelementptr inbounds [70 x i8], [70 x i8]* %7, i64 0, i64 0
%17 = bitcast i8*** %8 to i8*
%18 = bitcast i32* %9 to i8*
%19 = bitcast i32* %10 to i8*
%20 = bitcast i32* %11 to i8*
%21 = bitcast i32* %12 to i8*
%22 = bitcast double* %13 to i8*
%23 = bitcast double* %14 to i8*
%24 = call i32 @memset(i8* %16, i8 signext 32, i32 70)
%25 = call i32* @fopen(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%26 = icmp eq i32* %25, null
br i1 %26, label %27, label %29
27: ; preds = %5
%28 = call i32 @perror(i8* %0)
br label %765
29: ; preds = %5
%30 = call i32 @read_FITS_header(i32* %25, i8*** %8)
%31 = icmp slt i32 %30, 36
br i1 %31, label %32, label %34
32: ; preds = %29
%33 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.25, i64 0, i64 0))
br label %765
34: ; preds = %29
%35 = load i8**, i8*** %8
%36 = call i32 @read_FITS_image(i32* %25, i8** %35, i32 %30, i8** %6)
%37 = icmp slt i32 %36, 1
br i1 %37, label %38, label %40
38: ; preds = %34
%39 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str, i64 0, i64 0))
br label %765
40: ; preds = %34
%41 = call i64 @fclose(i32* %25)
%42 = icmp eq i64 %41, 0
br i1 %42, label %45, label %43
43: ; preds = %40
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.3, i64 0, i64 0), i8* %0)
br label %45
45: ; preds = %43, %40
%46 = load i8**, i8*** %8
%47 = call i32 @get_FITS_key(i32 %30, i8** %46, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* %16)
%48 = icmp eq i32 %47, -1
br i1 %48, label %49, label %51
49: ; preds = %45
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @.str.5, i64 0, i64 0), i8* %0)
br label %765
51: ; preds = %45
%52 = call i32 (i8*, i8*, ...) @sscanf(i8* %16, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %10)
%53 = icmp slt i32 %52, 1
br i1 %53, label %54, label %56
54: ; preds = %51
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0), i8* %0)
br label %765
56: ; preds = %51
%57 = load i32, i32* %10
%58 = icmp eq i32 %57, 2
br i1 %58, label %61, label %59
59: ; preds = %56
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.8, i64 0, i64 0), i8* %0, i32 %57)
br label %765
61: ; preds = %56
%62 = load i8**, i8*** %8
%63 = call i32 @get_FITS_key(i32 %30, i8** %62, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i8* %16)
%64 = icmp eq i32 %63, -1
br i1 %64, label %65, label %67
65: ; preds = %61
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @.str.10, i64 0, i64 0), i8* %0)
br label %765
67: ; preds = %61
%68 = call i32 (i8*, i8*, ...) @sscanf(i8* %16, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %11)
%69 = icmp slt i32 %68, 1
br i1 %69, label %70, label %72
70: ; preds = %67
%71 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.11, i64 0, i64 0), i8* %0)
br label %765
72: ; preds = %67
%73 = load i8**, i8*** %8
%74 = call i32 @get_FITS_key(i32 %30, i8** %73, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0), i8* %16)
%75 = icmp eq i32 %74, -1
br i1 %75, label %76, label %78
76: ; preds = %72
%77 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @.str.13, i64 0, i64 0), i8* %0)
br label %765
78: ; preds = %72
%79 = call i32 (i8*, i8*, ...) @sscanf(i8* %16, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %12)
%80 = icmp slt i32 %79, 1
br i1 %80, label %81, label %83
81: ; preds = %78
%82 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.14, i64 0, i64 0), i8* %0)
br label %765
83: ; preds = %78
%84 = load i8**, i8*** %8
%85 = call i32 @get_FITS_key(i32 %30, i8** %84, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.15, i64 0, i64 0), i8* %16)
%86 = icmp eq i32 %85, -1
br i1 %86, label %87, label %89
87: ; preds = %83
%88 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @.str.16, i64 0, i64 0), i8* %0)
br label %765
89: ; preds = %83
%90 = call i32 (i8*, i8*, ...) @sscanf(i8* %16, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %9)
%91 = icmp slt i32 %90, 1
br i1 %91, label %92, label %94
92: ; preds = %89
%93 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.17, i64 0, i64 0), i8* %0)
br label %765
94: ; preds = %89
%95 = load i8**, i8*** %8
%96 = call i32 @get_FITS_key(i32 %30, i8** %95, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.18, i64 0, i64 0), i8* %16)
%97 = icmp eq i32 %96, -1
br i1 %97, label %98, label %99
98: ; preds = %94
store double 0.000000e+00, double* %13
br label %104
99: ; preds = %94
%100 = call i32 (i8*, i8*, ...) @sscanf(i8* %16, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0), double* %13)
%101 = icmp slt i32 %100, 1
br i1 %101, label %102, label %104
102: ; preds = %99
%103 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.20, i64 0, i64 0), i8* %0)
br label %765
104: ; preds = %99, %98
%105 = load i8**, i8*** %8
%106 = call i32 @get_FITS_key(i32 %30, i8** %105, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0), i8* %16)
%107 = icmp eq i32 %106, -1
br i1 %107, label %108, label %109
108: ; preds = %104
store double 1.000000e+00, double* %14
br label %114
109: ; preds = %104
%110 = call i32 (i8*, i8*, ...) @sscanf(i8* %16, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0), double* %14)
%111 = icmp slt i32 %110, 1
br i1 %111, label %112, label %114
112: ; preds = %109
%113 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.22, i64 0, i64 0), i8* %0)
br label %765
114: ; preds = %109, %108
%115 = call i64 @calloc(i32 %36, i32 4)
%116 = inttoptr i64 %115 to float*
%117 = inttoptr i64 %115 to i8*
%118 = icmp eq i64 %115, 0
br i1 %118, label %119, label %121
119: ; preds = %114
%120 = call i32 @perror(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.23, i64 0, i64 0))
br label %765
121: ; preds = %114
%122 = load i32, i32* %9
switch i32 %122, label %581 [
i32 8, label %427
i32 16, label %362
i32 32, label %297
i32 -32, label %188
i32 -64, label %123
]
123: ; preds = %121
%124 = bitcast i8** %6 to double**
%125 = load double*, double** %124
%126 = zext i32 %36 to i64
%127 = icmp ult i32 %36, 4
br i1 %127, label %186, label %128
128: ; preds = %123
%129 = and i64 %126, 4294967292
%130 = add nsw i64 %129, -4
%131 = lshr exact i64 %130, 2
%132 = add nuw nsw i64 %131, 1
%133 = and i64 %132, 1
%134 = icmp eq i64 %130, 0
br i1 %134, label %168, label %135
135: ; preds = %128
%136 = and i64 %132, 9223372036854775806
br label %137
137: ; preds = %137, %135
%138 = phi i64 [ 0, %135 ], [ %165, %137 ]
%139 = phi i64 [ 0, %135 ], [ %166, %137 ]
%140 = getelementptr inbounds double, double* %125, i64 %138
%141 = bitcast double* %140 to <2 x double>*
%142 = load <2 x double>, <2 x double>* %141
%143 = getelementptr inbounds double, double* %140, i64 2
%144 = bitcast double* %143 to <2 x double>*
%145 = load <2 x double>, <2 x double>* %144
%146 = fptrunc <2 x double> %142 to <2 x float>
%147 = fptrunc <2 x double> %145 to <2 x float>
%148 = getelementptr inbounds float, float* %116, i64 %138
%149 = bitcast float* %148 to <2 x float>*
store <2 x float> %146, <2 x float>* %149
%150 = getelementptr inbounds float, float* %148, i64 2
%151 = bitcast float* %150 to <2 x float>*
store <2 x float> %147, <2 x float>* %151
%152 = or i64 %138, 4
%153 = getelementptr inbounds double, double* %125, i64 %152
%154 = bitcast double* %153 to <2 x double>*
%155 = load <2 x double>, <2 x double>* %154
%156 = getelementptr inbounds double, double* %153, i64 2
%157 = bitcast double* %156 to <2 x double>*
%158 = load <2 x double>, <2 x double>* %157
%159 = fptrunc <2 x double> %155 to <2 x float>
%160 = fptrunc <2 x double> %158 to <2 x float>
%161 = getelementptr inbounds float, float* %116, i64 %152
%162 = bitcast float* %161 to <2 x float>*
store <2 x float> %159, <2 x float>* %162
%163 = getelementptr inbounds float, float* %161, i64 2
%164 = bitcast float* %163 to <2 x float>*
store <2 x float> %160, <2 x float>* %164
%165 = add nuw i64 %138, 8
%166 = add i64 %139, 2
%167 = icmp eq i64 %166, %136
br i1 %167, label %168, label %137
168: ; preds = %137, %128
%169 = phi i64 [ 0, %128 ], [ %165, %137 ]
%170 = icmp eq i64 %133, 0
br i1 %170, label %184, label %171
171: ; preds = %168
%172 = getelementptr inbounds double, double* %125, i64 %169
%173 = bitcast double* %172 to <2 x double>*
%174 = load <2 x double>, <2 x double>* %173
%175 = getelementptr inbounds double, double* %172, i64 2
%176 = bitcast double* %175 to <2 x double>*
%177 = load <2 x double>, <2 x double>* %176
%178 = fptrunc <2 x double> %174 to <2 x float>
%179 = fptrunc <2 x double> %177 to <2 x float>
%180 = getelementptr inbounds float, float* %116, i64 %169
%181 = bitcast float* %180 to <2 x float>*
store <2 x float> %178, <2 x float>* %181
%182 = getelementptr inbounds float, float* %180, i64 2
%183 = bitcast float* %182 to <2 x float>*
store <2 x float> %179, <2 x float>* %183
br label %184
184: ; preds = %168, %171
%185 = icmp eq i64 %129, %126
br i1 %185, label %583, label %186
186: ; preds = %123, %184
%187 = phi i64 [ 0, %123 ], [ %129, %184 ]
br label %573
188: ; preds = %121
%189 = bitcast i8** %6 to float**
%190 = load float*, float** %189
%191 = zext i32 %36 to i64
%192 = icmp ult i32 %36, 8
br i1 %192, label %279, label %193
193: ; preds = %188
%194 = getelementptr float, float* %116, i64 %191
%195 = getelementptr float, float* %190, i64 %191
%196 = bitcast float* %195 to i8*
%197 = icmp ult i8* %117, %196
%198 = icmp ult float* %190, %194
%199 = and i1 %197, %198
br i1 %199, label %279, label %200
200: ; preds = %193
%201 = and i64 %191, 4294967288
%202 = add nsw i64 %201, -8
%203 = lshr exact i64 %202, 3
%204 = add nuw nsw i64 %203, 1
%205 = and i64 %204, 3
%206 = icmp ult i64 %202, 24
br i1 %206, label %258, label %207
207: ; preds = %200
%208 = and i64 %204, 4611686018427387900
br label %209
209: ; preds = %209, %207
%210 = phi i64 [ 0, %207 ], [ %255, %209 ]
%211 = phi i64 [ 0, %207 ], [ %256, %209 ]
%212 = getelementptr inbounds float, float* %190, i64 %210
%213 = bitcast float* %212 to <4 x float>*
%214 = load <4 x float>, <4 x float>* %213
%215 = getelementptr inbounds float, float* %212, i64 4
%216 = bitcast float* %215 to <4 x float>*
%217 = load <4 x float>, <4 x float>* %216
%218 = getelementptr inbounds float, float* %116, i64 %210
%219 = bitcast float* %218 to <4 x float>*
store <4 x float> %214, <4 x float>* %219
%220 = getelementptr inbounds float, float* %218, i64 4
%221 = bitcast float* %220 to <4 x float>*
store <4 x float> %217, <4 x float>* %221
%222 = or i64 %210, 8
%223 = getelementptr inbounds float, float* %190, i64 %222
%224 = bitcast float* %223 to <4 x float>*
%225 = load <4 x float>, <4 x float>* %224
%226 = getelementptr inbounds float, float* %223, i64 4
%227 = bitcast float* %226 to <4 x float>*
%228 = load <4 x float>, <4 x float>* %227
%229 = getelementptr inbounds float, float* %116, i64 %222
%230 = bitcast float* %229 to <4 x float>*
store <4 x float> %225, <4 x float>* %230
%231 = getelementptr inbounds float, float* %229, i64 4
%232 = bitcast float* %231 to <4 x float>*
store <4 x float> %228, <4 x float>* %232
%233 = or i64 %210, 16
%234 = getelementptr inbounds float, float* %190, i64 %233
%235 = bitcast float* %234 to <4 x float>*
%236 = load <4 x float>, <4 x float>* %235
%237 = getelementptr inbounds float, float* %234, i64 4
%238 = bitcast float* %237 to <4 x float>*
%239 = load <4 x float>, <4 x float>* %238
%240 = getelementptr inbounds float, float* %116, i64 %233
%241 = bitcast float* %240 to <4 x float>*
store <4 x float> %236, <4 x float>* %241
%242 = getelementptr inbounds float, float* %240, i64 4
%243 = bitcast float* %242 to <4 x float>*
store <4 x float> %239, <4 x float>* %243
%244 = or i64 %210, 24
%245 = getelementptr inbounds float, float* %190, i64 %244
%246 = bitcast float* %245 to <4 x float>*
%247 = load <4 x float>, <4 x float>* %246
%248 = getelementptr inbounds float, float* %245, i64 4
%249 = bitcast float* %248 to <4 x float>*
%250 = load <4 x float>, <4 x float>* %249
%251 = getelementptr inbounds float, float* %116, i64 %244
%252 = bitcast float* %251 to <4 x float>*
store <4 x float> %247, <4 x float>* %252
%253 = getelementptr inbounds float, float* %251, i64 4
%254 = bitcast float* %253 to <4 x float>*
store <4 x float> %250, <4 x float>* %254
%255 = add nuw i64 %210, 32
%256 = add i64 %211, 4
%257 = icmp eq i64 %256, %208
br i1 %257, label %258, label %209
258: ; preds = %209, %200
%259 = phi i64 [ 0, %200 ], [ %255, %209 ]
%260 = icmp eq i64 %205, 0
br i1 %260, label %277, label %261
261: ; preds = %258, %261
%262 = phi i64 [ %274, %261 ], [ %259, %258 ]
%263 = phi i64 [ %275, %261 ], [ 0, %258 ]
%264 = getelementptr inbounds float, float* %190, i64 %262
%265 = bitcast float* %264 to <4 x float>*
%266 = load <4 x float>, <4 x float>* %265
%267 = getelementptr inbounds float, float* %264, i64 4
%268 = bitcast float* %267 to <4 x float>*
%269 = load <4 x float>, <4 x float>* %268
%270 = getelementptr inbounds float, float* %116, i64 %262
%271 = bitcast float* %270 to <4 x float>*
store <4 x float> %266, <4 x float>* %271
%272 = getelementptr inbounds float, float* %270, i64 4
%273 = bitcast float* %272 to <4 x float>*
store <4 x float> %269, <4 x float>* %273
%274 = add nuw i64 %262, 8
%275 = add i64 %263, 1
%276 = icmp eq i64 %275, %205
br i1 %276, label %277, label %261
277: ; preds = %261, %258
%278 = icmp eq i64 %201, %191
br i1 %278, label %583, label %279
279: ; preds = %193, %188, %277
%280 = phi i64 [ 0, %193 ], [ 0, %188 ], [ %201, %277 ]
%281 = xor i64 %280, -1
%282 = add nsw i64 %281, %191
%283 = and i64 %191, 3
%284 = icmp eq i64 %283, 0
br i1 %284, label %294, label %285
285: ; preds = %279, %285
%286 = phi i64 [ %291, %285 ], [ %280, %279 ]
%287 = phi i64 [ %292, %285 ], [ 0, %279 ]
%288 = getelementptr inbounds float, float* %190, i64 %286
%289 = load float, float* %288
%290 = getelementptr inbounds float, float* %116, i64 %286
store float %289, float* %290
%291 = add nuw nsw i64 %286, 1
%292 = add i64 %287, 1
%293 = icmp eq i64 %292, %283
br i1 %293, label %294, label %285
294: ; preds = %285, %279
%295 = phi i64 [ %280, %279 ], [ %291, %285 ]
%296 = icmp ult i64 %282, 3
br i1 %296, label %583, label %554
297: ; preds = %121
%298 = bitcast i8** %6 to i32**
%299 = load i32*, i32** %298
%300 = zext i32 %36 to i64
%301 = icmp ult i32 %36, 8
br i1 %301, label %360, label %302
302: ; preds = %297
%303 = and i64 %300, 4294967288
%304 = add nsw i64 %303, -8
%305 = lshr exact i64 %304, 3
%306 = add nuw nsw i64 %305, 1
%307 = and i64 %306, 1
%308 = icmp eq i64 %304, 0
br i1 %308, label %342, label %309
309: ; preds = %302
%310 = and i64 %306, 4611686018427387902
br label %311
311: ; preds = %311, %309
%312 = phi i64 [ 0, %309 ], [ %339, %311 ]
%313 = phi i64 [ 0, %309 ], [ %340, %311 ]
%314 = getelementptr inbounds i32, i32* %299, i64 %312
%315 = bitcast i32* %314 to <4 x i32>*
%316 = load <4 x i32>, <4 x i32>* %315
%317 = getelementptr inbounds i32, i32* %314, i64 4
%318 = bitcast i32* %317 to <4 x i32>*
%319 = load <4 x i32>, <4 x i32>* %318
%320 = sitofp <4 x i32> %316 to <4 x float>
%321 = sitofp <4 x i32> %319 to <4 x float>
%322 = getelementptr inbounds float, float* %116, i64 %312
%323 = bitcast float* %322 to <4 x float>*
store <4 x float> %320, <4 x float>* %323
%324 = getelementptr inbounds float, float* %322, i64 4
%325 = bitcast float* %324 to <4 x float>*
store <4 x float> %321, <4 x float>* %325
%326 = or i64 %312, 8
%327 = getelementptr inbounds i32, i32* %299, i64 %326
%328 = bitcast i32* %327 to <4 x i32>*
%329 = load <4 x i32>, <4 x i32>* %328
%330 = getelementptr inbounds i32, i32* %327, i64 4
%331 = bitcast i32* %330 to <4 x i32>*
%332 = load <4 x i32>, <4 x i32>* %331
%333 = sitofp <4 x i32> %329 to <4 x float>
%334 = sitofp <4 x i32> %332 to <4 x float>
%335 = getelementptr inbounds float, float* %116, i64 %326
%336 = bitcast float* %335 to <4 x float>*
store <4 x float> %333, <4 x float>* %336
%337 = getelementptr inbounds float, float* %335, i64 4
%338 = bitcast float* %337 to <4 x float>*
store <4 x float> %334, <4 x float>* %338
%339 = add nuw i64 %312, 16
%340 = add i64 %313, 2
%341 = icmp eq i64 %340, %310
br i1 %341, label %342, label %311
342: ; preds = %311, %302
%343 = phi i64 [ 0, %302 ], [ %339, %311 ]
%344 = icmp eq i64 %307, 0
br i1 %344, label %358, label %345
345: ; preds = %342
%346 = getelementptr inbounds i32, i32* %299, i64 %343
%347 = bitcast i32* %346 to <4 x i32>*
%348 = load <4 x i32>, <4 x i32>* %347
%349 = getelementptr inbounds i32, i32* %346, i64 4
%350 = bitcast i32* %349 to <4 x i32>*
%351 = load <4 x i32>, <4 x i32>* %350
%352 = sitofp <4 x i32> %348 to <4 x float>
%353 = sitofp <4 x i32> %351 to <4 x float>
%354 = getelementptr inbounds float, float* %116, i64 %343
%355 = bitcast float* %354 to <4 x float>*
store <4 x float> %352, <4 x float>* %355
%356 = getelementptr inbounds float, float* %354, i64 4
%357 = bitcast float* %356 to <4 x float>*
store <4 x float> %353, <4 x float>* %357
br label %358
358: ; preds = %342, %345
%359 = icmp eq i64 %303, %300
br i1 %359, label %583, label %360
360: ; preds = %297, %358
%361 = phi i64 [ 0, %297 ], [ %303, %358 ]
br label %546
362: ; preds = %121
%363 = bitcast i8** %6 to i16**
%364 = load i16*, i16** %363
%365 = zext i32 %36 to i64
%366 = icmp ult i32 %36, 8
br i1 %366, label %425, label %367
367: ; preds = %362
%368 = and i64 %365, 4294967288
%369 = add nsw i64 %368, -8
%370 = lshr exact i64 %369, 3
%371 = add nuw nsw i64 %370, 1
%372 = and i64 %371, 1
%373 = icmp eq i64 %369, 0
br i1 %373, label %407, label %374
374: ; preds = %367
%375 = and i64 %371, 4611686018427387902
br label %376
376: ; preds = %376, %374
%377 = phi i64 [ 0, %374 ], [ %404, %376 ]
%378 = phi i64 [ 0, %374 ], [ %405, %376 ]
%379 = getelementptr inbounds i16, i16* %364, i64 %377
%380 = bitcast i16* %379 to <4 x i16>*
%381 = load <4 x i16>, <4 x i16>* %380
%382 = getelementptr inbounds i16, i16* %379, i64 4
%383 = bitcast i16* %382 to <4 x i16>*
%384 = load <4 x i16>, <4 x i16>* %383
%385 = sitofp <4 x i16> %381 to <4 x float>
%386 = sitofp <4 x i16> %384 to <4 x float>
%387 = getelementptr inbounds float, float* %116, i64 %377
%388 = bitcast float* %387 to <4 x float>*
store <4 x float> %385, <4 x float>* %388
%389 = getelementptr inbounds float, float* %387, i64 4
%390 = bitcast float* %389 to <4 x float>*
store <4 x float> %386, <4 x float>* %390
%391 = or i64 %377, 8
%392 = getelementptr inbounds i16, i16* %364, i64 %391
%393 = bitcast i16* %392 to <4 x i16>*
%394 = load <4 x i16>, <4 x i16>* %393
%395 = getelementptr inbounds i16, i16* %392, i64 4
%396 = bitcast i16* %395 to <4 x i16>*
%397 = load <4 x i16>, <4 x i16>* %396
%398 = sitofp <4 x i16> %394 to <4 x float>
%399 = sitofp <4 x i16> %397 to <4 x float>
%400 = getelementptr inbounds float, float* %116, i64 %391
%401 = bitcast float* %400 to <4 x float>*
store <4 x float> %398, <4 x float>* %401
%402 = getelementptr inbounds float, float* %400, i64 4
%403 = bitcast float* %402 to <4 x float>*
store <4 x float> %399, <4 x float>* %403
%404 = add nuw i64 %377, 16
%405 = add i64 %378, 2
%406 = icmp eq i64 %405, %375
br i1 %406, label %407, label %376
407: ; preds = %376, %367
%408 = phi i64 [ 0, %367 ], [ %404, %376 ]
%409 = icmp eq i64 %372, 0
br i1 %409, label %423, label %410
410: ; preds = %407
%411 = getelementptr inbounds i16, i16* %364, i64 %408
%412 = bitcast i16* %411 to <4 x i16>*
%413 = load <4 x i16>, <4 x i16>* %412
%414 = getelementptr inbounds i16, i16* %411, i64 4
%415 = bitcast i16* %414 to <4 x i16>*
%416 = load <4 x i16>, <4 x i16>* %415
%417 = sitofp <4 x i16> %413 to <4 x float>
%418 = sitofp <4 x i16> %416 to <4 x float>
%419 = getelementptr inbounds float, float* %116, i64 %408
%420 = bitcast float* %419 to <4 x float>*
store <4 x float> %417, <4 x float>* %420
%421 = getelementptr inbounds float, float* %419, i64 4
%422 = bitcast float* %421 to <4 x float>*
store <4 x float> %418, <4 x float>* %422
br label %423
423: ; preds = %407, %410
%424 = icmp eq i64 %368, %365
br i1 %424, label %583, label %425
425: ; preds = %362, %423
%426 = phi i64 [ 0, %362 ], [ %368, %423 ]
br label %538
427: ; preds = %121
%428 = load i8*, i8** %6
%429 = zext i32 %36 to i64
%430 = icmp ult i32 %36, 8
br i1 %430, label %496, label %431
431: ; preds = %427
%432 = getelementptr float, float* %116, i64 %429
%433 = bitcast float* %432 to i8*
%434 = getelementptr i8, i8* %428, i64 %429
%435 = icmp ugt i8* %434, %117
%436 = icmp ult i8* %428, %433
%437 = and i1 %435, %436
br i1 %437, label %496, label %438
438: ; preds = %431
%439 = and i64 %429, 4294967288
%440 = add nsw i64 %439, -8
%441 = lshr exact i64 %440, 3
%442 = add nuw nsw i64 %441, 1
%443 = and i64 %442, 1
%444 = icmp eq i64 %440, 0
br i1 %444, label %478, label %445
445: ; preds = %438
%446 = and i64 %442, 4611686018427387902
br label %447
447: ; preds = %447, %445
%448 = phi i64 [ 0, %445 ], [ %475, %447 ]
%449 = phi i64 [ 0, %445 ], [ %476, %447 ]
%450 = getelementptr inbounds i8, i8* %428, i64 %448
%451 = bitcast i8* %450 to <4 x i8>*
%452 = load <4 x i8>, <4 x i8>* %451
%453 = getelementptr inbounds i8, i8* %450, i64 4
%454 = bitcast i8* %453 to <4 x i8>*
%455 = load <4 x i8>, <4 x i8>* %454
%456 = uitofp <4 x i8> %452 to <4 x float>
%457 = uitofp <4 x i8> %455 to <4 x float>
%458 = getelementptr inbounds float, float* %116, i64 %448
%459 = bitcast float* %458 to <4 x float>*
store <4 x float> %456, <4 x float>* %459
%460 = getelementptr inbounds float, float* %458, i64 4
%461 = bitcast float* %460 to <4 x float>*
store <4 x float> %457, <4 x float>* %461
%462 = or i64 %448, 8
%463 = getelementptr inbounds i8, i8* %428, i64 %462
%464 = bitcast i8* %463 to <4 x i8>*
%465 = load <4 x i8>, <4 x i8>* %464
%466 = getelementptr inbounds i8, i8* %463, i64 4
%467 = bitcast i8* %466 to <4 x i8>*
%468 = load <4 x i8>, <4 x i8>* %467
%469 = uitofp <4 x i8> %465 to <4 x float>
%470 = uitofp <4 x i8> %468 to <4 x float>
%471 = getelementptr inbounds float, float* %116, i64 %462
%472 = bitcast float* %471 to <4 x float>*
store <4 x float> %469, <4 x float>* %472
%473 = getelementptr inbounds float, float* %471, i64 4
%474 = bitcast float* %473 to <4 x float>*
store <4 x float> %470, <4 x float>* %474
%475 = add nuw i64 %448, 16
%476 = add i64 %449, 2
%477 = icmp eq i64 %476, %446
br i1 %477, label %478, label %447
478: ; preds = %447, %438
%479 = phi i64 [ 0, %438 ], [ %475, %447 ]
%480 = icmp eq i64 %443, 0
br i1 %480, label %494, label %481
481: ; preds = %478
%482 = getelementptr inbounds i8, i8* %428, i64 %479
%483 = bitcast i8* %482 to <4 x i8>*
%484 = load <4 x i8>, <4 x i8>* %483
%485 = getelementptr inbounds i8, i8* %482, i64 4
%486 = bitcast i8* %485 to <4 x i8>*
%487 = load <4 x i8>, <4 x i8>* %486
%488 = uitofp <4 x i8> %484 to <4 x float>
%489 = uitofp <4 x i8> %487 to <4 x float>
%490 = getelementptr inbounds float, float* %116, i64 %479
%491 = bitcast float* %490 to <4 x float>*
store <4 x float> %488, <4 x float>* %491
%492 = getelementptr inbounds float, float* %490, i64 4
%493 = bitcast float* %492 to <4 x float>*
store <4 x float> %489, <4 x float>* %493
br label %494
494: ; preds = %478, %481
%495 = icmp eq i64 %439, %429
br i1 %495, label %583, label %496
496: ; preds = %431, %427, %494
%497 = phi i64 [ 0, %431 ], [ 0, %427 ], [ %439, %494 ]
%498 = xor i64 %497, -1
%499 = add nsw i64 %498, %429
%500 = and i64 %429, 3
%501 = icmp eq i64 %500, 0
br i1 %501, label %512, label %502
502: ; preds = %496, %502
%503 = phi i64 [ %509, %502 ], [ %497, %496 ]
%504 = phi i64 [ %510, %502 ], [ 0, %496 ]
%505 = getelementptr inbounds i8, i8* %428, i64 %503
%506 = load i8, i8* %505
%507 = uitofp i8 %506 to float
%508 = getelementptr inbounds float, float* %116, i64 %503
store float %507, float* %508
%509 = add nuw nsw i64 %503, 1
%510 = add i64 %504, 1
%511 = icmp eq i64 %510, %500
br i1 %511, label %512, label %502
512: ; preds = %502, %496
%513 = phi i64 [ %497, %496 ], [ %509, %502 ]
%514 = icmp ult i64 %499, 3
br i1 %514, label %583, label %515
515: ; preds = %512, %515
%516 = phi i64 [ %536, %515 ], [ %513, %512 ]
%517 = getelementptr inbounds i8, i8* %428, i64 %516
%518 = load i8, i8* %517
%519 = uitofp i8 %518 to float
%520 = getelementptr inbounds float, float* %116, i64 %516
store float %519, float* %520
%521 = add nuw nsw i64 %516, 1
%522 = getelementptr inbounds i8, i8* %428, i64 %521
%523 = load i8, i8* %522
%524 = uitofp i8 %523 to float
%525 = getelementptr inbounds float, float* %116, i64 %521
store float %524, float* %525
%526 = add nuw nsw i64 %516, 2
%527 = getelementptr inbounds i8, i8* %428, i64 %526
%528 = load i8, i8* %527
%529 = uitofp i8 %528 to float
%530 = getelementptr inbounds float, float* %116, i64 %526
store float %529, float* %530
%531 = add nuw nsw i64 %516, 3
%532 = getelementptr inbounds i8, i8* %428, i64 %531
%533 = load i8, i8* %532
%534 = uitofp i8 %533 to float
%535 = getelementptr inbounds float, float* %116, i64 %531
store float %534, float* %535
%536 = add nuw nsw i64 %516, 4
%537 = icmp eq i64 %536, %429
br i1 %537, label %583, label %515
538: ; preds = %425, %538
%539 = phi i64 [ %544, %538 ], [ %426, %425 ]
%540 = getelementptr inbounds i16, i16* %364, i64 %539
%541 = load i16, i16* %540
%542 = sitofp i16 %541 to float
%543 = getelementptr inbounds float, float* %116, i64 %539
store float %542, float* %543
%544 = add nuw nsw i64 %539, 1
%545 = icmp eq i64 %544, %365
br i1 %545, label %583, label %538
546: ; preds = %360, %546
%547 = phi i64 [ %552, %546 ], [ %361, %360 ]
%548 = getelementptr inbounds i32, i32* %299, i64 %547
%549 = load i32, i32* %548
%550 = sitofp i32 %549 to float
%551 = getelementptr inbounds float, float* %116, i64 %547
store float %550, float* %551
%552 = add nuw nsw i64 %547, 1
%553 = icmp eq i64 %552, %300
br i1 %553, label %583, label %546
554: ; preds = %294, %554
%555 = phi i64 [ %571, %554 ], [ %295, %294 ]
%556 = getelementptr inbounds float, float* %190, i64 %555
%557 = load float, float* %556
%558 = getelementptr inbounds float, float* %116, i64 %555
store float %557, float* %558
%559 = add nuw nsw i64 %555, 1
%560 = getelementptr inbounds float, float* %190, i64 %559
%561 = load float, float* %560
%562 = getelementptr inbounds float, float* %116, i64 %559
store float %561, float* %562
%563 = add nuw nsw i64 %555, 2
%564 = getelementptr inbounds float, float* %190, i64 %563
%565 = load float, float* %564
%566 = getelementptr inbounds float, float* %116, i64 %563
store float %565, float* %566
%567 = add nuw nsw i64 %555, 3
%568 = getelementptr inbounds float, float* %190, i64 %567
%569 = load float, float* %568
%570 = getelementptr inbounds float, float* %116, i64 %567
store float %569, float* %570
%571 = add nuw nsw i64 %555, 4
%572 = icmp eq i64 %571, %191
br i1 %572, label %583, label %554
573: ; preds = %186, %573
%574 = phi i64 [ %579, %573 ], [ %187, %186 ]
%575 = getelementptr inbounds double, double* %125, i64 %574
%576 = load double, double* %575
%577 = fptrunc double %576 to float
%578 = getelementptr inbounds float, float* %116, i64 %574
store float %577, float* %578
%579 = add nuw nsw i64 %574, 1
%580 = icmp eq i64 %579, %126
br i1 %580, label %583, label %573
581: ; preds = %121
%582 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.24, i64 0, i64 0), i8* %0, i32 %122)
br label %765
583: ; preds = %573, %294, %554, %546, %538, %512, %515, %184, %277, %358, %423, %494
%584 = load i8*, i8** %6
%585 = call i32 @free(i8* %584)
%586 = load double, double* %14
%587 = fadd double %586, -1.000000e+00
%588 = call double @llvm.fabs.f64(double %587)
%589 = fcmp ogt double %588, 1.000000e-15
%590 = icmp sgt i32 %36, 0
%591 = select i1 %589, i1 %590, i1 false
br i1 %591, label %592, label %674
592: ; preds = %583
%593 = zext i32 %36 to i64
%594 = icmp ult i32 %36, 8
br i1 %594, label %663, label %595
595: ; preds = %592
%596 = and i64 %593, 4294967288
%597 = insertelement <4 x double> poison, double %586, i64 0
%598 = shufflevector <4 x double> %597, <4 x double> poison, <4 x i32> zeroinitializer
%599 = insertelement <4 x double> poison, double %586, i64 0
%600 = shufflevector <4 x double> %599, <4 x double> poison, <4 x i32> zeroinitializer
%601 = add nsw i64 %596, -8
%602 = lshr exact i64 %601, 3
%603 = add nuw nsw i64 %602, 1
%604 = and i64 %603, 1
%605 = icmp eq i64 %601, 0
br i1 %605, label %643, label %606
606: ; preds = %595
%607 = and i64 %603, 4611686018427387902
br label %608
608: ; preds = %608, %606
%609 = phi i64 [ 0, %606 ], [ %640, %608 ]
%610 = phi i64 [ 0, %606 ], [ %641, %608 ]
%611 = getelementptr inbounds float, float* %116, i64 %609
%612 = bitcast float* %611 to <4 x float>*
%613 = load <4 x float>, <4 x float>* %612
%614 = getelementptr inbounds float, float* %611, i64 4
%615 = bitcast float* %614 to <4 x float>*
%616 = load <4 x float>, <4 x float>* %615
%617 = fpext <4 x float> %613 to <4 x double>
%618 = fpext <4 x float> %616 to <4 x double>
%619 = fmul <4 x double> %598, %617
%620 = fmul <4 x double> %600, %618
%621 = fptrunc <4 x double> %619 to <4 x float>
%622 = fptrunc <4 x double> %620 to <4 x float>
%623 = bitcast float* %611 to <4 x float>*
store <4 x float> %621, <4 x float>* %623
%624 = bitcast float* %614 to <4 x float>*
store <4 x float> %622, <4 x float>* %624
%625 = or i64 %609, 8
%626 = getelementptr inbounds float, float* %116, i64 %625
%627 = bitcast float* %626 to <4 x float>*
%628 = load <4 x float>, <4 x float>* %627
%629 = getelementptr inbounds float, float* %626, i64 4
%630 = bitcast float* %629 to <4 x float>*
%631 = load <4 x float>, <4 x float>* %630
%632 = fpext <4 x float> %628 to <4 x double>
%633 = fpext <4 x float> %631 to <4 x double>
%634 = fmul <4 x double> %598, %632
%635 = fmul <4 x double> %600, %633
%636 = fptrunc <4 x double> %634 to <4 x float>
%637 = fptrunc <4 x double> %635 to <4 x float>
%638 = bitcast float* %626 to <4 x float>*
store <4 x float> %636, <4 x float>* %638
%639 = bitcast float* %629 to <4 x float>*
store <4 x float> %637, <4 x float>* %639
%640 = add nuw i64 %609, 16
%641 = add i64 %610, 2
%642 = icmp eq i64 %641, %607
br i1 %642, label %643, label %608
643: ; preds = %608, %595
%644 = phi i64 [ 0, %595 ], [ %640, %608 ]
%645 = icmp eq i64 %604, 0
br i1 %645, label %661, label %646
646: ; preds = %643
%647 = getelementptr inbounds float, float* %116, i64 %644
%648 = bitcast float* %647 to <4 x float>*
%649 = load <4 x float>, <4 x float>* %648
%650 = getelementptr inbounds float, float* %647, i64 4
%651 = bitcast float* %650 to <4 x float>*
%652 = load <4 x float>, <4 x float>* %651
%653 = fpext <4 x float> %649 to <4 x double>
%654 = fpext <4 x float> %652 to <4 x double>
%655 = fmul <4 x double> %598, %653
%656 = fmul <4 x double> %600, %654
%657 = fptrunc <4 x double> %655 to <4 x float>
%658 = fptrunc <4 x double> %656 to <4 x float>
%659 = bitcast float* %647 to <4 x float>*
store <4 x float> %657, <4 x float>* %659
%660 = bitcast float* %650 to <4 x float>*
store <4 x float> %658, <4 x float>* %660
br label %661
661: ; preds = %643, %646
%662 = icmp eq i64 %596, %593
br i1 %662, label %674, label %663
663: ; preds = %592, %661
%664 = phi i64 [ 0, %592 ], [ %596, %661 ]
br label %665
665: ; preds = %663, %665
%666 = phi i64 [ %672, %665 ], [ %664, %663 ]
%667 = getelementptr inbounds float, float* %116, i64 %666
%668 = load float, float* %667
%669 = fpext float %668 to double
%670 = fmul double %586, %669
%671 = fptrunc double %670 to float
store float %671, float* %667
%672 = add nuw nsw i64 %666, 1
%673 = icmp eq i64 %672, %593
br i1 %673, label %674, label %665
674: ; preds = %665, %661, %583
%675 = load double, double* %13
%676 = call double @llvm.fabs.f64(double %675)
%677 = fcmp ogt double %676, 1.000000e-15
%678 = select i1 %677, i1 %590, i1 false
br i1 %678, label %679, label %761
679: ; preds = %674
%680 = zext i32 %36 to i64
%681 = icmp ult i32 %36, 8
br i1 %681, label %750, label %682
682: ; preds = %679
%683 = and i64 %680, 4294967288
%684 = insertelement <4 x double> poison, double %675, i64 0
%685 = shufflevector <4 x double> %684, <4 x double> poison, <4 x i32> zeroinitializer
%686 = insertelement <4 x double> poison, double %675, i64 0
%687 = shufflevector <4 x double> %686, <4 x double> poison, <4 x i32> zeroinitializer
%688 = add nsw i64 %683, -8
%689 = lshr exact i64 %688, 3
%690 = add nuw nsw i64 %689, 1
%691 = and i64 %690, 1
%692 = icmp eq i64 %688, 0
br i1 %692, label %730, label %693
693: ; preds = %682
%694 = and i64 %690, 4611686018427387902
br label %695
695: ; preds = %695, %693
%696 = phi i64 [ 0, %693 ], [ %727, %695 ]
%697 = phi i64 [ 0, %693 ], [ %728, %695 ]
%698 = getelementptr inbounds float, float* %116, i64 %696
%699 = bitcast float* %698 to <4 x float>*
%700 = load <4 x float>, <4 x float>* %699
%701 = getelementptr inbounds float, float* %698, i64 4
%702 = bitcast float* %701 to <4 x float>*
%703 = load <4 x float>, <4 x float>* %702
%704 = fpext <4 x float> %700 to <4 x double>
%705 = fpext <4 x float> %703 to <4 x double>
%706 = fadd <4 x double> %685, %704
%707 = fadd <4 x double> %687, %705
%708 = fptrunc <4 x double> %706 to <4 x float>
%709 = fptrunc <4 x double> %707 to <4 x float>
%710 = bitcast float* %698 to <4 x float>*
store <4 x float> %708, <4 x float>* %710
%711 = bitcast float* %701 to <4 x float>*
store <4 x float> %709, <4 x float>* %711
%712 = or i64 %696, 8
%713 = getelementptr inbounds float, float* %116, i64 %712
%714 = bitcast float* %713 to <4 x float>*
%715 = load <4 x float>, <4 x float>* %714
%716 = getelementptr inbounds float, float* %713, i64 4
%717 = bitcast float* %716 to <4 x float>*
%718 = load <4 x float>, <4 x float>* %717
%719 = fpext <4 x float> %715 to <4 x double>
%720 = fpext <4 x float> %718 to <4 x double>
%721 = fadd <4 x double> %685, %719
%722 = fadd <4 x double> %687, %720
%723 = fptrunc <4 x double> %721 to <4 x float>
%724 = fptrunc <4 x double> %722 to <4 x float>
%725 = bitcast float* %713 to <4 x float>*
store <4 x float> %723, <4 x float>* %725
%726 = bitcast float* %716 to <4 x float>*
store <4 x float> %724, <4 x float>* %726
%727 = add nuw i64 %696, 16
%728 = add i64 %697, 2
%729 = icmp eq i64 %728, %694
br i1 %729, label %730, label %695
730: ; preds = %695, %682
%731 = phi i64 [ 0, %682 ], [ %727, %695 ]
%732 = icmp eq i64 %691, 0
br i1 %732, label %748, label %733
733: ; preds = %730
%734 = getelementptr inbounds float, float* %116, i64 %731
%735 = bitcast float* %734 to <4 x float>*
%736 = load <4 x float>, <4 x float>* %735
%737 = getelementptr inbounds float, float* %734, i64 4
%738 = bitcast float* %737 to <4 x float>*
%739 = load <4 x float>, <4 x float>* %738
%740 = fpext <4 x float> %736 to <4 x double>
%741 = fpext <4 x float> %739 to <4 x double>
%742 = fadd <4 x double> %685, %740
%743 = fadd <4 x double> %687, %741
%744 = fptrunc <4 x double> %742 to <4 x float>
%745 = fptrunc <4 x double> %743 to <4 x float>
%746 = bitcast float* %734 to <4 x float>*
store <4 x float> %744, <4 x float>* %746
%747 = bitcast float* %737 to <4 x float>*
store <4 x float> %745, <4 x float>* %747
br label %748
748: ; preds = %730, %733
%749 = icmp eq i64 %683, %680
br i1 %749, label %761, label %750
750: ; preds = %679, %748
%751 = phi i64 [ 0, %679 ], [ %683, %748 ]
br label %752
752: ; preds = %750, %752
%753 = phi i64 [ %759, %752 ], [ %751, %750 ]
%754 = getelementptr inbounds float, float* %116, i64 %753
%755 = load float, float* %754
%756 = fpext float %755 to double
%757 = fadd double %675, %756
%758 = fptrunc double %757 to float
store float %758, float* %754
%759 = add nuw nsw i64 %753, 1
%760 = icmp eq i64 %759, %680
br i1 %760, label %761, label %752
761: ; preds = %752, %748, %674
%762 = load i32, i32* %11
store i32 %762, i32* %3
%763 = load i32, i32* %12
store i32 %763, i32* %4
%764 = load i8**, i8*** %8
store i8** %764, i8*** %2
store i32 %30, i32* %1
br label %765
765: ; preds = %761, %581, %119, %112, %102, %92, %87, %81, %76, %70, %65, %59, %54, %49, %38, %32, %27
%766 = phi float* [ null, %27 ], [ null, %32 ], [ null, %38 ], [ null, %49 ], [ null, %54 ], [ null, %59 ], [ null, %65 ], [ null, %70 ], [ null, %76 ], [ null, %81 ], [ null, %87 ], [ null, %92 ], [ null, %119 ], [ null, %581 ], [ %116, %761 ], [ null, %112 ], [ null, %102 ]
ret float* %766
}