#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 */

/* Variables and functions */
int /*<<< orphan*/ Com_Printf(char *);
void shrink_line(double *dest, double *src, int bytes, int old_width,
                 int width) {
  int x;
  int b;
  double *srcp;
  double *destp;
  double accum[4];
  double slice;
  const double avg_ratio = (double)width / old_width;
  const double inv_width = 1.0 / width;
  int slicepos;
  srcp = src;
  destp = dest;
  slicepos = 0;
  for (b = 0; b < bytes; ++b) {
    accum[b] = 0.0;
  }
  for (x = 0; x < width; x++) {
    do {
      for (b = 0; b < bytes; b++)
        accum[b] += *srcp++;
      slicepos += width;
    } while (slicepos < old_width);
    slicepos -= old_width;
    if (!(slicepos < width))
      Com_Printf("Assertion (slicepos < width) failed. Please report.\n");
    if (slicepos == 0) {
      for (b = 0; b < bytes; b++) {
        *destp++ = accum[b] * avg_ratio;
        accum[b] = 0.0;
      }
    } else {
      for (b = 0; b < bytes; b++) {
        slice = srcp[-bytes + b] * slicepos * inv_width;
        *destp++ = (accum[b] - slice) * avg_ratio;
        accum[b] = slice;
      }
    }
  }
  if (!(srcp - src == old_width * bytes && slicepos == 0)) {
    Com_Printf("Assertion (srcp - src == old_width * bytes && slicepos == 0)"
               " failed. Please report.");
  }
}


x86 assembly (clang, -O0):
<shrink_line>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
cvtsi2sdl -0x1c(%rbp),%xmm0
cvtsi2sdl -0x18(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
cvtsi2sdl -0x1c(%rbp),%xmm1
movsd  0xeb3(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x38(%rbp)
movl   $0x0,-0x7c(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    119b <shrink_line+0x8b>
movslq -0x24(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x60(%rbp,%rax,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1174 <shrink_line+0x64>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1324 <shrink_line+0x214>
jmp    11b3 <shrink_line+0xa3>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    11f7 <shrink_line+0xe7>
mov    -0x30(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x30(%rbp)
movsd  (%rax),%xmm0
movslq -0x24(%rbp),%rax
addsd  -0x60(%rbp,%rax,8),%xmm0
movsd  %xmm0,-0x60(%rbp,%rax,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11ba <shrink_line+0xaa>
mov    -0x1c(%rbp),%eax
add    -0x7c(%rbp),%eax
mov    %eax,-0x7c(%rbp)
mov    -0x7c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jl     11b3 <shrink_line+0xa3>
mov    -0x18(%rbp),%ecx
mov    -0x7c(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x7c(%rbp)
mov    -0x7c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jl     122f <shrink_line+0x11f>
lea    0xdde(%rip),%rdi
call   1030 <Com_Printf@plt>
cmpl   $0x0,-0x7c(%rbp)
jne    128e <shrink_line+0x17e>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1289 <shrink_line+0x179>
movslq -0x24(%rbp),%rax
movsd  -0x60(%rbp,%rax,8),%xmm0
mulsd  -0x70(%rbp),%xmm0
mov    -0x38(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x38(%rbp)
movsd  %xmm0,(%rax)
movslq -0x24(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x60(%rbp,%rax,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1240 <shrink_line+0x130>
jmp    1311 <shrink_line+0x201>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    130c <shrink_line+0x1fc>
mov    -0x30(%rbp),%rax
xor    %ecx,%ecx
sub    -0x14(%rbp),%ecx
add    -0x24(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
cvtsi2sdl -0x7c(%rbp),%xmm1
mulsd  %xmm1,%xmm0
mulsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movslq -0x24(%rbp),%rax
movsd  -0x60(%rbp,%rax,8),%xmm0
subsd  -0x68(%rbp),%xmm0
mulsd  -0x70(%rbp),%xmm0
mov    -0x38(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x38(%rbp)
movsd  %xmm0,(%rax)
movsd  -0x68(%rbp),%xmm0
movslq -0x24(%rbp),%rax
movsd  %xmm0,-0x60(%rbp,%rax,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1295 <shrink_line+0x185>
jmp    1311 <shrink_line+0x201>
jmp    1316 <shrink_line+0x206>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    11a2 <shrink_line+0x92>
mov    -0x30(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    %rcx,%rax
sar    $0x3,%rax
mov    -0x18(%rbp),%ecx
imul   -0x14(%rbp),%ecx
movslq %ecx,%rcx
cmp    %rcx,%rax
jne    1350 <shrink_line+0x240>
cmpl   $0x0,-0x7c(%rbp)
je     135c <shrink_line+0x24c>
lea    0xce6(%rip),%rdi
call   1030 <Com_Printf@plt>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<shrink_line>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x108,%rsp
mov    %ecx,%ebp
mov    %edx,%ebx
mov    %rsi,%r13
mov    %rdi,%r12
mov    %edx,%r14d
test   %edx,%edx
mov    %r8d,0x54(%rsp)
jle    1160 <shrink_line+0x40>
lea    0x0(,%r14,8),%rdx
lea    0x10(%rsp),%rdi
xor    %esi,%esi
call   1030 <memset@plt>
mov    0x54(%rsp),%r8d
test   %r8d,%r8d
jle    19b1 <shrink_line+0x891>
cvtsi2sd %r8d,%xmm4
cvtsi2sd %ebp,%xmm0
movsd  0xe86(%rip),%xmm5
divsd  %xmm4,%xmm5
divsd  %xmm0,%xmm4
lea    (%rsp,%r14,8),%r10
add    $0x10,%r10
lea    -0x1(%r14),%rax
mov    %ebx,%ecx
neg    %ecx
mov    %rcx,0x58(%rsp)
movslq %ecx,%r15
mov    %r14d,%edi
and    $0xfffffffc,%edi
lea    -0x4(%rdi),%r9
mov    %r9,%rsi
shr    $0x2,%rsi
add    $0x1,%rsi
mov    %r14d,%ecx
and    $0xfffffffe,%ecx
mov    %rcx,0x98(%rsp)
add    $0xfffffffffffffffe,%rcx
mov    %rcx,0x90(%rsp)
mov    %rcx,%rdx
shr    %rdx
add    $0x1,%rdx
mov    %rsi,%rcx
mov    %rsi,0x68(%rsp)
and    $0xfffffffffffffffe,%rsi
mov    %rsi,0x60(%rsp)
mov    %r14d,%esi
and    $0x3,%esi
mov    %eax,%ecx
sub    %ebx,%ecx
cmp    %r15d,%ecx
setl   %cl
shr    $0x20,%rax
setne  %al
or     %cl,%al
mov    %al,0xf(%rsp)
movapd %xmm5,%xmm8
unpcklpd %xmm5,%xmm8
movapd %xmm4,%xmm7
unpcklpd %xmm4,%xmm7
mov    %rdx,%rax
mov    %rdx,0x88(%rsp)
and    $0xfffffffffffffffe,%rdx
mov    %rdx,0x80(%rsp)
mov    %r14,%rax
neg    %rax
mov    %rax,0xb0(%rsp)
mov    $0x2,%eax
sub    %ebx,%eax
mov    %rax,0x78(%rsp)
xorps  %xmm6,%xmm6
mov    %r15,%rax
mov    %r15,0xa8(%rsp)
lea    (%r15,%r14,1),%rax
mov    %rax,0xa0(%rsp)
xor    %r15d,%r15d
xor    %r11d,%r11d
mov    %r13,0x70(%rsp)
mov    %ebx,0x34(%rsp)
mov    %rdi,0x48(%rsp)
mov    %r9,0x40(%rsp)
mov    %rsi,0x38(%rsp)
movapd %xmm4,0xf0(%rsp)
movapd %xmm5,0xe0(%rsp)
mov    %r10,0xb8(%rsp)
movapd %xmm8,0xd0(%rsp)
movapd %xmm7,0xc0(%rsp)
jmp    12bd <shrink_line+0x19d>
nopl   0x0(%rax,%rax,1)
add    $0x1,%r11d
cmp    %r8d,%r11d
je     19a4 <shrink_line+0x884>
mov    %r15d,%eax
jmp    12df <shrink_line+0x1bf>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    %r8d,%eax
mov    %eax,%r15d
sub    %ebp,%r15d
jge    1470 <shrink_line+0x350>
test   %ebx,%ebx
jle    12d0 <shrink_line+0x1b0>
cmp    $0x4,%ebx
jb     130a <shrink_line+0x1ea>
lea    0x0(,%r14,8),%rcx
add    %r13,%rcx
lea    0x10(%rsp),%rdx
cmp    %rcx,%rdx
jae    13aa <shrink_line+0x28a>
cmp    %r10,%r13
jae    13aa <shrink_line+0x28a>
xor    %ecx,%ecx
mov    %rcx,%rdx
not    %rdx
add    %r14,%rdx
test   %rsi,%rsi
je     1340 <shrink_line+0x220>
nopw   0x0(%rax,%rax,1)
movsd  0x0(%r13),%xmm0
addsd  0x10(%rsp,%rcx,8),%xmm0
add    $0x8,%r13
movsd  %xmm0,0x10(%rsp,%rcx,8)
add    $0x1,%rcx
add    $0xffffffffffffffff,%rsi
jne    1320 <shrink_line+0x200>
cmp    $0x3,%rdx
mov    0x38(%rsp),%rsi
jb     12d0 <shrink_line+0x1b0>
nopl   0x0(%rax,%rax,1)
movsd  0x0(%r13),%xmm0
addsd  0x10(%rsp,%rcx,8),%xmm0
movsd  %xmm0,0x10(%rsp,%rcx,8)
movsd  0x8(%r13),%xmm0
addsd  0x18(%rsp,%rcx,8),%xmm0
movsd  %xmm0,0x18(%rsp,%rcx,8)
movsd  0x10(%r13),%xmm0
addsd  0x20(%rsp,%rcx,8),%xmm0
movsd  %xmm0,0x20(%rsp,%rcx,8)
movsd  0x18(%r13),%xmm0
addsd  0x28(%rsp,%rcx,8),%xmm0
add    $0x20,%r13
movsd  %xmm0,0x28(%rsp,%rcx,8)
add    $0x4,%rcx
cmp    %rcx,%r14
jne    1350 <shrink_line+0x230>
jmp    12d0 <shrink_line+0x1b0>
test   %r9,%r9
je     1459 <shrink_line+0x339>
mov    0x60(%rsp),%rdx
xor    %ecx,%ecx
nopw   0x0(%rax,%rax,1)
movupd 0x0(%r13,%rcx,8),%xmm0
movupd 0x10(%r13,%rcx,8),%xmm1
addpd  0x10(%rsp,%rcx,8),%xmm0
addpd  0x20(%rsp,%rcx,8),%xmm1
movapd %xmm0,0x10(%rsp,%rcx,8)
movapd %xmm1,0x20(%rsp,%rcx,8)
movupd 0x20(%r13,%rcx,8),%xmm0
movupd 0x30(%r13,%rcx,8),%xmm1
addpd  0x30(%rsp,%rcx,8),%xmm0
addpd  0x40(%rsp,%rcx,8),%xmm1
movapd %xmm0,0x30(%rsp,%rcx,8)
movapd %xmm1,0x40(%rsp,%rcx,8)
add    $0x8,%rcx
add    $0xfffffffffffffffe,%rdx
jne    13c0 <shrink_line+0x2a0>
testb  $0x1,0x68(%rsp)
je     1443 <shrink_line+0x323>
movupd 0x0(%r13,%rcx,8),%xmm0
movupd 0x10(%r13,%rcx,8),%xmm1
addpd  0x10(%rsp,%rcx,8),%xmm0
addpd  0x20(%rsp,%rcx,8),%xmm1
movapd %xmm0,0x10(%rsp,%rcx,8)
movapd %xmm1,0x20(%rsp,%rcx,8)
lea    0x0(%r13,%rdi,8),%r13
mov    %rdi,%rcx
cmp    %r14,%rdi
je     12d0 <shrink_line+0x1b0>
jmp    130c <shrink_line+0x1ec>
xor    %ecx,%ecx
testb  $0x1,0x68(%rsp)
jne    141d <shrink_line+0x2fd>
jmp    1443 <shrink_line+0x323>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
cmp    %r8d,%r15d
jl     14cf <shrink_line+0x3af>
lea    0xb8c(%rip),%rdi
mov    %r11d,0x30(%rsp)
call   1040 <Com_Printf@plt>
mov    0x30(%rsp),%r11d
xorps  %xmm6,%xmm6
movapd 0xc0(%rsp),%xmm7
movapd 0xd0(%rsp),%xmm8
mov    0x38(%rsp),%rsi
mov    0x40(%rsp),%r9
mov    0x48(%rsp),%rdi
mov    0xb8(%rsp),%r10
movapd 0xe0(%rsp),%xmm5
movapd 0xf0(%rsp),%xmm4
mov    0x54(%rsp),%r8d
test   %r15d,%r15d
je     1510 <shrink_line+0x3f0>
test   %ebx,%ebx
jle    12b0 <shrink_line+0x190>
cmp    $0x1,%ebx
sete   %al
xorps  %xmm0,%xmm0
cvtsi2sd %r15d,%xmm0
or     0xf(%rsp),%al
je     1619 <shrink_line+0x4f9>
xor    %eax,%eax
test   $0x1,%r14b
jne    1744 <shrink_line+0x624>
mov    %rax,%rdx
jmp    177f <shrink_line+0x65f>
nopl   0x0(%rax,%rax,1)
test   %ebx,%ebx
jle    12b0 <shrink_line+0x190>
cmp    $0x4,%ebx
jb     153d <shrink_line+0x41d>
lea    (%r12,%r14,8),%rax
lea    0x10(%rsp),%rcx
cmp    %rax,%rcx
setb   %al
cmp    %r10,%r12
jae    1847 <shrink_line+0x727>
test   %al,%al
je     1847 <shrink_line+0x727>
xor    %eax,%eax
mov    %rax,%rcx
not    %rcx
add    %r14,%rcx
test   $0x3,%r14b
je     1587 <shrink_line+0x467>
mov    %rsi,%rdx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  0x10(%rsp,%rax,8),%xmm0
mulsd  %xmm4,%xmm0
movsd  %xmm0,(%r12)
add    $0x8,%r12
movq   $0x0,0x10(%rsp,%rax,8)
add    $0x1,%rax
add    $0xffffffffffffffff,%rdx
jne    1560 <shrink_line+0x440>
cmp    $0x3,%rcx
jb     12b0 <shrink_line+0x190>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  0x10(%rsp,%rax,8),%xmm0
mulsd  %xmm4,%xmm0
movsd  %xmm0,(%r12)
movq   $0x0,0x10(%rsp,%rax,8)
movsd  0x18(%rsp,%rax,8),%xmm0
mulsd  %xmm4,%xmm0
movsd  %xmm0,0x8(%r12)
movq   $0x0,0x18(%rsp,%rax,8)
movsd  0x20(%rsp,%rax,8),%xmm0
mulsd  %xmm4,%xmm0
movsd  %xmm0,0x10(%r12)
movq   $0x0,0x20(%rsp,%rax,8)
movsd  0x28(%rsp,%rax,8),%xmm0
mulsd  %xmm4,%xmm0
movsd  %xmm0,0x18(%r12)
add    $0x20,%r12
movq   $0x0,0x28(%rsp,%rax,8)
add    $0x4,%rax
cmp    %rax,%r14
jne    15a0 <shrink_line+0x480>
jmp    12b0 <shrink_line+0x190>
mov    %r11d,0x30(%rsp)
lea    (%r12,%r14,8),%rcx
mov    0xa8(%rsp),%rax
lea    0x0(,%rax,8),%rsi
add    %r13,%rsi
mov    0xa0(%rsp),%rax
lea    0x0(,%rax,8),%rdi
add    %r13,%rdi
cmp    %r10,%r12
setb   %bl
lea    0x10(%rsp),%r11
cmp    %rcx,%r11
setb   %dl
cmp    %rdi,%r12
setb   %al
cmp    %rcx,%rsi
setb   %r9b
cmp    %rdi,%r11
setb   %cl
cmp    %r10,%rsi
setb   %sil
test   %dl,%bl
jne    1908 <shrink_line+0x7e8>
and    %r9b,%al
jne    1908 <shrink_line+0x7e8>
and    %sil,%cl
mov    0x34(%rsp),%ebx
mov    0x48(%rsp),%rdi
mov    0x40(%rsp),%r9
mov    0x30(%rsp),%r11d
jne    1927 <shrink_line+0x807>
movapd %xmm0,%xmm1
unpcklpd %xmm0,%xmm1
cmpq   $0x0,0x90(%rsp)
je     1933 <shrink_line+0x813>
mov    0x80(%rsp),%rcx
xor    %eax,%eax
mov    0x78(%rsp),%rsi
cs nopw 0x0(%rax,%rax,1)
mov    0x58(%rsp),%rdx
add    %eax,%edx
movslq %edx,%rdx
movupd 0x0(%r13,%rdx,8),%xmm2
mulpd  %xmm1,%xmm2
mulpd  %xmm8,%xmm2
movapd 0x10(%rsp,%rax,8),%xmm3
subpd  %xmm2,%xmm3
mulpd  %xmm7,%xmm3
movupd %xmm3,(%r12,%rax,8)
movapd %xmm2,0x10(%rsp,%rax,8)
lea    (%rsi,%rax,1),%edx
movslq %edx,%rdx
movupd 0x0(%r13,%rdx,8),%xmm2
mulpd  %xmm1,%xmm2
mulpd  %xmm8,%xmm2
movapd 0x20(%rsp,%rax,8),%xmm3
subpd  %xmm2,%xmm3
mulpd  %xmm7,%xmm3
movupd %xmm3,0x10(%r12,%rax,8)
movapd %xmm2,0x20(%rsp,%rax,8)
add    $0x4,%rax
add    $0xfffffffffffffffe,%rcx
jne    16d0 <shrink_line+0x5b0>
jmp    1935 <shrink_line+0x815>
mov    %eax,%ecx
sub    %ebx,%ecx
movslq %ecx,%rcx
movsd  0x0(%r13,%rcx,8),%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm5,%xmm1
movsd  0x10(%rsp,%rax,8),%xmm2
subsd  %xmm1,%xmm2
mulsd  %xmm4,%xmm2
movsd  %xmm2,(%r12)
add    $0x8,%r12
movsd  %xmm1,0x10(%rsp,%rax,8)
mov    %rax,%rdx
or     $0x1,%rdx
not    %rax
cmp    0xb0(%rsp),%rax
je     12b0 <shrink_line+0x190>
mov    %ebp,%r9d
mov    %r14,%rax
sub    %rdx,%rax
mov    0x58(%rsp),%rcx
add    %edx,%ecx
lea    0x18(%rsp),%rsi
lea    (%rsi,%rdx,8),%rdx
xor    %esi,%esi
mov    %r12,%rdi
xchg   %ax,%ax
mov    %rdi,%rbx
lea    (%rcx,%rsi,1),%rdi
movslq %edi,%rdi
movsd  0x0(%r13,%rdi,8),%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm5,%xmm1
movsd  -0x8(%rdx,%rsi,8),%xmm2
subsd  %xmm1,%xmm2
mulsd  %xmm4,%xmm2
movsd  %xmm2,(%r12,%rsi,8)
movsd  %xmm1,-0x8(%rdx,%rsi,8)
add    $0x1,%edi
movslq %edi,%rdi
movsd  0x0(%r13,%rdi,8),%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm5,%xmm1
movsd  (%rdx,%rsi,8),%xmm2
subsd  %xmm1,%xmm2
mulsd  %xmm4,%xmm2
movsd  %xmm2,0x8(%r12,%rsi,8)
movsd  %xmm1,(%rdx,%rsi,8)
lea    (%r12,%rsi,8),%rdi
add    $0x10,%rdi
lea    0x2(%rsi),%rbp
mov    %rbp,%rsi
cmp    %rbp,%rax
jne    17b0 <shrink_line+0x690>
add    $0x10,%rbx
mov    %rbx,%r12
mov    %r9d,%ebp
mov    0x34(%rsp),%ebx
mov    0x48(%rsp),%rdi
mov    0x40(%rsp),%r9
mov    0x38(%rsp),%rsi
jmp    12b0 <shrink_line+0x190>
test   %r9,%r9
je     1992 <shrink_line+0x872>
mov    0x60(%rsp),%rcx
xor    %eax,%eax
nopw   0x0(%rax,%rax,1)
movapd 0x10(%rsp,%rax,8),%xmm0
mulpd  %xmm7,%xmm0
movapd 0x20(%rsp,%rax,8),%xmm1
mulpd  %xmm7,%xmm1
movupd %xmm0,(%r12,%rax,8)
movupd %xmm1,0x10(%r12,%rax,8)
movaps %xmm6,0x10(%rsp,%rax,8)
movaps %xmm6,0x20(%rsp,%rax,8)
movapd 0x30(%rsp,%rax,8),%xmm0
mulpd  %xmm7,%xmm0
movapd 0x40(%rsp,%rax,8),%xmm1
mulpd  %xmm7,%xmm1
movupd %xmm0,0x20(%r12,%rax,8)
movupd %xmm1,0x30(%r12,%rax,8)
movaps %xmm6,0x30(%rsp,%rax,8)
movaps %xmm6,0x40(%rsp,%rax,8)
add    $0x8,%rax
add    $0xfffffffffffffffe,%rcx
jne    1860 <shrink_line+0x740>
testb  $0x1,0x68(%rsp)
je     18f3 <shrink_line+0x7d3>
movapd 0x10(%rsp,%rax,8),%xmm0
mulpd  %xmm7,%xmm0
movapd 0x20(%rsp,%rax,8),%xmm1
mulpd  %xmm7,%xmm1
movupd %xmm0,(%r12,%rax,8)
movupd %xmm1,0x10(%r12,%rax,8)
movaps %xmm6,0x10(%rsp,%rax,8)
movaps %xmm6,0x20(%rsp,%rax,8)
lea    (%r12,%rdi,8),%r12
mov    %rdi,%rax
cmp    %r14,%rdi
je     12b0 <shrink_line+0x190>
jmp    153f <shrink_line+0x41f>
xor    %eax,%eax
mov    0x34(%rsp),%ebx
mov    0x48(%rsp),%rdi
mov    0x40(%rsp),%r9
mov    0x38(%rsp),%rsi
mov    0x30(%rsp),%r11d
jmp    14f6 <shrink_line+0x3d6>
xor    %eax,%eax
mov    0x38(%rsp),%rsi
jmp    14f6 <shrink_line+0x3d6>
xor    %eax,%eax
testb  $0x1,0x88(%rsp)
01
mov    0x38(%rsp),%rsi
je     1975 <shrink_line+0x855>
mov    %eax,%ecx
sub    %ebx,%ecx
movslq %ecx,%rcx
movupd 0x0(%r13,%rcx,8),%xmm2
mulpd  %xmm1,%xmm2
mulpd  %xmm8,%xmm2
movapd 0x10(%rsp,%rax,8),%xmm1
subpd  %xmm2,%xmm1
mulpd  %xmm7,%xmm1
movupd %xmm1,(%r12,%rax,8)
movapd %xmm2,0x10(%rsp,%rax,8)
mov    0x98(%rsp),%rcx
lea    (%r12,%rcx,8),%r12
mov    %rcx,%rax
cmp    %r14,%rcx
je     12b0 <shrink_line+0x190>
jmp    14f6 <shrink_line+0x3d6>
xor    %eax,%eax
testb  $0x1,0x68(%rsp)
jne    18c8 <shrink_line+0x7a8>
jmp    18f3 <shrink_line+0x7d3>
test   %r15d,%r15d
sete   %al
mov    0x70(%rsp),%rcx
jmp    19b6 <shrink_line+0x896>
mov    $0x1,%al
mov    %r13,%rcx
sub    %rcx,%r13
sar    $0x3,%r13
imul   %ebx,%ebp
movslq %ebp,%rcx
cmp    %rcx,%r13
jne    19de <shrink_line+0x8be>
test   %al,%al
je     19de <shrink_line+0x8be>
add    $0x108,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x658(%rip),%rdi
add    $0x108,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <Com_Printf@plt>

LLVM IR (-O0):
@.str = [53 x i8] c"Assertion (slicepos < width) failed. Please report.\0A\00"
@.str.1 = [84 x i8] c"Assertion (srcp - src == old_width * bytes && slicepos == 0) failed. Please report.\00"
define void @shrink_line(double* %0, double* %1, i32 %2, i32 %3, i32 %4) {
%6 = alloca double*
%7 = alloca double*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca double*
%14 = alloca double*
%15 = alloca [4 x double]
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca i32
store double* %0, double** %6
store double* %1, double** %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i32 %4, i32* %10
%20 = load i32, i32* %10
%21 = sitofp i32 %20 to double
%22 = load i32, i32* %9
%23 = sitofp i32 %22 to double
%24 = fdiv double %21, %23
store double %24, double* %17
%25 = load i32, i32* %10
%26 = sitofp i32 %25 to double
%27 = fdiv double 1.000000e+00, %26
store double %27, double* %18
%28 = load double*, double** %7
store double* %28, double** %13
%29 = load double*, double** %6
store double* %29, double** %14
store i32 0, i32* %19
store i32 0, i32* %12
br label %30
30: ; preds = %38, %5
%31 = load i32, i32* %12
%32 = load i32, i32* %8
%33 = icmp slt i32 %31, %32
br i1 %33, label %34, label %41
34: ; preds = %30
%35 = load i32, i32* %12
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [4 x double], [4 x double]* %15, i64 0, i64 %36
store double 0.000000e+00, double* %37
br label %38
38: ; preds = %34
%39 = load i32, i32* %12
%40 = add nsw i32 %39, 1
store i32 %40, i32* %12
br label %30
41: ; preds = %30
store i32 0, i32* %11
br label %42
42: ; preds = %143, %41
%43 = load i32, i32* %11
%44 = load i32, i32* %10
%45 = icmp slt i32 %43, %44
br i1 %45, label %46, label %146
46: ; preds = %42
br label %47
47: ; preds = %68, %46
store i32 0, i32* %12
br label %48
48: ; preds = %61, %47
%49 = load i32, i32* %12
%50 = load i32, i32* %8
%51 = icmp slt i32 %49, %50
br i1 %51, label %52, label %64
52: ; preds = %48
%53 = load double*, double** %13
%54 = getelementptr inbounds double, double* %53, i32 1
store double* %54, double** %13
%55 = load double, double* %53
%56 = load i32, i32* %12
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [4 x double], [4 x double]* %15, i64 0, i64 %57
%59 = load double, double* %58
%60 = fadd double %59, %55
store double %60, double* %58
br label %61
61: ; preds = %52
%62 = load i32, i32* %12
%63 = add nsw i32 %62, 1
store i32 %63, i32* %12
br label %48
64: ; preds = %48
%65 = load i32, i32* %10
%66 = load i32, i32* %19
%67 = add nsw i32 %66, %65
store i32 %67, i32* %19
br label %68
68: ; preds = %64
%69 = load i32, i32* %19
%70 = load i32, i32* %9
%71 = icmp slt i32 %69, %70
br i1 %71, label %47, label %72
72: ; preds = %68
%73 = load i32, i32* %9
%74 = load i32, i32* %19
%75 = sub nsw i32 %74, %73
store i32 %75, i32* %19
%76 = load i32, i32* %19
%77 = load i32, i32* %10
%78 = icmp slt i32 %76, %77
br i1 %78, label %81, label %79
79: ; preds = %72
%80 = call i32 @Com_Printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0))
br label %81
81: ; preds = %79, %72
%82 = load i32, i32* %19
%83 = icmp eq i32 %82, 0
br i1 %83, label %84, label %105
84: ; preds = %81
store i32 0, i32* %12
br label %85
85: ; preds = %101, %84
%86 = load i32, i32* %12
%87 = load i32, i32* %8
%88 = icmp slt i32 %86, %87
br i1 %88, label %89, label %104
89: ; preds = %85
%90 = load i32, i32* %12
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [4 x double], [4 x double]* %15, i64 0, i64 %91
%93 = load double, double* %92
%94 = load double, double* %17
%95 = fmul double %93, %94
%96 = load double*, double** %14
%97 = getelementptr inbounds double, double* %96, i32 1
store double* %97, double** %14
store double %95, double* %96
%98 = load i32, i32* %12
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds [4 x double], [4 x double]* %15, i64 0, i64 %99
store double 0.000000e+00, double* %100
br label %101
101: ; preds = %89
%102 = load i32, i32* %12
%103 = add nsw i32 %102, 1
store i32 %103, i32* %12
br label %85
104: ; preds = %85
br label %142
105: ; preds = %81
store i32 0, i32* %12
br label %106
106: ; preds = %138, %105
%107 = load i32, i32* %12
%108 = load i32, i32* %8
%109 = icmp slt i32 %107, %108
br i1 %109, label %110, label %141
110: ; preds = %106
%111 = load double*, double** %13
%112 = load i32, i32* %8
%113 = sub nsw i32 0, %112
%114 = load i32, i32* %12
%115 = add nsw i32 %113, %114
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds double, double* %111, i64 %116
%118 = load double, double* %117
%119 = load i32, i32* %19
%120 = sitofp i32 %119 to double
%121 = fmul double %118, %120
%122 = load double, double* %18
%123 = fmul double %121, %122
store double %123, double* %16
%124 = load i32, i32* %12
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds [4 x double], [4 x double]* %15, i64 0, i64 %125
%127 = load double, double* %126
%128 = load double, double* %16
%129 = fsub double %127, %128
%130 = load double, double* %17
%131 = fmul double %129, %130
%132 = load double*, double** %14
%133 = getelementptr inbounds double, double* %132, i32 1
store double* %133, double** %14
store double %131, double* %132
%134 = load double, double* %16
%135 = load i32, i32* %12
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds [4 x double], [4 x double]* %15, i64 0, i64 %136
store double %134, double* %137
br label %138
138: ; preds = %110
%139 = load i32, i32* %12
%140 = add nsw i32 %139, 1
store i32 %140, i32* %12
br label %106
141: ; preds = %106
br label %142
142: ; preds = %141, %104
br label %143
143: ; preds = %142
%144 = load i32, i32* %11
%145 = add nsw i32 %144, 1
store i32 %145, i32* %11
br label %42
146: ; preds = %42
%147 = load double*, double** %13
%148 = load double*, double** %7
%149 = ptrtoint double* %147 to i64
%150 = ptrtoint double* %148 to i64
%151 = sub i64 %149, %150
%152 = sdiv exact i64 %151, 8
%153 = load i32, i32* %9
%154 = load i32, i32* %8
%155 = mul nsw i32 %153, %154
%156 = sext i32 %155 to i64
%157 = icmp eq i64 %152, %156
br i1 %157, label %158, label %161
158: ; preds = %146
%159 = load i32, i32* %19
%160 = icmp eq i32 %159, 0
br i1 %160, label %163, label %161
161: ; preds = %158, %146
%162 = call i32 @Com_Printf(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.1, i64 0, i64 0))
br label %163
163: ; preds = %161, %158
ret void
}

LLVM IR (-O2):
@.str = [53 x i8] c"Assertion (slicepos < width) failed. Please report.\0A\00"
@.str.1 = [84 x i8] c"Assertion (srcp - src == old_width * bytes && slicepos == 0) failed. Please report.\00"
define void @shrink_line(double* nocapture writeonly %0, double* %1, i32 %2, i32 %3, i32 %4) {
%6 = alloca [4 x double]
%7 = bitcast [4 x double]* %6 to i8*
%8 = sitofp i32 %4 to double
%9 = sitofp i32 %3 to double
%10 = fdiv double %8, %9
%11 = fdiv double 1.000000e+00, %8
%12 = icmp sgt i32 %2, 0
br i1 %12, label %13, label %16
13: ; preds = %5
%14 = zext i32 %2 to i64
%15 = shl nuw nsw i64 %14, 3
br label %16
16: ; preds = %13, %5
%17 = icmp sgt i32 %4, 0
br i1 %17, label %18, label %466
18: ; preds = %16
%19 = zext i32 %2 to i64
%20 = zext i32 %2 to i64
%21 = zext i32 %2 to i64
%22 = getelementptr [4 x double], [4 x double]* %6, i64 0, i64 %19
%23 = add nsw i64 %19, -1
%24 = sub i32 0, %2
%25 = getelementptr [4 x double], [4 x double]* %6, i64 0, i64 %19
%26 = sext i32 %24 to i64
%27 = add nsw i64 %26, %19
%28 = getelementptr [4 x double], [4 x double]* %6, i64 0, i64 %19
%29 = and i64 %19, 4294967292
%30 = add nsw i64 %29, -4
%31 = lshr exact i64 %30, 2
%32 = add nuw nsw i64 %31, 1
%33 = and i64 %19, 4294967294
%34 = add nsw i64 %33, -2
%35 = lshr exact i64 %34, 1
%36 = add nuw i64 %35, 1
%37 = icmp ult i32 %2, 4
%38 = and i64 %19, 4294967292
%39 = and i64 %32, 1
%40 = icmp eq i64 %30, 0
%41 = and i64 %32, 9223372036854775806
%42 = icmp eq i64 %39, 0
%43 = icmp eq i64 %38, %19
%44 = and i64 %19, 3
%45 = icmp eq i64 %44, 0
%46 = icmp eq i32 %2, 1
%47 = trunc i64 %23 to i32
%48 = sub i32 %47, %2
%49 = icmp slt i32 %48, %24
%50 = icmp ugt i64 %23, 4294967295
%51 = or i1 %49, %50
%52 = and i64 %19, 4294967294
%53 = insertelement <2 x double> poison, double %11, i64 0
%54 = shufflevector <2 x double> %53, <2 x double> poison, <2 x i32> zeroinitializer
%55 = insertelement <2 x double> poison, double %10, i64 0
%56 = shufflevector <2 x double> %55, <2 x double> poison, <2 x i32> zeroinitializer
%57 = and i64 %36, 1
%58 = icmp eq i64 %34, 0
%59 = and i64 %36, -2
%60 = icmp eq i64 %57, 0
%61 = icmp eq i64 %52, %19
%62 = and i64 %19, 1
%63 = icmp eq i64 %62, 0
%64 = sub nsw i64 0, %19
%65 = icmp ult i32 %2, 4
%66 = and i64 %19, 4294967292
%67 = insertelement <2 x double> poison, double %10, i64 0
%68 = shufflevector <2 x double> %67, <2 x double> poison, <2 x i32> zeroinitializer
%69 = insertelement <2 x double> poison, double %10, i64 0
%70 = shufflevector <2 x double> %69, <2 x double> poison, <2 x i32> zeroinitializer
%71 = and i64 %32, 1
%72 = icmp eq i64 %30, 0
%73 = and i64 %32, 9223372036854775806
%74 = icmp eq i64 %71, 0
%75 = icmp eq i64 %66, %19
%76 = and i64 %19, 3
%77 = icmp eq i64 %76, 0
br label %78
78: ; preds = %18, %460
%79 = phi i32 [ 0, %18 ], [ %209, %460 ]
%80 = phi i32 [ 0, %18 ], [ %462, %460 ]
%81 = phi double* [ %1, %18 ], [ %205, %460 ]
%82 = phi double* [ %0, %18 ], [ %461, %460 ]
br label %83
83: ; preds = %78, %204
%84 = phi double* [ %205, %204 ], [ %81, %78 ]
%85 = phi i32 [ %206, %204 ], [ %79, %78 ]
br i1 %12, label %86, label %204
86: ; preds = %83
br i1 %37, label %154, label %87
87: ; preds = %86
%88 = getelementptr double, double* %84, i64 %19
%89 = bitcast double* %88 to [4 x double]*
%90 = icmp ult [4 x double]* %6, %89
%91 = icmp ult double* %84, %28
%92 = and i1 %90, %91
br i1 %92, label %154, label %93
93: ; preds = %87
%94 = getelementptr double, double* %84, i64 %38
br i1 %40, label %134, label %95
95: ; preds = %93, %95
%96 = phi i64 [ %131, %95 ], [ 0, %93 ]
%97 = phi i64 [ %132, %95 ], [ 0, %93 ]
%98 = getelementptr double, double* %84, i64 %96
%99 = bitcast double* %98 to <2 x double>*
%100 = load <2 x double>, <2 x double>* %99
%101 = getelementptr double, double* %98, i64 2
%102 = bitcast double* %101 to <2 x double>*
%103 = load <2 x double>, <2 x double>* %102
%104 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0, i64 %96
%105 = bitcast double* %104 to <2 x double>*
%106 = load <2 x double>, <2 x double>* %105
%107 = getelementptr inbounds double, double* %104, i64 2
%108 = bitcast double* %107 to <2 x double>*
%109 = load <2 x double>, <2 x double>* %108
%110 = fadd <2 x double> %100, %106
%111 = fadd <2 x double> %103, %109
%112 = bitcast double* %104 to <2 x double>*
store <2 x double> %110, <2 x double>* %112
%113 = bitcast double* %107 to <2 x double>*
store <2 x double> %111, <2 x double>* %113
%114 = or i64 %96, 4
%115 = getelementptr double, double* %84, i64 %114
%116 = bitcast double* %115 to <2 x double>*
%117 = load <2 x double>, <2 x double>* %116
%118 = getelementptr double, double* %115, i64 2
%119 = bitcast double* %118 to <2 x double>*
%120 = load <2 x double>, <2 x double>* %119
%121 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0, i64 %114
%122 = bitcast double* %121 to <2 x double>*
%123 = load <2 x double>, <2 x double>* %122
%124 = getelementptr inbounds double, double* %121, i64 2
%125 = bitcast double* %124 to <2 x double>*
%126 = load <2 x double>, <2 x double>* %125
%127 = fadd <2 x double> %117, %123
%128 = fadd <2 x double> %120, %126
%129 = bitcast double* %121 to <2 x double>*
store <2 x double> %127, <2 x double>* %129
%130 = bitcast double* %124 to <2 x double>*
store <2 x double> %128, <2 x double>* %130
%131 = add nuw i64 %96, 8
%132 = add i64 %97, 2
%133 = icmp eq i64 %132, %41
br i1 %133, label %134, label %95
134: ; preds = %95, %93
%135 = phi i64 [ 0, %93 ], [ %131, %95 ]
br i1 %42, label %153, label %136
136: ; preds = %134
%137 = getelementptr double, double* %84, i64 %135
%138 = bitcast double* %137 to <2 x double>*
%139 = load <2 x double>, <2 x double>* %138
%140 = getelementptr double, double* %137, i64 2
%141 = bitcast double* %140 to <2 x double>*
%142 = load <2 x double>, <2 x double>* %141
%143 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0, i64 %135
%144 = bitcast double* %143 to <2 x double>*
%145 = load <2 x double>, <2 x double>* %144
%146 = getelementptr inbounds double, double* %143, i64 2
%147 = bitcast double* %146 to <2 x double>*
%148 = load <2 x double>, <2 x double>* %147
%149 = fadd <2 x double> %139, %145
%150 = fadd <2 x double> %142, %148
%151 = bitcast double* %143 to <2 x double>*
store <2 x double> %149, <2 x double>* %151
%152 = bitcast double* %146 to <2 x double>*
store <2 x double> %150, <2 x double>* %152
br label %153
153: ; preds = %134, %136
br i1 %43, label %204, label %154
154: ; preds = %87, %86, %153
%155 = phi i64 [ 0, %87 ], [ 0, %86 ], [ %38, %153 ]
%156 = phi double* [ %84, %87 ], [ %84, %86 ], [ %94, %153 ]
%157 = xor i64 %155, -1
%158 = add nsw i64 %157, %19
br i1 %45, label %171, label %159
159: ; preds = %154, %159
%160 = phi i64 [ %168, %159 ], [ %155, %154 ]
%161 = phi double* [ %163, %159 ], [ %156, %154 ]
%162 = phi i64 [ %169, %159 ], [ 0, %154 ]
%163 = getelementptr inbounds double, double* %161, i64 1
%164 = load double, double* %161
%165 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0, i64 %160
%166 = load double, double* %165
%167 = fadd double %164, %166
store double %167, double* %165
%168 = add nuw nsw i64 %160, 1
%169 = add i64 %162, 1
%170 = icmp eq i64 %169, %44
br i1 %170, label %171, label %159
171: ; preds = %159, %154
%172 = phi double* [ undef, %154 ], [ %163, %159 ]
%173 = phi i64 [ %155, %154 ], [ %168, %159 ]
%174 = phi double* [ %156, %154 ], [ %163, %159 ]
%175 = icmp ult i64 %158, 3
br i1 %175, label %204, label %176
176: ; preds = %171, %176
%177 = phi i64 [ %202, %176 ], [ %173, %171 ]
%178 = phi double* [ %197, %176 ], [ %174, %171 ]
%179 = getelementptr inbounds double, double* %178, i64 1
%180 = load double, double* %178
%181 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0, i64 %177
%182 = load double, double* %181
%183 = fadd double %180, %182
store double %183, double* %181
%184 = add nuw nsw i64 %177, 1
%185 = getelementptr inbounds double, double* %178, i64 2
%186 = load double, double* %179
%187 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0, i64 %184
%188 = load double, double* %187
%189 = fadd double %186, %188
store double %189, double* %187
%190 = add nuw nsw i64 %177, 2
%191 = getelementptr inbounds double, double* %178, i64 3
%192 = load double, double* %185
%193 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0, i64 %190
%194 = load double, double* %193
%195 = fadd double %192, %194
store double %195, double* %193
%196 = add nuw nsw i64 %177, 3
%197 = getelementptr inbounds double, double* %178, i64 4
%198 = load double, double* %191
%199 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0, i64 %196
%200 = load double, double* %199
%201 = fadd double %198, %200
store double %201, double* %199
%202 = add nuw nsw i64 %177, 4
%203 = icmp eq i64 %202, %19
br i1 %203, label %204, label %176
204: ; preds = %171, %176, %153, %83
%205 = phi double* [ %84, %83 ], [ %94, %153 ], [ %172, %171 ], [ %197, %176 ]
%206 = add nsw i32 %85, %4
%207 = icmp slt i32 %206, %3
br i1 %207, label %83, label %208
208: ; preds = %204
%209 = sub nsw i32 %206, %3
%210 = icmp slt i32 %209, %4
br i1 %210, label %213, label %211
211: ; preds = %208
%212 = tail call i32 @Com_Printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0))
br label %213
213: ; preds = %211, %208
%214 = icmp eq i32 %209, 0
br i1 %214, label %322, label %215
215: ; preds = %213
br i1 %12, label %216, label %460
216: ; preds = %215
%217 = sitofp i32 %209 to double
%218 = select i1 %46, i1 true, i1 %51
br i1 %218, label %299, label %219
219: ; preds = %216
%220 = getelementptr double, double* %82, i64 %19
%221 = getelementptr double, double* %205, i64 %26
%222 = getelementptr double, double* %205, i64 %27
%223 = icmp ult double* %82, %25
%224 = bitcast double* %220 to [4 x double]*
%225 = icmp ult [4 x double]* %6, %224
%226 = and i1 %223, %225
%227 = icmp ult double* %82, %222
%228 = icmp ult double* %221, %220
%229 = and i1 %227, %228
%230 = or i1 %226, %229
%231 = bitcast double* %222 to [4 x double]*
%232 = icmp ult [4 x double]* %6, %231
%233 = icmp ult double* %221, %25
%234 = and i1 %232, %233
%235 = or i1 %230, %234
br i1 %235, label %299, label %236
236: ; preds = %219
%237 = getelementptr double, double* %82, i64 %52
%238 = insertelement <2 x double> poison, double %217, i64 0
%239 = shufflevector <2 x double> %238, <2 x double> poison, <2 x i32> zeroinitializer
br i1 %58, label %279, label %240
240: ; preds = %236, %240
%241 = phi i64 [ %276, %240 ], [ 0, %236 ]
%242 = phi i64 [ %277, %240 ], [ 0, %236 ]
%243 = getelementptr double, double* %82, i64 %241
%244 = trunc i64 %241 to i32
%245 = sub i32 %244, %2
%246 = sext i32 %245 to i64
%247 = getelementptr inbounds double, double* %205, i64 %246
%248 = bitcast double* %247 to <2 x double>*
%249 = load <2 x double>, <2 x double>* %248
%250 = fmul <2 x double> %249, %239
%251 = fmul <2 x double> %54, %250
%252 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0, i64 %241
%253 = bitcast double* %252 to <2 x double>*
%254 = load <2 x double>, <2 x double>* %253
%255 = fsub <2 x double> %254, %251
%256 = fmul <2 x double> %56, %255
%257 = bitcast double* %243 to <2 x double>*
store <2 x double> %256, <2 x double>* %257
%258 = bitcast double* %252 to <2 x double>*
store <2 x double> %251, <2 x double>* %258
%259 = or i64 %241, 2
%260 = getelementptr double, double* %82, i64 %259
%261 = trunc i64 %259 to i32
%262 = sub i32 %261, %2
%263 = sext i32 %262 to i64
%264 = getelementptr inbounds double, double* %205, i64 %263
%265 = bitcast double* %264 to <2 x double>*
%266 = load <2 x double>, <2 x double>* %265
%267 = fmul <2 x double> %266, %239
%268 = fmul <2 x double> %54, %267
%269 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0, i64 %259
%270 = bitcast double* %269 to <2 x double>*
%271 = load <2 x double>, <2 x double>* %270
%272 = fsub <2 x double> %271, %268
%273 = fmul <2 x double> %56, %272
%274 = bitcast double* %260 to <2 x double>*
store <2 x double> %273, <2 x double>* %274
%275 = bitcast double* %269 to <2 x double>*
store <2 x double> %268, <2 x double>* %275
%276 = add nuw i64 %241, 4
%277 = add nuw i64 %242, 2
%278 = icmp eq i64 %277, %59
br i1 %278, label %279, label %240
279: ; preds = %240, %236
%280 = phi i64 [ 0, %236 ], [ %276, %240 ]
br i1 %60, label %298, label %281
281: ; preds = %279
%282 = getelementptr double, double* %82, i64 %280
%283 = trunc i64 %280 to i32
%284 = sub i32 %283, %2
%285 = sext i32 %284 to i64
%286 = getelementptr inbounds double, double* %205, i64 %285
%287 = bitcast double* %286 to <2 x double>*
%288 = load <2 x double>, <2 x double>* %287
%289 = fmul <2 x double> %288, %239
%290 = fmul <2 x double> %54, %289
%291 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0, i64 %280
%292 = bitcast double* %291 to <2 x double>*
%293 = load <2 x double>, <2 x double>* %292
%294 = fsub <2 x double> %293, %290
%295 = fmul <2 x double> %56, %294
%296 = bitcast double* %282 to <2 x double>*
store <2 x double> %295, <2 x double>* %296
%297 = bitcast double* %291 to <2 x double>*
store <2 x double> %290, <2 x double>* %297
br label %298
298: ; preds = %279, %281
br i1 %61, label %460, label %299
299: ; preds = %216, %219, %298
%300 = phi i64 [ 0, %219 ], [ 0, %216 ], [ %52, %298 ]
%301 = phi double* [ %82, %219 ], [ %82, %216 ], [ %237, %298 ]
%302 = xor i64 %300, -1
br i1 %63, label %317, label %303
303: ; preds = %299
%304 = trunc i64 %300 to i32
%305 = sub i32 %304, %2
%306 = sext i32 %305 to i64
%307 = getelementptr inbounds double, double* %205, i64 %306
%308 = load double, double* %307
%309 = fmul double %308, %217
%310 = fmul double %11, %309
%311 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0, i64 %300
%312 = load double, double* %311
%313 = fsub double %312, %310
%314 = fmul double %10, %313
%315 = getelementptr inbounds double, double* %301, i64 1
store double %314, double* %301
store double %310, double* %311
%316 = or i64 %300, 1
br label %317
317: ; preds = %303, %299
%318 = phi double* [ undef, %299 ], [ %315, %303 ]
%319 = phi i64 [ %300, %299 ], [ %316, %303 ]
%320 = phi double* [ %301, %299 ], [ %315, %303 ]
%321 = icmp eq i64 %302, %64
br i1 %321, label %460, label %430
322: ; preds = %213
br i1 %12, label %323, label %460
323: ; preds = %322
br i1 %65, label %385, label %324
324: ; preds = %323
%325 = getelementptr double, double* %82, i64 %19
%326 = icmp ult double* %82, %22
%327 = bitcast double* %325 to [4 x double]*
%328 = icmp ult [4 x double]* %6, %327
%329 = and i1 %326, %328
br i1 %329, label %385, label %330
330: ; preds = %324
%331 = getelementptr double, double* %82, i64 %66
br i1 %72, label %367, label %332
332: ; preds = %330, %332
%333 = phi i64 [ %364, %332 ], [ 0, %330 ]
%334 = phi i64 [ %365, %332 ], [ 0, %330 ]
%335 = getelementptr double, double* %82, i64 %333
%336 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0, i64 %333
%337 = bitcast double* %336 to <2 x double>*
%338 = load <2 x double>, <2 x double>* %337
%339 = getelementptr inbounds double, double* %336, i64 2
%340 = bitcast double* %339 to <2 x double>*
%341 = load <2 x double>, <2 x double>* %340
%342 = fmul <2 x double> %68, %338
%343 = fmul <2 x double> %70, %341
%344 = bitcast double* %335 to <2 x double>*
store <2 x double> %342, <2 x double>* %344
%345 = getelementptr double, double* %335, i64 2
%346 = bitcast double* %345 to <2 x double>*
store <2 x double> %343, <2 x double>* %346
%347 = bitcast double* %336 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %347
%348 = bitcast double* %339 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %348
%349 = or i64 %333, 4
%350 = getelementptr double, double* %82, i64 %349
%351 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0, i64 %349
%352 = bitcast double* %351 to <2 x double>*
%353 = load <2 x double>, <2 x double>* %352
%354 = getelementptr inbounds double, double* %351, i64 2
%355 = bitcast double* %354 to <2 x double>*
%356 = load <2 x double>, <2 x double>* %355
%357 = fmul <2 x double> %68, %353
%358 = fmul <2 x double> %70, %356
%359 = bitcast double* %350 to <2 x double>*
store <2 x double> %357, <2 x double>* %359
%360 = getelementptr double, double* %350, i64 2
%361 = bitcast double* %360 to <2 x double>*
store <2 x double> %358, <2 x double>* %361
%362 = bitcast double* %351 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %362
%363 = bitcast double* %354 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %363
%364 = add nuw i64 %333, 8
%365 = add i64 %334, 2
%366 = icmp eq i64 %365, %73
br i1 %366, label %367, label %332
367: ; preds = %332, %330
%368 = phi i64 [ 0, %330 ], [ %364, %332 ]
br i1 %74, label %384, label %369
369: ; preds = %367
%370 = getelementptr double, double* %82, i64 %368
%371 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0, i64 %368
%372 = bitcast double* %371 to <2 x double>*
%373 = load <2 x double>, <2 x double>* %372
%374 = getelementptr inbounds double, double* %371, i64 2
%375 = bitcast double* %374 to <2 x double>*
%376 = load <2 x double>, <2 x double>* %375
%377 = fmul <2 x double> %68, %373
%378 = fmul <2 x double> %70, %376
%379 = bitcast double* %370 to <2 x double>*
store <2 x double> %377, <2 x double>* %379
%380 = getelementptr double, double* %370, i64 2
%381 = bitcast double* %380 to <2 x double>*
store <2 x double> %378, <2 x double>* %381
%382 = bitcast double* %371 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %382
%383 = bitcast double* %374 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %383
br label %384
384: ; preds = %367, %369
br i1 %75, label %460, label %385
385: ; preds = %324, %323, %384
%386 = phi i64 [ 0, %324 ], [ 0, %323 ], [ %66, %384 ]
%387 = phi double* [ %82, %324 ], [ %82, %323 ], [ %331, %384 ]
%388 = xor i64 %386, -1
%389 = add nsw i64 %388, %19
br i1 %77, label %401, label %390
390: ; preds = %385, %390
%391 = phi i64 [ %398, %390 ], [ %386, %385 ]
%392 = phi double* [ %397, %390 ], [ %387, %385 ]
%393 = phi i64 [ %399, %390 ], [ 0, %385 ]
%394 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0, i64 %391
%395 = load double, double* %394
%396 = fmul double %10, %395
%397 = getelementptr inbounds double, double* %392, i64 1
store double %396, double* %392
store double 0.000000e+00, double* %394
%398 = add nuw nsw i64 %391, 1
%399 = add i64 %393, 1
%400 = icmp eq i64 %399, %76
br i1 %400, label %401, label %390
401: ; preds = %390, %385
%402 = phi double* [ undef, %385 ], [ %397, %390 ]
%403 = phi i64 [ %386, %385 ], [ %398, %390 ]
%404 = phi double* [ %387, %385 ], [ %397, %390 ]
%405 = icmp ult i64 %389, 3
br i1 %405, label %460, label %406
406: ; preds = %401, %406
%407 = phi i64 [ %428, %406 ], [ %403, %401 ]
%408 = phi double* [ %427, %406 ], [ %404, %401 ]
%409 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0, i64 %407
%410 = load double, double* %409
%411 = fmul double %10, %410
%412 = getelementptr inbounds double, double* %408, i64 1
store double %411, double* %408
store double 0.000000e+00, double* %409
%413 = add nuw nsw i64 %407, 1
%414 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0, i64 %413
%415 = load double, double* %414
%416 = fmul double %10, %415
%417 = getelementptr inbounds double, double* %408, i64 2
store double %416, double* %412
store double 0.000000e+00, double* %414
%418 = add nuw nsw i64 %407, 2
%419 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0, i64 %418
%420 = load double, double* %419
%421 = fmul double %10, %420
%422 = getelementptr inbounds double, double* %408, i64 3
store double %421, double* %417
store double 0.000000e+00, double* %419
%423 = add nuw nsw i64 %407, 3
%424 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0, i64 %423
%425 = load double, double* %424
%426 = fmul double %10, %425
%427 = getelementptr inbounds double, double* %408, i64 4
store double %426, double* %422
store double 0.000000e+00, double* %424
%428 = add nuw nsw i64 %407, 4
%429 = icmp eq i64 %428, %21
br i1 %429, label %460, label %406
430: ; preds = %317, %430
%431 = phi i64 [ %458, %430 ], [ %319, %317 ]
%432 = phi double* [ %457, %430 ], [ %320, %317 ]
%433 = trunc i64 %431 to i32
%434 = sub i32 %433, %2
%435 = sext i32 %434 to i64
%436 = getelementptr inbounds double, double* %205, i64 %435
%437 = load double, double* %436
%438 = fmul double %437, %217
%439 = fmul double %11, %438
%440 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0, i64 %431
%441 = load double, double* %440
%442 = fsub double %441, %439
%443 = fmul double %10, %442
%444 = getelementptr inbounds double, double* %432, i64 1
store double %443, double* %432
store double %439, double* %440
%445 = add nuw nsw i64 %431, 1
%446 = trunc i64 %445 to i32
%447 = sub i32 %446, %2
%448 = sext i32 %447 to i64
%449 = getelementptr inbounds double, double* %205, i64 %448
%450 = load double, double* %449
%451 = fmul double %450, %217
%452 = fmul double %11, %451
%453 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0, i64 %445
%454 = load double, double* %453
%455 = fsub double %454, %452
%456 = fmul double %10, %455
%457 = getelementptr inbounds double, double* %432, i64 2
store double %456, double* %444
store double %452, double* %453
%458 = add nuw nsw i64 %431, 2
%459 = icmp eq i64 %458, %20
br i1 %459, label %460, label %430
460: ; preds = %317, %430, %401, %406, %298, %384, %215, %322
%461 = phi double* [ %82, %322 ], [ %82, %215 ], [ %331, %384 ], [ %237, %298 ], [ %402, %401 ], [ %427, %406 ], [ %318, %317 ], [ %457, %430 ]
%462 = add nuw nsw i32 %80, 1
%463 = icmp eq i32 %462, %4
br i1 %463, label %464, label %78
464: ; preds = %460
%465 = icmp eq i32 %209, 0
br label %466
466: ; preds = %464, %16
%467 = phi double* [ %1, %16 ], [ %205, %464 ]
%468 = phi i1 [ true, %16 ], [ %465, %464 ]
%469 = ptrtoint double* %467 to i64
%470 = ptrtoint double* %1 to i64
%471 = sub i64 %469, %470
%472 = ashr exact i64 %471, 3
%473 = mul nsw i32 %3, %2
%474 = sext i32 %473 to i64
%475 = icmp eq i64 %472, %474
%476 = select i1 %475, i1 %468, i1 false
br i1 %476, label %479, label %477
477: ; preds = %466
%478 = tail call i32 @Com_Printf(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.1, i64 0, i64 0))
br label %479
479: ; preds = %466, %477
ret void
}