// File: /workspace/github_cpp_makefile_star2_O2/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImgDisplay::resize(int, int, bool)
CImgDisplay& resize(const int nwidth, const int nheight, const bool force_redraw=true) {
      if (!nwidth || !nheight || (is_empty() && (nwidth<0 || nheight<0))) return assign();
      if (is_empty()) return assign(nwidth,nheight);
      Display *const dpy = cimg::X11_attr().display;
      const unsigned int
        tmpdimx = (nwidth>0)?nwidth:(-nwidth*width()/100),
        tmpdimy = (nheight>0)?nheight:(-nheight*height()/100),
        dimx = tmpdimx?tmpdimx:1,
        dimy = tmpdimy?tmpdimy:1;
      XLockDisplay(dpy);
      if (_window_width!=dimx || _window_height!=dimy) {
        XWindowAttributes attr;
        for (unsigned int i = 0; i<10; ++i) {
          XResizeWindow(dpy,_window,dimx,dimy);
          XGetWindowAttributes(dpy,_window,&attr);
          if (attr.width==(int)dimx && attr.height==(int)dimy) break;
          cimg::wait(5);
        }
      }
      if (_width!=dimx || _height!=dimy) switch (cimg::X11_attr().nb_bits) {
        case 8 :  { unsigned char pixel_type = 0; _resize(pixel_type,dimx,dimy,force_redraw); } break;
        case 16 : { unsigned short pixel_type = 0; _resize(pixel_type,dimx,dimy,force_redraw); } break;
        default : { unsigned int pixel_type = 0; _resize(pixel_type,dimx,dimy,force_redraw); }
        }
      _window_width = _width = dimx; _window_height = _height = dimy;
      _is_resized = false;
      XUnlockDisplay(dpy);
      if (_is_fullscreen) move((screen_width()-_width)/2,(screen_height()-_height)/2);
      if (force_redraw) return paint();
      return *this;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movl %ecx, %r13d
movq %rdi, %rbx
testl %esi, %esi
sete %al
testl %edx, %edx
sete %cl
orb %al, %cl
jne 0x298d4
movl %edx, %r14d
movl %esi, %r15d
cmpl $0x0, 0x18(%rbx)
setne %cl
cmpl $0x0, 0x1c(%rbx)
setne %al
andb %cl, %al
movl %edx, %ecx
orl %esi, %ecx
setns %cl
orb %al, %cl
je 0x298d4
testb %al, %al
je 0x298ed
callq 0x1a004
movq 0x2068(%rax), %r12
pushq $0x64
popq %rcx
testl %r15d, %r15d
jg 0x29841
imull 0x18(%rbx), %r15d
negl %r15d
movl %r15d, %eax
cltd
idivl %ecx
movl %eax, %r15d
testl %r14d, %r14d
jg 0x29857
imull 0x1c(%rbx), %r14d
negl %r14d
movl %r14d, %eax
cltd
idivl %ecx
movl %eax, %r14d
cmpl $0x1, %r15d
adcl $0x0, %r15d
cmpl $0x1, %r14d
adcl $0x0, %r14d
movq %r12, %rdi
callq 0x4270
movl 0x40(%rbx), %eax
cmpl %r15d, %eax
jne 0x29883
movl 0x44(%rbx), %eax
cmpl %r14d, %eax
je 0x29912
movl %r13d, 0xc(%rsp)
pushq $0xa
popq %rbp
leaq 0x10(%rsp), %r13
subl $0x1, %ebp
jb 0x2990d
movq 0x4d0(%rbx), %rsi
movq %r12, %rdi
movl %r15d, %edx
movl %r14d, %ecx
callq 0x4790
movq 0x4d0(%rbx), %rsi
movq %r12, %rdi
movq %r13, %rdx
callq 0x4960
cmpl %r15d, 0x18(%rsp)
jne 0x298ca
cmpl %r14d, 0x1c(%rsp)
je 0x2990d
pushq $0x5
popq %rdi
callq 0x29a60
jmp 0x29890
movq %rbx, %rdi
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1841e
andl $0x0, (%rsp)
pushq $0x3
popq %r8
movq %rbx, %rdi
movl %r15d, %esi
movl %r14d, %edx
xorl %ecx, %ecx
xorl %r9d, %r9d
callq 0x299c4
jmp 0x299b2
movl 0xc(%rsp), %r13d
cmpl %r15d, 0x18(%rbx)
jne 0x2991e
cmpl %r14d, 0x1c(%rbx)
je 0x29955
callq 0x1a004
movl 0x2070(%rax), %eax
movzbl %r13b, %r8d
movq %rbx, %rdi
xorl %esi, %esi
movl %r15d, %edx
movl %r14d, %ecx
cmpl $0x10, %eax
je 0x29949
cmpl $0x8, %eax
jne 0x29950
callq 0x29a9e
jmp 0x29955
callq 0x29b7c
jmp 0x29955
callq 0x29c60
movl %r15d, 0x18(%rbx)
movl %r15d, 0x40(%rbx)
movl %r14d, 0x1c(%rbx)
movl %r14d, 0x44(%rbx)
movb $0x0, 0x461(%rbx)
movq %r12, %rdi
callq 0x41f0
cmpb $0x1, 0x30(%rbx)
jne 0x2999c
callq 0xc76c
movl %eax, %ebp
subl 0x18(%rbx), %ebp
shrl %ebp
callq 0xc814
subl 0x1c(%rbx), %eax
shrl %eax
movq %rbx, %rdi
movl %ebp, %esi
movl %eax, %edx
callq 0xc6e2
testb %r13b, %r13b
je 0x299af
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x19f72
movq %rax, %rbx
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq