// File: /workspace/github_c_makefile_star2_O0/pipde[P]deos-songlib/utils/reverb3/reverb3.c
// Function: processData
static void
processData(FILE *in,FILE *out,RRA *h)
    {
    int i,j;

    //convert delay from seconds to samples

    filtered = (int **) New(sizeof(int *) * h->channels);
    unfiltered = (int **) New(sizeof(int *) * h->channels);

    for (j = 0; j < h->channels; ++j)
        {
        filtered[j] = (int *) New(sizeof(int) * size);
        unfiltered[j] = (int *) New(sizeof(int) * size);
        for (i = 0; i < size; ++i)
           {
           filtered[j][i] = 0;
           unfiltered[j][i] = 0;
           }
        }

    for (i = 0; i < h->samples; ++i)
        for (j = 0; j < h->channels; ++j)
            {
            int amp = readRRAAmplitude(in,out,h->bitsPerSample,outputComment);

            unfiltered[j][i%size] = amp;
            filtered[j][i%size] = reverb(j,i,h->samples);

            fprintf(out,"%d\n",filtered[j][i%size]);
            }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x18(%rbp), %rax
movslq (%rax), %rax
shlq $0x3, %rax
movl %eax, %edi
callq 0x8f80
movq %rax, 0xdbe3(%rip)      # 0x10440
movq -0x18(%rbp), %rax
movslq (%rax), %rax
shlq $0x3, %rax
movl %eax, %edi
callq 0x8f80
movq %rax, 0xdbd2(%rip)      # 0x10448
movl $0x0, -0x20(%rbp)
movl -0x20(%rbp), %eax
movq -0x18(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x2935
movslq 0xd8f5(%rip), %rax      # 0x10188
shlq $0x2, %rax
movl %eax, %edi
callq 0x8f80
movq %rax, %rdx
movq 0xdb98(%rip), %rax      # 0x10440
movslq -0x20(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movslq 0xd8d1(%rip), %rax      # 0x10188
shlq $0x2, %rax
movl %eax, %edi
callq 0x8f80
movq %rax, %rdx
movq 0xdb7c(%rip), %rax      # 0x10448
movslq -0x20(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
cmpl 0xd8a4(%rip), %eax      # 0x10188
jge 0x2925
movq 0xdb53(%rip), %rax      # 0x10440
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x1c(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movq 0xdb41(%rip), %rax      # 0x10448
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x1c(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x28db
jmp 0x2927
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x287d
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movq -0x18(%rbp), %rcx
cmpl 0xc(%rcx), %eax
jge 0x2a4e
movl $0x0, -0x20(%rbp)
movl -0x20(%rbp), %eax
movq -0x18(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x2a3e
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rax
movl 0x8(%rax), %edx
leaq 0x82c8(%rip), %rcx      # 0xac40
callq 0x9f90
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %eax
movl %eax, -0x44(%rbp)
movq 0xdabb(%rip), %rax      # 0x10448
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x50(%rbp)
movl -0x1c(%rbp), %eax
cltd
idivl 0xd7e5(%rip)            # 0x10188
movq -0x50(%rbp), %rax
movl %edx, %ecx
movl -0x44(%rbp), %edx
movslq %ecx, %rcx
movl %edx, (%rax,%rcx,4)
movl -0x20(%rbp), %edi
movl -0x1c(%rbp), %esi
movq -0x18(%rbp), %rax
movl 0xc(%rax), %edx
callq 0x2a60
cvttsd2si %xmm0, %eax
movl %eax, -0x34(%rbp)
movq 0xda6e(%rip), %rax      # 0x10440
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x40(%rbp)
movl -0x1c(%rbp), %eax
cltd
idivl 0xd7a0(%rip)            # 0x10188
movq -0x40(%rbp), %rax
movl %edx, %ecx
movl -0x34(%rbp), %edx
movslq %ecx, %rcx
movl %edx, (%rax,%rcx,4)
movq -0x10(%rbp), %rdi
movq 0xda3e(%rip), %rax      # 0x10440
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x30(%rbp)
movl -0x1c(%rbp), %eax
cltd
idivl 0xd770(%rip)            # 0x10188
movq -0x30(%rbp), %rax
movslq %edx, %rcx
movl (%rax,%rcx,4), %edx
leaq 0x9d34(%rip), %rsi      # 0xc75d
movb $0x0, %al
callq 0x2190
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x2953
jmp 0x2a40
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x293c
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)