// File: tomfunkhouser[P]gaps/pkgs/jpeg/jfdctflt.c
// Function: jpeg_fdct_float
GLOBAL(void)
jpeg_fdct_float (FAST_FLOAT * data)
{
  FAST_FLOAT tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7;
  FAST_FLOAT tmp10, tmp11, tmp12, tmp13;
  FAST_FLOAT z1, z2, z3, z4, z5, z11, z13;
  FAST_FLOAT *dataptr;
  int ctr;

  /* Pass 1: process rows. */

  dataptr = data;
  for (ctr = DCTSIZE-1; ctr >= 0; ctr--) {
    tmp0 = dataptr[0] + dataptr[7];
    tmp7 = dataptr[0] - dataptr[7];
    tmp1 = dataptr[1] + dataptr[6];
    tmp6 = dataptr[1] - dataptr[6];
    tmp2 = dataptr[2] + dataptr[5];
    tmp5 = dataptr[2] - dataptr[5];
    tmp3 = dataptr[3] + dataptr[4];
    tmp4 = dataptr[3] - dataptr[4];
    
    /* Even part */
    
    tmp10 = tmp0 + tmp3;	/* phase 2 */
    tmp13 = tmp0 - tmp3;
    tmp11 = tmp1 + tmp2;
    tmp12 = tmp1 - tmp2;
    
    dataptr[0] = tmp10 + tmp11; /* phase 3 */
    dataptr[4] = tmp10 - tmp11;
    
    z1 = (tmp12 + tmp13) * ((FAST_FLOAT) 0.707106781); /* c4 */
    dataptr[2] = tmp13 + z1;	/* phase 5 */
    dataptr[6] = tmp13 - z1;
    
    /* Odd part */

    tmp10 = tmp4 + tmp5;	/* phase 2 */
    tmp11 = tmp5 + tmp6;
    tmp12 = tmp6 + tmp7;

    /* The rotator is modified from fig 4-8 to avoid extra negations. */
    z5 = (tmp10 - tmp12) * ((FAST_FLOAT) 0.382683433); /* c6 */
    z2 = ((FAST_FLOAT) 0.541196100) * tmp10 + z5; /* c2-c6 */
    z4 = ((FAST_FLOAT) 1.306562965) * tmp12 + z5; /* c2+c6 */
    z3 = tmp11 * ((FAST_FLOAT) 0.707106781); /* c4 */

    z11 = tmp7 + z3;		/* phase 5 */
    z13 = tmp7 - z3;

    dataptr[5] = z13 + z2;	/* phase 6 */
    dataptr[3] = z13 - z2;
    dataptr[1] = z11 + z4;
    dataptr[7] = z11 - z4;

    dataptr += DCTSIZE;		/* advance pointer to next row */
  }

  /* Pass 2: process columns. */

  dataptr = data;
  for (ctr = DCTSIZE-1; ctr >= 0; ctr--) {
    tmp0 = dataptr[DCTSIZE*0] + dataptr[DCTSIZE*7];
    tmp7 = dataptr[DCTSIZE*0] - dataptr[DCTSIZE*7];
    tmp1 = dataptr[DCTSIZE*1] + dataptr[DCTSIZE*6];
    tmp6 = dataptr[DCTSIZE*1] - dataptr[DCTSIZE*6];
    tmp2 = dataptr[DCTSIZE*2] + dataptr[DCTSIZE*5];
    tmp5 = dataptr[DCTSIZE*2] - dataptr[DCTSIZE*5];
    tmp3 = dataptr[DCTSIZE*3] + dataptr[DCTSIZE*4];
    tmp4 = dataptr[DCTSIZE*3] - dataptr[DCTSIZE*4];
    
    /* Even part */
    
    tmp10 = tmp0 + tmp3;	/* phase 2 */
    tmp13 = tmp0 - tmp3;
    tmp11 = tmp1 + tmp2;
    tmp12 = tmp1 - tmp2;
    
    dataptr[DCTSIZE*0] = tmp10 + tmp11; /* phase 3 */
    dataptr[DCTSIZE*4] = tmp10 - tmp11;
    
    z1 = (tmp12 + tmp13) * ((FAST_FLOAT) 0.707106781); /* c4 */
    dataptr[DCTSIZE*2] = tmp13 + z1; /* phase 5 */
    dataptr[DCTSIZE*6] = tmp13 - z1;
    
    /* Odd part */

    tmp10 = tmp4 + tmp5;	/* phase 2 */
    tmp11 = tmp5 + tmp6;
    tmp12 = tmp6 + tmp7;

    /* The rotator is modified from fig 4-8 to avoid extra negations. */
    z5 = (tmp10 - tmp12) * ((FAST_FLOAT) 0.382683433); /* c6 */
    z2 = ((FAST_FLOAT) 0.541196100) * tmp10 + z5; /* c2-c6 */
    z4 = ((FAST_FLOAT) 1.306562965) * tmp12 + z5; /* c2+c6 */
    z3 = tmp11 * ((FAST_FLOAT) 0.707106781); /* c4 */

    z11 = tmp7 + z3;		/* phase 5 */
    z13 = tmp7 - z3;

    dataptr[DCTSIZE*5] = z13 + z2; /* phase 6 */
    dataptr[DCTSIZE*3] = z13 - z2;
    dataptr[DCTSIZE*1] = z11 + z4;
    dataptr[DCTSIZE*7] = z11 - z4;

    dataptr++;			/* advance pointer to next column */
  }
}

// Assembly:
movq %rdi, -0x8(%rsp)
movq -0x8(%rsp), %rax
movq %rax, -0x60(%rsp)
movl $0x7, -0x64(%rsp)
cmpl $0x0, -0x64(%rsp)
jl 0xe19a3
movq -0x60(%rsp), %rax
movss (%rax), %xmm0
movq -0x60(%rsp), %rax
addss 0x1c(%rax), %xmm0
movss %xmm0, -0xc(%rsp)
movq -0x60(%rsp), %rax
movss (%rax), %xmm0
movq -0x60(%rsp), %rax
subss 0x1c(%rax), %xmm0
movss %xmm0, -0x28(%rsp)
movq -0x60(%rsp), %rax
movss 0x4(%rax), %xmm0
movq -0x60(%rsp), %rax
addss 0x18(%rax), %xmm0
movss %xmm0, -0x10(%rsp)
movq -0x60(%rsp), %rax
movss 0x4(%rax), %xmm0
movq -0x60(%rsp), %rax
subss 0x18(%rax), %xmm0
movss %xmm0, -0x24(%rsp)
movq -0x60(%rsp), %rax
movss 0x8(%rax), %xmm0
movq -0x60(%rsp), %rax
addss 0x14(%rax), %xmm0
movss %xmm0, -0x14(%rsp)
movq -0x60(%rsp), %rax
movss 0x8(%rax), %xmm0
movq -0x60(%rsp), %rax
subss 0x14(%rax), %xmm0
movss %xmm0, -0x20(%rsp)
movq -0x60(%rsp), %rax
movss 0xc(%rax), %xmm0
movq -0x60(%rsp), %rax
addss 0x10(%rax), %xmm0
movss %xmm0, -0x18(%rsp)
movq -0x60(%rsp), %rax
movss 0xc(%rax), %xmm0
movq -0x60(%rsp), %rax
subss 0x10(%rax), %xmm0
movss %xmm0, -0x1c(%rsp)
movss -0xc(%rsp), %xmm0
addss -0x18(%rsp), %xmm0
movss %xmm0, -0x2c(%rsp)
movss -0xc(%rsp), %xmm0
subss -0x18(%rsp), %xmm0
movss %xmm0, -0x38(%rsp)
movss -0x10(%rsp), %xmm0
addss -0x14(%rsp), %xmm0
movss %xmm0, -0x30(%rsp)
movss -0x10(%rsp), %xmm0
subss -0x14(%rsp), %xmm0
movss %xmm0, -0x34(%rsp)
movss -0x2c(%rsp), %xmm0
addss -0x30(%rsp), %xmm0
movq -0x60(%rsp), %rax
movss %xmm0, (%rax)
movss -0x2c(%rsp), %xmm0
subss -0x30(%rsp), %xmm0
movq -0x60(%rsp), %rax
movss %xmm0, 0x10(%rax)
movss -0x34(%rsp), %xmm0
addss -0x38(%rsp), %xmm0
movss 0x555f9(%rip), %xmm1    # 0x136e20
mulss %xmm1, %xmm0
movss %xmm0, -0x3c(%rsp)
movss -0x38(%rsp), %xmm0
addss -0x3c(%rsp), %xmm0
movq -0x60(%rsp), %rax
movss %xmm0, 0x8(%rax)
movss -0x38(%rsp), %xmm0
subss -0x3c(%rsp), %xmm0
movq -0x60(%rsp), %rax
movss %xmm0, 0x18(%rax)
movss -0x1c(%rsp), %xmm0
addss -0x20(%rsp), %xmm0
movss %xmm0, -0x2c(%rsp)
movss -0x20(%rsp), %xmm0
addss -0x24(%rsp), %xmm0
movss %xmm0, -0x30(%rsp)
movss -0x24(%rsp), %xmm0
addss -0x28(%rsp), %xmm0
movss %xmm0, -0x34(%rsp)
movss -0x2c(%rsp), %xmm0
subss -0x34(%rsp), %xmm0
movss 0x55585(%rip), %xmm1    # 0x136e2c
mulss %xmm1, %xmm0
movss %xmm0, -0x4c(%rsp)
movss -0x2c(%rsp), %xmm0
movss -0x4c(%rsp), %xmm1
movss 0x55563(%rip), %xmm2    # 0x136e28
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, -0x40(%rsp)
movss -0x34(%rsp), %xmm0
movss -0x4c(%rsp), %xmm1
movss 0x5553d(%rip), %xmm2    # 0x136e24
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, -0x48(%rsp)
movss 0x55523(%rip), %xmm0    # 0x136e20
mulss -0x30(%rsp), %xmm0
movss %xmm0, -0x44(%rsp)
movss -0x28(%rsp), %xmm0
addss -0x44(%rsp), %xmm0
movss %xmm0, -0x50(%rsp)
movss -0x28(%rsp), %xmm0
subss -0x44(%rsp), %xmm0
movss %xmm0, -0x54(%rsp)
movss -0x54(%rsp), %xmm0
addss -0x40(%rsp), %xmm0
movq -0x60(%rsp), %rax
movss %xmm0, 0x14(%rax)
movss -0x54(%rsp), %xmm0
subss -0x40(%rsp), %xmm0
movq -0x60(%rsp), %rax
movss %xmm0, 0xc(%rax)
movss -0x50(%rsp), %xmm0
addss -0x48(%rsp), %xmm0
movq -0x60(%rsp), %rax
movss %xmm0, 0x4(%rax)
movss -0x50(%rsp), %xmm0
subss -0x48(%rsp), %xmm0
movq -0x60(%rsp), %rax
movss %xmm0, 0x1c(%rax)
movq -0x60(%rsp), %rax
addq $0x20, %rax
movq %rax, -0x60(%rsp)
movl -0x64(%rsp), %eax
addl $-0x1, %eax
movl %eax, -0x64(%rsp)
jmp 0xe16c7
movq -0x8(%rsp), %rax
movq %rax, -0x60(%rsp)
movl $0x7, -0x64(%rsp)
cmpl $0x0, -0x64(%rsp)
jl 0xe1cb5
movq -0x60(%rsp), %rax
movss (%rax), %xmm0
movq -0x60(%rsp), %rax
addss 0xe0(%rax), %xmm0
movss %xmm0, -0xc(%rsp)
movq -0x60(%rsp), %rax
movss (%rax), %xmm0
movq -0x60(%rsp), %rax
subss 0xe0(%rax), %xmm0
movss %xmm0, -0x28(%rsp)
movq -0x60(%rsp), %rax
movss 0x20(%rax), %xmm0
movq -0x60(%rsp), %rax
addss 0xc0(%rax), %xmm0
movss %xmm0, -0x10(%rsp)
movq -0x60(%rsp), %rax
movss 0x20(%rax), %xmm0
movq -0x60(%rsp), %rax
subss 0xc0(%rax), %xmm0
movss %xmm0, -0x24(%rsp)
movq -0x60(%rsp), %rax
movss 0x40(%rax), %xmm0
movq -0x60(%rsp), %rax
addss 0xa0(%rax), %xmm0
movss %xmm0, -0x14(%rsp)
movq -0x60(%rsp), %rax
movss 0x40(%rax), %xmm0
movq -0x60(%rsp), %rax
subss 0xa0(%rax), %xmm0
movss %xmm0, -0x20(%rsp)
movq -0x60(%rsp), %rax
movss 0x60(%rax), %xmm0
movq -0x60(%rsp), %rax
addss 0x80(%rax), %xmm0
movss %xmm0, -0x18(%rsp)
movq -0x60(%rsp), %rax
movss 0x60(%rax), %xmm0
movq -0x60(%rsp), %rax
subss 0x80(%rax), %xmm0
movss %xmm0, -0x1c(%rsp)
movss -0xc(%rsp), %xmm0
addss -0x18(%rsp), %xmm0
movss %xmm0, -0x2c(%rsp)
movss -0xc(%rsp), %xmm0
subss -0x18(%rsp), %xmm0
movss %xmm0, -0x38(%rsp)
movss -0x10(%rsp), %xmm0
addss -0x14(%rsp), %xmm0
movss %xmm0, -0x30(%rsp)
movss -0x10(%rsp), %xmm0
subss -0x14(%rsp), %xmm0
movss %xmm0, -0x34(%rsp)
movss -0x2c(%rsp), %xmm0
addss -0x30(%rsp), %xmm0
movq -0x60(%rsp), %rax
movss %xmm0, (%rax)
movss -0x2c(%rsp), %xmm0
subss -0x30(%rsp), %xmm0
movq -0x60(%rsp), %rax
movss %xmm0, 0x80(%rax)
movss -0x34(%rsp), %xmm0
addss -0x38(%rsp), %xmm0
movss 0x552f0(%rip), %xmm1    # 0x136e20
mulss %xmm1, %xmm0
movss %xmm0, -0x3c(%rsp)
movss -0x38(%rsp), %xmm0
addss -0x3c(%rsp), %xmm0
movq -0x60(%rsp), %rax
movss %xmm0, 0x40(%rax)
movss -0x38(%rsp), %xmm0
subss -0x3c(%rsp), %xmm0
movq -0x60(%rsp), %rax
movss %xmm0, 0xc0(%rax)
movss -0x1c(%rsp), %xmm0
addss -0x20(%rsp), %xmm0
movss %xmm0, -0x2c(%rsp)
movss -0x20(%rsp), %xmm0
addss -0x24(%rsp), %xmm0
movss %xmm0, -0x30(%rsp)
movss -0x24(%rsp), %xmm0
addss -0x28(%rsp), %xmm0
movss %xmm0, -0x34(%rsp)
movss -0x2c(%rsp), %xmm0
subss -0x34(%rsp), %xmm0
movss 0x55279(%rip), %xmm1    # 0x136e2c
mulss %xmm1, %xmm0
movss %xmm0, -0x4c(%rsp)
movss -0x2c(%rsp), %xmm0
movss -0x4c(%rsp), %xmm1
movss 0x55257(%rip), %xmm2    # 0x136e28
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, -0x40(%rsp)
movss -0x34(%rsp), %xmm0
movss -0x4c(%rsp), %xmm1
movss 0x55231(%rip), %xmm2    # 0x136e24
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, -0x48(%rsp)
movss 0x55217(%rip), %xmm0    # 0x136e20
mulss -0x30(%rsp), %xmm0
movss %xmm0, -0x44(%rsp)
movss -0x28(%rsp), %xmm0
addss -0x44(%rsp), %xmm0
movss %xmm0, -0x50(%rsp)
movss -0x28(%rsp), %xmm0
subss -0x44(%rsp), %xmm0
movss %xmm0, -0x54(%rsp)
movss -0x54(%rsp), %xmm0
addss -0x40(%rsp), %xmm0
movq -0x60(%rsp), %rax
movss %xmm0, 0xa0(%rax)
movss -0x54(%rsp), %xmm0
subss -0x40(%rsp), %xmm0
movq -0x60(%rsp), %rax
movss %xmm0, 0x60(%rax)
movss -0x50(%rsp), %xmm0
addss -0x48(%rsp), %xmm0
movq -0x60(%rsp), %rax
movss %xmm0, 0x20(%rax)
movss -0x50(%rsp), %xmm0
subss -0x48(%rsp), %xmm0
movq -0x60(%rsp), %rax
movss %xmm0, 0xe0(%rax)
movq -0x60(%rsp), %rax
addq $0x4, %rax
movq %rax, -0x60(%rsp)
movl -0x64(%rsp), %eax
addl $-0x1, %eax
movl %eax, -0x64(%rsp)
jmp 0xe19b5
retq
nopw %cs:(%rax,%rax)