// File: /workspace/github_cpp_makefile_star2_O3/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImg<unsigned char>::resize(int, int, int, int, int, unsigned int, float, float, float, float)
CImg<T>& resize(const int size_x, const int size_y=-100,
                    const int size_z=-100, const int size_c=-100,
                    const int interpolation_type=1, const unsigned int boundary_conditions=0,
                    const float centering_x = 0, const float centering_y = 0,
                    const float centering_z = 0, const float centering_c = 0) {
      if (!size_x || !size_y || !size_z || !size_c) return assign();
      const unsigned int
        _sx = (unsigned int)(size_x<0?-size_x*width()/100:size_x),
        _sy = (unsigned int)(size_y<0?-size_y*height()/100:size_y),
        _sz = (unsigned int)(size_z<0?-size_z*depth()/100:size_z),
        _sc = (unsigned int)(size_c<0?-size_c*spectrum()/100:size_c),
        sx = _sx?_sx:1, sy = _sy?_sy:1, sz = _sz?_sz:1, sc = _sc?_sc:1;
      if (sx==_width && sy==_height && sz==_depth && sc==_spectrum) return *this;
      if (is_empty()) return assign(sx,sy,sz,sc,(T)0);
      if (interpolation_type==-1 && sx*sy*sz*sc==size()) {
        _width = sx; _height = sy; _depth = sz; _spectrum = sc;
        return *this;
      }
      return get_resize(sx,sy,sz,sc,interpolation_type,boundary_conditions,
                        centering_x,centering_y,centering_z,centering_c).move_to(*this);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movl %r9d, %eax
movl %r8d, %r9d
movl %ecx, %r8d
movl %edx, %ecx
movl %esi, %edx
movq %rdi, %rbx
testl %esi, %esi
setne %sil
testl %ecx, %ecx
setne %dil
andb %sil, %dil
testl %r8d, %r8d
setne %sil
andb %dil, %sil
testl %r9d, %r9d
setne %dil
testb %dil, %sil
je 0xe4a9
testl %edx, %edx
jns 0xe39d
imull (%rbx), %edx
negl %edx
movslq %edx, %rdx
imulq $0x51eb851f, %rdx, %rdx # imm = 0x51EB851F
movq %rdx, %rsi
shrq $0x3f, %rsi
sarq $0x25, %rdx
addl %esi, %edx
testl %ecx, %ecx
jns 0xe3be
imull 0x4(%rbx), %ecx
negl %ecx
movslq %ecx, %rcx
imulq $0x51eb851f, %rcx, %rcx # imm = 0x51EB851F
movq %rcx, %rsi
shrq $0x3f, %rsi
sarq $0x25, %rcx
addl %esi, %ecx
testl %r8d, %r8d
jns 0xe3e3
imull 0x8(%rbx), %r8d
negl %r8d
movslq %r8d, %rsi
imulq $0x51eb851f, %rsi, %r8  # imm = 0x51EB851F
movq %r8, %rsi
shrq $0x3f, %rsi
sarq $0x25, %r8
addl %esi, %r8d
movl 0xc(%rbx), %esi
testl %r9d, %r9d
jns 0xe40a
imull %esi, %r9d
negl %r9d
movslq %r9d, %rdi
imulq $0x51eb851f, %rdi, %r9  # imm = 0x51EB851F
movq %r9, %rdi
shrq $0x3f, %rdi
sarq $0x25, %r9
addl %edi, %r9d
cmpl $0x1, %edx
adcl $0x0, %edx
cmpl $0x1, %ecx
adcl $0x0, %ecx
cmpl $0x1, %r8d
adcl $0x0, %r8d
movl 0x50(%rsp), %r10d
cmpl $0x1, %r9d
adcl $0x0, %r9d
movl (%rbx), %r11d
movl 0x4(%rbx), %edi
movl 0x8(%rbx), %r14d
cmpl %r11d, %edx
jne 0xe44c
cmpl %edi, %ecx
jne 0xe44c
cmpl %r14d, %r8d
jne 0xe44c
cmpl %esi, %r9d
je 0xe4cf
cmpq $0x0, 0x18(%rbx)
sete %bpl
testq %r11, %r11
sete %r15b
orb %bpl, %r15b
testl %edi, %edi
sete %bpl
testl %r14d, %r14d
sete %r12b
orb %bpl, %r12b
orb %r15b, %r12b
testl %esi, %esi
sete %bpl
orb %r12b, %bpl
cmpb $0x1, %bpl
jne 0xe4df
movq %rbx, %rdi
movl %edx, %esi
movl %ecx, %edx
movl %r8d, %ecx
movl %r9d, %r8d
callq 0x104de
movq %rax, %rdi
xorl %esi, %esi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x13b9c
cmpb $0x0, 0x10(%rbx)
jne 0xe4bd
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0xe4bd
callq 0x4690
movq $0x0, 0x18(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movb $0x0, 0x10(%rbx)
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
cmpl $-0x1, %eax
jne 0xe519
movl %ecx, %eax
imull %edx, %eax
movl %r8d, %r15d
imull %r9d, %r15d
imull %eax, %r15d
imulq %r11, %rdi
imulq %rsi, %r14
imulq %rdi, %r14
cmpq %r15, %r14
jne 0xe514
movl %edx, (%rbx)
movl %ecx, 0x4(%rbx)
movl %r8d, 0x8(%rbx)
movl %r9d, 0xc(%rbx)
jmp 0xe4cf
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rsp, %r14
movq %r14, %rdi
movq %rbx, %rsi
pushq %r10
pushq %rax
callq 0x15b7a
addq $0x10, %rsp
movq %r14, %rdi
movq %rbx, %rsi
callq 0xeed2
movq %rax, %rbx
cmpb $0x0, 0x10(%rsp)
jne 0xe4cf
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0xe4cf
callq 0x4690
jmp 0xe4cf
movq %rax, %rbx
cmpb $0x0, 0x10(%rsp)
jne 0xe570
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0xe570
callq 0x4690
movq %rbx, %rdi
callq 0x4960