// File: kebwi[P]Trifid/src/SteerablePyramid.cpp
// Function: FilterFT::operator=(FilterFT const&)
const FilterFT& operator=(const FilterFT &fft)
	{
		if (&fft == this)
			return *this;
		
		width_ = fft.width_;
		height_ = fft.height_;
		
		for (int i = 0; i < 7; i++)
		{
			filtersFTs[i].resize(fft.filtersFTs[i].size());
			filtersInvFTs[i].resize(fft.filtersInvFTs[i].size());
			for (int j = 0; j < filtersFTs[i].size(); j++)
			{
				int totalPixels = (width_ * height_) / pow(4, j);
				filtersFTs[i][j] = new Float_t[totalPixels];
				filtersInvFTs[i][j] = new Float_t[totalPixels];
				memcpy(filtersFTs[i][j], fft.filtersFTs[i][j], totalPixels * sizeof(Float_t));
				memcpy(filtersInvFTs[i][j], fft.filtersInvFTs[i][j], totalPixels * sizeof(Float_t));
			}
		}
		
		return *this;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
cmpq %rax, -0x18(%rbp)
jne 0x3491b
movq -0x30(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x34b94
movq -0x30(%rbp), %rax
movq -0x18(%rbp), %rcx
movl (%rcx), %ecx
movl %ecx, (%rax)
movq -0x18(%rbp), %rcx
movl 0x4(%rcx), %ecx
movl %ecx, 0x4(%rax)
movl $0x0, -0x1c(%rbp)
cmpl $0x7, -0x1c(%rbp)
jge 0x34b8c
movq -0x30(%rbp), %rax
addq $0x8, %rax
movslq -0x1c(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rdi
addq $0x8, %rdi
movslq -0x1c(%rbp), %rax
imulq $0x18, %rax, %rax
addq %rax, %rdi
callq 0x336e0
movq -0x40(%rbp), %rdi
movq %rax, %rsi
callq 0x33700
movq -0x30(%rbp), %rax
addq $0xb0, %rax
movslq -0x1c(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rdi
addq $0xb0, %rdi
movslq -0x1c(%rbp), %rax
imulq $0x18, %rax, %rax
addq %rax, %rdi
callq 0x336e0
movq -0x38(%rbp), %rdi
movq %rax, %rsi
callq 0x33700
movl $0x0, -0x20(%rbp)
movq -0x30(%rbp), %rdi
movslq -0x20(%rbp), %rax
movq %rax, -0x48(%rbp)
addq $0x8, %rdi
movslq -0x1c(%rbp), %rax
imulq $0x18, %rax, %rax
addq %rax, %rdi
callq 0x336e0
movq %rax, %rcx
movq -0x48(%rbp), %rax
cmpq %rcx, %rax
jae 0x34b7c
movq -0x30(%rbp), %rcx
movl (%rcx), %eax
imull 0x4(%rcx), %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, -0x70(%rbp)
movl -0x20(%rbp), %esi
movl $0x4, %edi
callq 0x1d7f0
movaps %xmm0, %xmm1
movsd -0x70(%rbp), %xmm0
divsd %xmm1, %xmm0
cvttsd2si %xmm0, %eax
movl %eax, -0x24(%rbp)
movslq -0x24(%rbp), %rax
movl $0x8, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x4030
movq -0x30(%rbp), %rdi
movq %rax, -0x68(%rbp)
addq $0x8, %rdi
movslq -0x1c(%rbp), %rax
imulq $0x18, %rax, %rax
addq %rax, %rdi
movslq -0x20(%rbp), %rsi
callq 0x32c90
movq -0x68(%rbp), %rcx
movq %rcx, (%rax)
movslq -0x24(%rbp), %rax
movl $0x8, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x4030
movq -0x30(%rbp), %rdi
movq %rax, -0x60(%rbp)
addq $0xb0, %rdi
movslq -0x1c(%rbp), %rax
imulq $0x18, %rax, %rax
addq %rax, %rdi
movslq -0x20(%rbp), %rsi
callq 0x32c90
movq -0x60(%rbp), %rcx
movq -0x30(%rbp), %rdi
movq %rcx, (%rax)
addq $0x8, %rdi
movslq -0x1c(%rbp), %rax
imulq $0x18, %rax, %rax
addq %rax, %rdi
movslq -0x20(%rbp), %rsi
callq 0x32c90
movq (%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x18(%rbp), %rdi
addq $0x8, %rdi
movslq -0x1c(%rbp), %rax
imulq $0x18, %rax, %rax
addq %rax, %rdi
movslq -0x20(%rbp), %rsi
callq 0x34ba0
movq -0x58(%rbp), %rdi
movq (%rax), %rsi
movslq -0x24(%rbp), %rdx
shlq $0x3, %rdx
callq 0x4300
movq -0x30(%rbp), %rdi
addq $0xb0, %rdi
movslq -0x1c(%rbp), %rax
imulq $0x18, %rax, %rax
addq %rax, %rdi
movslq -0x20(%rbp), %rsi
callq 0x32c90
movq (%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x18(%rbp), %rdi
addq $0xb0, %rdi
movslq -0x1c(%rbp), %rax
imulq $0x18, %rax, %rax
addq %rax, %rdi
movslq -0x20(%rbp), %rsi
callq 0x34ba0
movq -0x50(%rbp), %rdi
movq (%rax), %rsi
movslq -0x24(%rbp), %rdx
shlq $0x3, %rdx
callq 0x4300
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x349c4
jmp 0x34b7e
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x34938
movq -0x30(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
nop