// File: /workspace/github_cpp_makefile_star2_O3/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::CImgList<unsigned char>::font(unsigned int, bool)
static const CImgList<ucharT>& font(const unsigned int font_height, const bool is_variable_width=true) {
      if (!font_height) return CImgList<ucharT>::empty();
      cimg::mutex(11);

      // Decompress nearest base font data if needed.
      const char *data_fonts[] = { cimg::data_font12x13, cimg::data_font20x23, cimg::data_font47x53, 0 };
      const unsigned int data_widths[] = { 12,20,47,90 }, data_heights[] = { 13,23,53,103 },
        data_Ms[] = { 86,79,57,47 };
      const unsigned int data_ind = font_height<=13?0:font_height<=23?1:font_height<=53?2:3;
      static CImg<ucharT> base_fonts[4];
      CImg<ucharT> &base_font = base_fonts[data_ind];
      if (!base_font) {
        const unsigned int w = data_widths[data_ind], h = data_heights[data_ind], M = data_Ms[data_ind];
        base_font.assign(256*w,h);
        const char *data_font = data_fonts[data_ind];
        unsigned char *ptrd = base_font;
        const unsigned char *const ptrde = base_font.end();

        // Special case needed for 90x103 to avoid MS compiler limit with big strings.
        CImg<char> data90x103;
        if (!data_font) {
          ((CImg<char>(cimg::_data_font90x103[0],
                       (unsigned int)std::strlen(cimg::_data_font90x103[0]),1,1,1,true),
            CImg<char>(cimg::_data_font90x103[1],
                       (unsigned int)std::strlen(cimg::_data_font90x103[1])+1,1,1,1,true))>'x').
            move_to(data90x103);
          data_font = data90x103.data();
        }

        // Uncompress font data (decode RLE).
        for (const char *ptrs = data_font; *ptrs; ++ptrs) {
          const int c = *ptrs-M-32, v = c>=0?255:0, n = c>=0?c:-c;
          if (ptrd+n<=ptrde) { std::memset(ptrd,v,n); ptrd+=n; }
          else { std::memset(ptrd,v,ptrde-ptrd); break; }
        }
      }

      // Find optimal font cache location to return.
      static CImgList<ucharT> fonts[16];
      static bool is_variable_widths[16] = { 0 };
      unsigned int ind = ~0U;
      for (int i = 0; i<16; ++i)
        if (!fonts[i] || (is_variable_widths[i]==is_variable_width && font_height==fonts[i][0]._height)) {
          ind = i; break; // Found empty slot or cached font.
        }
      if (ind==~0U) { // No empty slots nor existing font in cache.
        std::memmove(fonts,fonts+1,15*sizeof(CImgList<ucharT>));
        std::memmove(is_variable_widths,is_variable_widths+1,15*sizeof(bool));
        std::memset(fonts+(ind=15),0,sizeof(CImgList<ucharT>));  // Free a slot in cache for new font.
      }
      CImgList<ucharT> &font = fonts[ind];

      // Render requested font.
      if (!font) {
        const unsigned int padding_x = font_height<33?1:font_height<53?2:font_height<103?3:4;
        is_variable_widths[ind] = is_variable_width;
        font = base_font.get_split('x',256);
        if (font_height!=font[0]._height)
          cimglist_for(font,l)
            font[l].resize(cimg::max(1U,font[l]._width*font_height/font[l]._height),font_height,-100,-100,
                           font[0]._height>font_height?2:5);
        if (is_variable_width) font.crop_font();
        cimglist_for(font,l) font[l].resize(font[l]._width + padding_x,-100,1,1,0,0,0.5);
        font.insert(256,0);
        cimglist_for_in(font,0,255,l) font[l].assign(font[l+256]._width,font[l+256]._height,1,3,1);
      }
      cimg::mutex(11,0);
      return font;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
testl %edi, %edi
je 0xfa93
movl %esi, %ebx
movl %edi, %ebp
movb 0x99033(%rip), %al      # 0xa8aa8
testb %al, %al
je 0xff72
leaq 0x98cdc(%rip), %rdi     # 0xa8760
callq 0x47a0
cmpl $0xe, %ebp
jae 0xfaa9
xorl %r13d, %r13d
jmp 0xfac1
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x104bc
movl $0x1, %r13d
cmpl $0x18, %ebp
jb 0xfac1
cmpl $0x36, %ebp
movl $0x3, %r13d
sbbq $0x0, %r13
movb 0x99079(%rip), %al      # 0xa8b40
testb %al, %al
je 0xff7c
movq %r13, %rax
shlq $0x5, %rax
leaq 0x98fe3(%rip), %rcx     # 0xa8ac0
leaq (%rcx,%rax), %rdx
movq %rdx, 0x38(%rsp)
cmpq $0x0, 0x18(%rax,%rcx)
jne 0xfce2
leaq 0x5e787(%rip), %rax     # 0x6e280
movl (%rax,%r13,4), %esi
leaq 0x5e78c(%rip), %rax     # 0x6e290
movl (%rax,%r13,4), %edx
leaq 0x5e791(%rip), %rax     # 0x6e2a0
movl (%rax,%r13,4), %eax
movl %eax, 0xc(%rsp)
shll $0x8, %esi
movq 0x38(%rsp), %r15
movq %r15, %rdi
movl $0x1, %ecx
movl $0x1, %r8d
callq 0x104de
leaq 0x98157(%rip), %rax     # 0xa7c90
movq (%rax,%r13,8), %r14
movq 0x18(%r15), %r12
movl (%r15), %esi
movl 0x4(%r15), %ecx
movl 0x8(%r15), %edx
movl 0xc(%r15), %r15d
movq $0x0, 0x28(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movb $0x0, 0x20(%rsp)
cmpq $0x3, %r13
jne 0xfc5b
movq %rsi, 0x40(%rsp)
movq %rdx, 0x48(%rsp)
movq %rcx, %r13
movaps 0x5e5ac(%rip), %xmm0    # 0x6e130
leaq 0xa0(%rsp), %rsi
movaps %xmm0, (%rsi)
movb $0x1, %al
movb %al, 0x10(%rsi)
leaq 0x6ac7a(%rip), %rcx     # 0x7a815
movq %rcx, 0x18(%rsi)
movaps 0x5e59a(%rip), %xmm0    # 0x6e140
leaq 0x80(%rsp), %rdx
movaps %xmm0, (%rdx)
movb %al, 0x10(%rdx)
leaq 0x748cd(%rip), %rax     # 0x84488
movq %rax, 0x18(%rdx)
leaq 0x50(%rsp), %rdi
xorl %ecx, %ecx
callq 0x11f4a
leaq 0x60(%rsp), %rdi
leaq 0x50(%rsp), %rsi
xorps %xmm0, %xmm0
movl $0x78, %edx
callq 0x12728
leaq 0x60(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x108e0
cmpb $0x0, 0x70(%rsp)
jne 0xfc07
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0xfc07
callq 0x4690
leaq 0x50(%rsp), %rdi
callq 0x10952
cmpb $0x0, 0x90(%rsp)
jne 0xfc2d
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0xfc2d
callq 0x4690
cmpb $0x0, 0xb0(%rsp)
jne 0xfc49
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0xfc49
callq 0x4690
movq 0x28(%rsp), %r14
movq %r13, %rcx
movq 0x48(%rsp), %rdx
movq 0x40(%rsp), %rsi
movl %ebx, %r13d
movb (%r14), %al
testb %al, %al
je 0xfcc9
imulq %rsi, %rcx
imulq %rdx, %r15
imulq %rcx, %r15
addq %r12, %r15
incq %r14
movsbl %al, %ecx
subl 0xc(%rsp), %ecx
movl $0x20, %edx
subl %ecx, %edx
addl $-0x20, %ecx
testl %ecx, %ecx
setns %al
cmovsl %edx, %ecx
movslq %ecx, %rdx
leaq (%r12,%rdx), %rbx
negb %al
cmpq %r15, %rbx
ja 0xfcb8
movzbl %al, %esi
movq %r12, %rdi
callq 0x4290
movb (%r14), %al
incq %r14
movq %rbx, %r12
testb %al, %al
jne 0xfc77
jmp 0xfcc9
subq %r12, %r15
movzbl %al, %esi
movq %r12, %rdi
movq %r15, %rdx
callq 0x4290
cmpb $0x0, 0x20(%rsp)
jne 0xfcdf
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0xfcdf
callq 0x4690
movl %r13d, %ebx
movb 0x98f68(%rip), %al      # 0xa8c50
testb %al, %al
je 0xff86
leaq 0x98e61(%rip), %r13     # 0xa8b58
xorl %eax, %eax
leaq 0x98f60(%rip), %r12     # 0xa8c60
movq (%r13), %rcx
testq %rcx, %rcx
je 0xfd90
cmpb %bl, (%rax,%r12)
jne 0xfd18
cmpl %ebp, 0x4(%rcx)
je 0xfd90
incq %rax
addq $0x10, %r13
cmpq $0x10, %rax
jne 0xfd00
leaq 0x98e24(%rip), %rdi     # 0xa8b50
leaq 0x98e2d(%rip), %rsi     # 0xa8b60
movl $0xf0, %edx
callq 0x48c0
movq 0x98f1d(%rip), %rax     # 0xa8c61
movl 0x98f1f(%rip), %ecx     # 0xa8c69
movl %ecx, 0x98f18(%rip)     # 0xa8c68
movq %rax, 0x98f09(%rip)     # 0xa8c60
movzwl 0x98f0f(%rip), %eax     # 0xa8c6d
movw %ax, 0x98f07(%rip)      # 0xa8c6c
movb 0x98f04(%rip), %al      # 0xa8c6f
movb %al, 0x98efd(%rip)      # 0xa8c6e
xorps %xmm0, %xmm0
movaps %xmm0, 0x98ec5(%rip)    # 0xa8c40
movl $0xf, %eax
leaq 0x98eb9(%rip), %r15     # 0xa8c40
leaq 0x98eba(%rip), %r13     # 0xa8c48
jmp 0xfd9f
leaq -0x8(%r13), %r15
cmpq $0x0, (%r13)
jne 0xff47
movl $0x1, %r14d
cmpl $0x21, %ebp
jb 0xfdc2
movl $0x2, %r14d
cmpl $0x35, %ebp
jb 0xfdc2
cmpl $0x67, %ebp
movl $0x4, %r14d
sbbl $0x0, %r14d
movl %ebx, 0xc(%rsp)
movb %bl, (%rax,%r12)
leaq 0x10(%rsp), %r12
movq %r12, %rdi
movq 0x38(%rsp), %rsi
movl $0x78, %edx
movl $0x100, %ecx            # imm = 0x100
callq 0x109a4
movq %r15, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x146c8
leaq 0x10(%rsp), %rdi
callq 0xfa04
movq (%r13), %rax
cmpl %ebp, 0x4(%rax)
je 0xfe70
cmpl $0x0, (%r15)
jle 0xfe70
xorl %r12d, %r12d
xorl %ebx, %ebx
movq (%r13), %rcx
movl (%rcx,%r12), %eax
imull %ebp, %eax
xorl %edx, %edx
divl 0x4(%rcx,%r12)
cmpl $0x1, %eax
adcl $0x0, %eax
xorl %edx, %edx
cmpl %ebp, 0x4(%rcx)
leaq (%rcx,%r12), %rdi
setbe %dl
leal 0x2(%rdx,%rdx,2), %r9d
movl $0x0, (%rsp)
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
xorps %xmm3, %xmm3
movl %eax, %esi
movl %ebp, %edx
movl $0xffffff9c, %ecx       # imm = 0xFFFFFF9C
movl $0xffffff9c, %r8d       # imm = 0xFFFFFF9C
callq 0xe338
incq %rbx
movslq (%r15), %rax
addq $0x20, %r12
cmpq %rax, %rbx
jl 0xfe11
cmpb $0x0, 0xc(%rsp)
je 0xfe7f
movq %r15, %rdi
callq 0x11e10
cmpl $0x0, (%r15)
jle 0xfed6
xorl %ebx, %ebx
xorl %r12d, %r12d
movq (%r13), %rdi
movl (%rdi,%rbx), %esi
addl %r14d, %esi
addq %rbx, %rdi
movl $0x0, (%rsp)
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
xorps %xmm3, %xmm3
movl $0xffffff9c, %edx       # imm = 0xFFFFFF9C
movl $0x1, %ecx
movl $0x1, %r8d
xorl %r9d, %r9d
movss 0x5e3fe(%rip), %xmm0    # 0x6e2c0
callq 0xe338
incq %r12
movslq (%r15), %rax
addq $0x20, %rbx
cmpq %rax, %r12
jl 0xfe8a
movq %r15, %rdi
movl $0x100, %esi            # imm = 0x100
xorl %edx, %edx
callq 0x11e62
movl (%r15), %eax
leal -0x1(%rax), %ecx
cmpl $0x100, %eax            # imm = 0x100
movl $0xff, %eax
cmovbl %ecx, %eax
testl %eax, %eax
js 0xff47
movl %eax, %ebx
shlq $0x5, %rbx
addq $0x20, %rbx
xorl %r14d, %r14d
movq (%r13), %rax
leaq (%rax,%r14), %rdi
movl 0x2000(%rax,%r14), %esi
movl 0x2004(%rax,%r14), %edx
movl $0x1, %ecx
movl $0x3, %r8d
callq 0x104de
movq %rax, %rdi
movl $0x1, %esi
callq 0x13b9c
addq $0x20, %r14
cmpq %r14, %rbx
jne 0xff09
movb 0x98b5b(%rip), %al      # 0xa8aa8
testb %al, %al
je 0xff90
leaq 0x98808(%rip), %rdi     # 0xa8760
callq 0x43f0
movq %r15, %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x4e06
jmp 0xfa7d
callq 0x4e56
jmp 0xfacf
callq 0x4eb2
jmp 0xfcf0
callq 0x4ef9
jmp 0xff51
movq %rax, %rbx
cmpb $0x0, 0x70(%rsp)
jne 0xffb5
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0xffb5
callq 0x4690
jmp 0xffb5
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x10952
jmp 0xffc4
movq %rax, %rbx
cmpb $0x0, 0x90(%rsp)
jne 0xffe0
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0xffe0
callq 0x4690
cmpb $0x0, 0xb0(%rsp)
jne 0xfffc
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0xfffc
callq 0x4690
cmpb $0x0, 0x20(%rsp)
jne 0x10021
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x10021
callq 0x4690
jmp 0x10021
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xfa04
movq %rbx, %rdi
callq 0x4960
nop