// File: /workspace/github_cpp_makefile_star2_O3/kebwi[P]Trifid/src/SteerablePyramid.cpp
// Function: SteerablePyramid::readFilterSet()
void SteerablePyramid::readFilterSet()
{
	ifstream ifs;
	ifs.open(skFilterSetFilename.c_str());
	
	if (!ifs)
	{
		string errMsg = "Could not find input file '" + skFilterSetFilename + "'.  Please make sure it is in the same directory as the executable.";
		die(errMsg.c_str());
	}
	
	for (int filter = 0; filter < 7; filter++)
	{
		string label;
		int filterDim;
		ifs >> label >> filterDim;
		
		assert(label == "H0" || label == "L0" || label == "L1" || label == "B1" || label == "B2" || label == "B3" || label == "B4");
		assert(filterDim > 0 && filterDim <= 25 && filterDim % 2 == 1);
		
		skFilterDims[filter] = filterDim;
		int numTaps = filterDim * filterDim;
		skFilters[filter] = new Float_t[numTaps];
		skFiltersInv[filter] = new Float_t[numTaps];
		
		for (int i = 0; i < numTaps; i++)
		{
			ifs >> skFilters[filter][i];
			assert(ifs);
		}
	}
	assert(ifs);
	ifs.get();
	assert(!ifs);
	
	ifs.close();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x248, %rsp            # imm = 0x248
leaq 0x40(%rsp), %rbx
movq %rbx, %rdi
callq 0x3350
movq 0x1e58d(%rip), %rsi     # 0x39aa8
movq %rbx, %rdi
movl $0x8, %edx
callq 0x31b0
movq 0x40(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x60(%rsp,%rax)
je 0x1b5e4
leaq 0x11d0b(%rip), %rsi     # 0x2d24e
leaq 0x1e55e(%rip), %rdx     # 0x39aa8
leaq 0x20(%rsp), %rdi
callq 0x9fad
leaq 0x11d0f(%rip), %rsi     # 0x2d26a
leaq 0x20(%rsp), %rdi
callq 0x3540
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1b58b
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x1b592
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1b5c5
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3310
movq (%rsp), %rdi
callq 0x403c
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x1b5e4
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3310
leaq 0x10(%rsp), %r13
xorl %r15d, %r15d
leaq 0x40(%rsp), %rbx
movq %rsp, %r14
leaq 0x1e525(%rip), %r12     # 0x39b20
movq %r13, (%rsp)
movq $0x0, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x33b0
movq %rax, %rdi
leaq 0x20(%rsp), %rsi
callq 0x31a0
movq %r14, %rdi
leaq 0x11ecf(%rip), %rsi     # 0x2d4fe
callq 0x30c0
testl %eax, %eax
je 0x1b6ae
movq %r14, %rdi
leaq 0x11ec0(%rip), %rsi     # 0x2d502
callq 0x30c0
testl %eax, %eax
je 0x1b6ae
movq %r14, %rdi
leaq 0x11eb1(%rip), %rsi     # 0x2d506
callq 0x30c0
testl %eax, %eax
je 0x1b6ae
movq %r14, %rdi
leaq 0x11ea2(%rip), %rsi     # 0x2d50a
callq 0x30c0
testl %eax, %eax
je 0x1b6ae
movq %r14, %rdi
leaq 0x11e93(%rip), %rsi     # 0x2d50e
callq 0x30c0
testl %eax, %eax
je 0x1b6ae
movq %r14, %rdi
leaq 0x11e84(%rip), %rsi     # 0x2d512
callq 0x30c0
testl %eax, %eax
je 0x1b6ae
movq %r14, %rdi
leaq 0x11e75(%rip), %rsi     # 0x2d516
callq 0x30c0
testl %eax, %eax
jne 0x1b7f5
movl 0x20(%rsp), %r13d
leal -0x1a(%r13), %eax
cmpl $-0x19, %eax
jb 0x1b7d6
movl %r13d, %eax
andl $0x1, %eax
je 0x1b7d6
leaq 0x1e42d(%rip), %rax     # 0x39b00
movl %r13d, (%rax,%r15,4)
imull %r13d, %r13d
leal (,%r13,8), %ebp
movq %rbp, %rdi
callq 0x3030
movq %rax, (%r12,%r15,8)
movq %rbp, %rdi
callq 0x3030
leaq 0x1e462(%rip), %rcx     # 0x39b60
movq %rax, (%rcx,%r15,8)
movl %r13d, %r13d
shlq $0x3, %r13
xorl %ebp, %ebp
movq (%r12,%r15,8), %rsi
addq %rbp, %rsi
movq %rbx, %rdi
callq 0x31d0
movq 0x40(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x60(%rsp,%rax)
jne 0x1b7b7
addq $0x8, %rbp
cmpq %rbp, %r13
jne 0x1b70b
movq (%rsp), %rdi
leaq 0x10(%rsp), %r13
cmpq %r13, %rdi
je 0x1b752
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3310
incq %r15
cmpq $0x7, %r15
jne 0x1b5fb
movq 0x40(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x60(%rsp,%rax)
jne 0x1b814
leaq 0x40(%rsp), %rdi
callq 0x3380
movq 0x40(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x60(%rsp,%rax)
je 0x1b833
leaq 0x40(%rsp), %rdi
callq 0x3080
leaq 0x40(%rsp), %rdi
callq 0x3090
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xf99e(%rip), %rdi      # 0x2b15c
leaq 0x11b5d(%rip), %rsi     # 0x2d322
leaq 0x11b6b(%rip), %rcx     # 0x2d337
movl $0x104, %edx            # imm = 0x104
callq 0x31c0
leaq 0x11b88(%rip), %rdi     # 0x2d365
leaq 0x11b3e(%rip), %rsi     # 0x2d322
leaq 0x11b4c(%rip), %rcx     # 0x2d337
movl $0xfa, %edx
callq 0x31c0
leaq 0x11ab2(%rip), %rdi     # 0x2d2ae
leaq 0x11b1f(%rip), %rsi     # 0x2d322
leaq 0x11b2d(%rip), %rcx     # 0x2d337
movl $0xf9, %edx
callq 0x31c0
leaq 0xf941(%rip), %rdi      # 0x2b15c
leaq 0x11b00(%rip), %rsi     # 0x2d322
leaq 0x11b0e(%rip), %rcx     # 0x2d337
movl $0x107, %edx            # imm = 0x107
callq 0x31c0
leaq 0xf921(%rip), %rdi      # 0x2b15b
leaq 0x11ae1(%rip), %rsi     # 0x2d322
leaq 0x11aef(%rip), %rcx     # 0x2d337
movl $0x109, %edx            # imm = 0x109
callq 0x31c0
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
jne 0x1b894
jmp 0x1b8a1
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1b8a1
movq 0x30(%rsp), %rsi
jmp 0x1b899
jmp 0x1b87a
movq %rax, %rbx
jmp 0x1b8a1
jmp 0x1b883
jmp 0x1b883
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1b8a1
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3310
leaq 0x40(%rsp), %rdi
callq 0x3090
movq %rbx, %rdi
callq 0x3500
nop