#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*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stderr;
void dump_filter_coefficients(double *coefficients) {
  int i;
  fprintf(stderr, "pl_surround: Filter coefficients are: \n");
  for (i = 0; (i < 32); i++) {
    fprintf(stderr, "  [%2d]: %23.20f\n", i, coefficients[i]);
  }
}


x86 assembly (clang, -O0):
<dump_filter_coefficients>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ebd(%rip),%rax
mov    (%rax),%edi
lea    0xed4(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
movl   $0x0,-0xc(%rbp)
cmpl   $0x20,-0xc(%rbp)
jge    1179 <dump_filter_coefficients+0x69>
mov    0x2e95(%rip),%rax
mov    (%rax),%edi
mov    -0xc(%rbp),%edx
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xec4(%rip),%rsi
mov    $0x1,%al
call   1030 <fprintf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    113a <dump_filter_coefficients+0x2a>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dump_filter_coefficients>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rdi,%r14
mov    0x2ebe(%rip),%r12
mov    (%r12),%edi
lea    0xed3(%rip),%rsi
xor    %ebx,%ebx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xeeb(%rip),%r15
nopl   (%rax)
mov    (%r12),%edi
movsd  (%r14,%rbx,8),%xmm0
mov    %r15,%rsi
mov    %ebx,%edx
mov    $0x1,%al
call   1030 <fprintf@plt>
add    $0x1,%rbx
cmp    $0x20,%rbx
jne    1140 <dump_filter_coefficients+0x30>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [40 x i8] c"pl_surround: Filter coefficients are: \0A\00"
@.str.1 = [18 x i8] c" [%2d]: %23.20f\0A\00"
define void @dump_filter_coefficients(double* %0) {
%2 = alloca double*
%3 = alloca i32
store double* %0, double** %2
%4 = load i32, i32* @stderr
%5 = call i32 (i32, i8*, ...) @fprintf(i32 %4, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %3
br label %6
6: ; preds = %18, %1
%7 = load i32, i32* %3
%8 = icmp slt i32 %7, 32
br i1 %8, label %9, label %21
9: ; preds = %6
%10 = load i32, i32* @stderr
%11 = load i32, i32* %3
%12 = load double*, double** %2
%13 = load i32, i32* %3
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds double, double* %12, i64 %14
%16 = load double, double* %15
%17 = call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %11, double %16)
br label %18
18: ; preds = %9
%19 = load i32, i32* %3
%20 = add nsw i32 %19, 1
store i32 %20, i32* %3
br label %6
21: ; preds = %6
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [40 x i8] c"pl_surround: Filter coefficients are: \0A\00"
@.str.1 = [18 x i8] c" [%2d]: %23.20f\0A\00"
define void @dump_filter_coefficients(double* nocapture %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 (i32, i8*, ...) @fprintf(i32 %2, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
br label %4
4: ; preds = %1, %4
%5 = phi i64 [ 0, %1 ], [ %11, %4 ]
%6 = load i32, i32* @stderr
%7 = getelementptr inbounds double, double* %0, i64 %5
%8 = load double, double* %7
%9 = trunc i64 %5 to i32
%10 = tail call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %9, double %8)
%11 = add nuw nsw i64 %5, 1
%12 = icmp eq i64 %11, 32
br i1 %12, label %13, label %4
13: ; preds = %4
ret void
}