// File: /workspace/github_cpp_makefile_star2_O1/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 0xfa33
movl %esi, %ebx
movl %edi, %ebp
movb 0x9e083(%rip), %al      # 0xada98
testb %al, %al
je 0xff03
leaq 0x9dd2c(%rip), %rdi     # 0xad750
callq 0x4790
cmpl $0xe, %ebp
jae 0xfa49
xorl %r15d, %r15d
jmp 0xfa61
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1044e
movl $0x1, %r15d
cmpl $0x18, %ebp
jb 0xfa61
cmpl $0x36, %ebp
movl $0x3, %r15d
sbbq $0x0, %r15
movb 0x9e0c9(%rip), %al      # 0xadb30
testb %al, %al
je 0xff0d
movq %r15, %rax
shlq $0x5, %rax
leaq 0x9e033(%rip), %rcx     # 0xadab0
leaq (%rcx,%rax), %r14
cmpq $0x0, 0x18(%rax,%rcx)
jne 0xfc75
leaq 0x617ec(%rip), %rax     # 0x71280
movl (%rax,%r15,4), %esi
leaq 0x617f1(%rip), %rax     # 0x71290
movl (%rax,%r15,4), %edx
leaq 0x617f6(%rip), %rax     # 0x712a0
movl (%rax,%r15,4), %eax
movl %eax, 0xc(%rsp)
shll $0x8, %esi
movq %r14, %rdi
movl $0x1, %ecx
movl $0x1, %r8d
callq 0x10470
leaq 0x9d1c1(%rip), %rax     # 0xacc90
movq %r14, %rcx
movq (%rax,%r15,8), %r14
movq 0x18(%rcx), %r13
movl (%rcx), %edi
movl 0x4(%rcx), %edx
movl 0x8(%rcx), %esi
movq %rcx, 0x48(%rsp)
movl 0xc(%rcx), %r12d
movq $0x0, 0x28(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movb $0x0, 0x20(%rsp)
cmpq $0x3, %r15
jne 0xfbf6
movq %rdi, 0x38(%rsp)
movq %rsi, 0x40(%rsp)
movq %rdx, %r15
movaps 0x61611(%rip), %xmm0    # 0x71130
leaq 0xa0(%rsp), %rsi
movaps %xmm0, (%rsi)
movb $0x1, %al
movb %al, 0x10(%rsi)
leaq 0x6f7af(%rip), %rcx     # 0x7f2e5
movq %rcx, 0x18(%rsi)
movaps 0x615ff(%rip), %xmm0    # 0x71140
leaq 0x80(%rsp), %rdx
movaps %xmm0, (%rdx)
movb %al, 0x10(%rdx)
leaq 0x79402(%rip), %rax     # 0x88f58
movq %rax, 0x18(%rdx)
leaq 0x50(%rsp), %rdi
xorl %ecx, %ecx
callq 0x11ed2
leaq 0x60(%rsp), %rdi
leaq 0x50(%rsp), %rsi
xorps %xmm0, %xmm0
movl $0x78, %edx
callq 0x126c2
leaq 0x60(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x10872
cmpb $0x0, 0x70(%rsp)
jne 0xfba2
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0xfba2
callq 0x4680
leaq 0x50(%rsp), %rdi
callq 0x108e4
cmpb $0x0, 0x90(%rsp)
jne 0xfbc8
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0xfbc8
callq 0x4680
cmpb $0x0, 0xb0(%rsp)
jne 0xfbe4
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0xfbe4
callq 0x4680
movq 0x28(%rsp), %r14
movq %r15, %rdx
movq 0x40(%rsp), %rsi
movq 0x38(%rsp), %rdi
movb (%r14), %al
testb %al, %al
movl 0xc(%rsp), %r15d
je 0xfc5a
imulq %rdi, %rdx
imulq %rsi, %r12
imulq %rdx, %r12
addq %r13, %r12
incq %r14
movq %r13, %rdi
movsbl %al, %eax
subl %r15d, %eax
movl $0x20, %ecx
subl %eax, %ecx
addl $-0x20, %eax
xorl %esi, %esi
testl %eax, %eax
setns %sil
cmovsl %ecx, %eax
cltq
addq %rax, %r13
movq %r12, %rdx
subq %rdi, %rdx
cmpq %r12, %r13
cmovbeq %rax, %rdx
negl %esi
callq 0x4290
cmpq %r12, %r13
ja 0xfc5a
movb (%r14), %al
incq %r14
testb %al, %al
jne 0xfc14
cmpb $0x0, 0x20(%rsp)
jne 0xfc70
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0xfc70
callq 0x4680
movq 0x48(%rsp), %r14
movb 0x9dfc5(%rip), %al      # 0xadc40
testb %al, %al
je 0xff17
leaq 0x9debe(%rip), %rcx     # 0xadb48
xorl %eax, %eax
leaq 0x9dfbd(%rip), %r12     # 0xadc50
movq (%rcx), %rdx
testq %rdx, %rdx
je 0xfcb8
cmpb %bl, (%rax,%r12)
jne 0xfca6
cmpl %ebp, 0x4(%rdx)
je 0xfcb8
incq %rax
addq $0x10, %rcx
cmpq $0x10, %rax
jne 0xfc93
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl $-0x1, %eax
jne 0xfd18
leaq 0x9de7c(%rip), %rdi     # 0xadb40
leaq 0x9de85(%rip), %rsi     # 0xadb50
movl $0xf0, %edx
callq 0x48b0
movq 0x9df75(%rip), %rax     # 0xadc51
movl 0x9df77(%rip), %ecx     # 0xadc59
movl %ecx, 0x9df70(%rip)     # 0xadc58
movq %rax, 0x9df61(%rip)     # 0xadc50
movzwl 0x9df67(%rip), %eax     # 0xadc5d
movw %ax, 0x9df5f(%rip)      # 0xadc5c
movb 0x9df5c(%rip), %al      # 0xadc5f
movb %al, 0x9df55(%rip)      # 0xadc5e
xorps %xmm0, %xmm0
movaps %xmm0, 0x9df1d(%rip)    # 0xadc30
movl $0xf, %eax
movl %eax, %eax
movq %rax, %rcx
shlq $0x4, %rcx
leaq 0x9de18(%rip), %rdx     # 0xadb40
leaq (%rdx,%rcx), %r15
cmpq $0x0, 0x8(%rcx,%rdx)
jne 0xfed8
movl $0x1, %r13d
cmpl $0x21, %ebp
jb 0xfd5b
movl $0x2, %r13d
cmpl $0x35, %ebp
jb 0xfd5b
cmpl $0x67, %ebp
movl $0x4, %r13d
sbbl $0x0, %r13d
movb %bl, (%rax,%r12)
leaq 0x10(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
movl $0x78, %edx
movl $0x100, %ecx            # imm = 0x100
callq 0x10936
movq %r15, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x145a6
leaq 0x10(%rsp), %rdi
callq 0xf9a4
movq 0x8(%r15), %rax
cmpl %ebp, 0x4(%rax)
je 0xfe04
cmpl $0x0, (%r15)
jle 0xfe04
xorl %r14d, %r14d
xorl %r12d, %r12d
movq 0x8(%r15), %rcx
movl (%rcx,%r14), %eax
imull %ebp, %eax
xorl %edx, %edx
divl 0x4(%rcx,%r14)
cmpl $0x1, %eax
adcl $0x0, %eax
xorl %edx, %edx
cmpl %ebp, 0x4(%rcx)
leaq (%rcx,%r14), %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 0xe344
incq %r12
movslq (%r15), %rax
addq $0x20, %r14
cmpq %rax, %r12
jl 0xfda5
testb %bl, %bl
je 0xfe10
movq %r15, %rdi
callq 0x11d98
cmpl $0x0, (%r15)
jle 0xfe67
xorl %ebx, %ebx
xorl %r14d, %r14d
movq 0x8(%r15), %rdi
movl (%rdi,%rbx), %esi
addl %r13d, %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 0x6146d(%rip), %xmm0    # 0x712c0
callq 0xe344
incq %r14
movslq (%r15), %rax
addq $0x20, %rbx
cmpq %rax, %r14
jl 0xfe1b
movq %r15, %rdi
movl $0x100, %esi            # imm = 0x100
xorl %edx, %edx
callq 0x11dea
movl (%r15), %eax
leal -0x1(%rax), %ecx
cmpl $0x100, %eax            # imm = 0x100
movl $0xff, %eax
cmovbl %ecx, %eax
testl %eax, %eax
js 0xfed8
movl %eax, %ebx
shlq $0x5, %rbx
addq $0x20, %rbx
xorl %r14d, %r14d
movq 0x8(%r15), %rax
leaq (%rax,%r14), %rdi
movl 0x2000(%rax,%r14), %esi
movl 0x2004(%rax,%r14), %edx
movl $0x1, %ecx
movl $0x3, %r8d
callq 0x10470
movq %rax, %rdi
movl $0x1, %esi
callq 0x13aaa
addq $0x20, %r14
cmpq %r14, %rbx
jne 0xfe9a
movb 0x9dbba(%rip), %al      # 0xada98
testb %al, %al
je 0xff21
leaq 0x9d867(%rip), %rdi     # 0xad750
callq 0x43e0
movq %r15, %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x4df6
jmp 0xfa1d
callq 0x4e46
jmp 0xfa6f
callq 0x4ea2
jmp 0xfc83
callq 0x4ee9
jmp 0xfee2
movq %rax, %rbx
cmpb $0x0, 0x70(%rsp)
jne 0xff46
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0xff46
callq 0x4680
jmp 0xff46
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x108e4
jmp 0xff55
movq %rax, %rbx
cmpb $0x0, 0x90(%rsp)
jne 0xff71
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0xff71
callq 0x4680
cmpb $0x0, 0xb0(%rsp)
jne 0xff8d
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0xff8d
callq 0x4680
cmpb $0x0, 0x20(%rsp)
jne 0xffb2
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0xffb2
callq 0x4680
jmp 0xffb2
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xf9a4
movq %rbx, %rdi
callq 0x4950