// File: /workspace/github_cpp_makefile_star2_O2/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 0xcda0
movl %esi, %ebx
movl %edi, %r14d
pushq $0xb
popq %rdi
pushq $0x1
popq %r12
movl %r12d, %esi
callq 0xa419
cmpl $0xe, %r14d
jae 0xcdb6
xorl %r13d, %r13d
jmp 0xcdce
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xd6fa
cmpl $0x18, %r14d
jae 0xcdc2
pushq $0x1
popq %r13
jmp 0xcdce
cmpl $0x36, %r14d
pushq $0x3
popq %r13
sbbq $0x0, %r13
movb 0x83d5c(%rip), %al      # 0x90b30
testb %al, %al
je 0xd1f8
movq %r13, %rax
shlq $0x5, %rax
leaq 0x83cc6(%rip), %rcx     # 0x90ab0
leaq (%rcx,%rax), %rbp
cmpq $0x0, 0x18(%rax,%rcx)
movl %ebx, 0x1c(%rsp)
jne 0xcf77
leaq 0x473eb(%rip), %rax     # 0x541f0
movl (%rax,%r13,4), %esi
leaq 0x473f0(%rip), %rax     # 0x54200
movl (%rax,%r13,4), %edx
leaq 0x473f5(%rip), %rax     # 0x54210
movl (%rax,%r13,4), %eax
movl %eax, 0x10(%rsp)
shll $0x8, %esi
pushq $0x1
popq %rcx
movq %rbp, %rdi
movl %ecx, %r8d
callq 0xd758
leaq 0x82e65(%rip), %rax     # 0x8fca0
movq %rbp, %rdi
movq (%rax,%r13,8), %rbp
movq 0x18(%rdi), %r15
movq %rdi, 0x48(%rsp)
callq 0xd984
movq %rax, %r12
andq $0x0, 0x38(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movb $0x0, 0x30(%rsp)
cmpq $0x3, %r13
jne 0xcf10
movaps 0x472b9(%rip), %xmm0    # 0x54130
leaq 0xa0(%rsp), %rsi
movaps %xmm0, (%rsi)
movb $0x1, %al
movb %al, 0x10(%rsi)
leaq 0x53907(%rip), %rcx     # 0x60795
movq %rcx, 0x18(%rsi)
movaps 0x472a7(%rip), %xmm0    # 0x54140
leaq 0x80(%rsp), %rdx
movaps %xmm0, (%rdx)
movb %al, 0x10(%rdx)
leaq 0x5d55a(%rip), %rax     # 0x6a408
movq %rax, 0x18(%rdx)
leaq 0x50(%rsp), %rdi
callq 0xdb40
leaq 0x60(%rsp), %rdi
leaq 0x50(%rsp), %rsi
pushq $0x78
popq %rdx
callq 0xdb50
leaq 0x60(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0xdb62
leaq 0x60(%rsp), %rdi
callq 0xdba4
leaq 0x50(%rsp), %rdi
callq 0xdbb8
leaq 0x80(%rsp), %rdi
callq 0xdba4
leaq 0xa0(%rsp), %rdi
callq 0xdba4
movq 0x38(%rsp), %rbp
pushq $0x20
popq %rbx
movsbl (%rbp), %eax
testl %eax, %eax
je 0xcf60
subl 0x10(%rsp), %eax
movl %ebx, %ecx
subl %eax, %ecx
addl $-0x20, %eax
testl %eax, %eax
setns %sil
cmovsl %ecx, %eax
movslq %eax, %rdx
leaq (%r15,%rdx), %r13
negb %sil
movzbl %sil, %esi
cmpq %r12, %r13
ja 0xcf52
movq %r15, %rdi
callq 0x4280
incq %rbp
movq %r13, %r15
jmp 0xcf13
subq %r15, %r12
movq %r15, %rdi
movq %r12, %rdx
callq 0x4280
leaq 0x20(%rsp), %rdi
callq 0xdba4
pushq $0x1
popq %r12
movl 0x1c(%rsp), %ebx
movq 0x48(%rsp), %rbp
movb 0x83cc3(%rip), %al      # 0x90c40
testb %al, %al
je 0xd259
leaq 0x83bbc(%rip), %r13     # 0x90b48
xorl %eax, %eax
leaq 0x83cbb(%rip), %r15     # 0x90c50
cmpq $0x10, %rax
je 0xcfee
movq (%r13), %rcx
testq %rcx, %rcx
je 0xcfb9
cmpb %bl, (%rax,%r15)
jne 0xcfb0
cmpl %r14d, 0x4(%rcx)
je 0xcfb9
incq %rax
addq $0x10, %r13
jmp 0xcf95
leaq -0x8(%r13), %rcx
movq %rcx, 0x10(%rsp)
cmpq $0x0, (%r13)
je 0xd05a
pushq $0xb
popq %rdi
xorl %esi, %esi
callq 0xa419
movq 0x10(%rsp), %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x83b4b(%rip), %rdi     # 0x90b40
leaq 0x83b54(%rip), %rsi     # 0x90b50
movl $0xf0, %edx
callq 0x48c0
movq 0x83c44(%rip), %rax     # 0x90c51
movl 0x83c46(%rip), %ecx     # 0x90c59
movl %ecx, 0x83c3f(%rip)     # 0x90c58
movq %rax, 0x83c30(%rip)     # 0x90c50
movzwl 0x83c36(%rip), %eax     # 0x90c5d
movw %ax, 0x83c2e(%rip)      # 0x90c5c
movb 0x83c2b(%rip), %al      # 0x90c5f
movb %al, 0x83c24(%rip)      # 0x90c5e
xorps %xmm0, %xmm0
movaps %xmm0, 0x83bec(%rip)    # 0x90c30
pushq $0xf
popq %rax
leaq 0x83be2(%rip), %rcx     # 0x90c30
movq %rcx, 0x10(%rsp)
leaq 0x83bde(%rip), %r13     # 0x90c38
cmpl $0x21, %r14d
jb 0xd078
cmpl $0x35, %r14d
jae 0xd06c
pushq $0x2
popq %r12
jmp 0xd078
cmpl $0x67, %r14d
pushq $0x4
popq %r12
sbbl $0x0, %r12d
movb %bl, (%rax,%r15)
leaq 0x20(%rsp), %r15
pushq $0x78
popq %rdx
movq %r15, %rdi
movq %rbp, %rsi
movl $0x100, %ecx            # imm = 0x100
callq 0xdbfe
movq 0x10(%rsp), %rdi
movq %r15, %rsi
callq 0xe86a
leaq 0x20(%rsp), %rdi
callq 0xcd26
movq (%r13), %rax
cmpl %r14d, 0x4(%rax)
jne 0xd18a
cmpb $0x0, 0x1c(%rsp)
je 0xd0ca
movq 0x10(%rsp), %rdi
callq 0xe872
xorl %ebx, %ebx
pushq $-0x64
popq %rbp
pushq $0x1
popq %r14
xorl %r15d, %r15d
movq 0x10(%rsp), %rax
movslq (%rax), %rax
cmpq %rax, %r15
jge 0xd11e
movq (%r13), %rdi
movl (%rdi,%rbx), %esi
addl %r12d, %esi
addq %rbx, %rdi
andl $0x0, (%rsp)
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
xorps %xmm3, %xmm3
movl %ebp, %edx
movl %r14d, %ecx
movl %r14d, %r8d
xorl %r9d, %r9d
movss 0x47120(%rip), %xmm0    # 0x54230
callq 0xba08
incq %r15
addq $0x20, %rbx
jmp 0xd0d6
xorl %r14d, %r14d
movq 0x10(%rsp), %rbx
movq %rbx, %rdi
movl $0x100, %esi            # imm = 0x100
xorl %edx, %edx
callq 0xe8c4
movl (%rbx), %eax
leal -0x1(%rax), %ecx
cmpl $0x100, %eax            # imm = 0x100
movl $0xff, %eax
cmovbl %ecx, %eax
movslq %eax, %r15
pushq $0x3
popq %rbx
pushq $0x1
popq %rbp
xorl %r12d, %r12d
cmpq %r15, %r12
jg 0xcfcd
movq (%r13), %rax
leaq (%rax,%r14), %rdi
movl 0x2000(%rax,%r14), %esi
movl 0x2004(%rax,%r14), %edx
movl %ebp, %ecx
movl %ebx, %r8d
movl %ebp, %r9d
callq 0xe93a
incq %r12
addq $0x20, %r14
jmp 0xd153
xorl %ebp, %ebp
pushq $-0x64
popq %r15
xorl %ebx, %ebx
movq 0x10(%rsp), %rax
movslq (%rax), %rax
cmpq %rax, %rbx
jge 0xd0b9
movq (%r13), %rcx
movl (%rcx,%rbp), %eax
imull %r14d, %eax
xorl %edx, %edx
divl 0x4(%rcx,%rbp)
cmpl $0x1, %eax
adcl $0x0, %eax
xorl %edx, %edx
cmpl %r14d, 0x4(%rcx)
leaq (%rcx,%rbp), %rdi
setbe %dl
leal (%rdx,%rdx,2), %r9d
addl $0x2, %r9d
andl $0x0, (%rsp)
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
xorps %xmm3, %xmm3
movl %eax, %esi
movl %r14d, %edx
movl %r15d, %ecx
movl %r15d, %r8d
callq 0xba08
incq %rbx
addq $0x20, %rbp
jmp 0xd192
leaq 0x83931(%rip), %rdi     # 0x90b30
callq 0x49a0
testl %eax, %eax
je 0xcddc
xorl %eax, %eax
leaq 0x8389b(%rip), %rcx     # 0x90ab0
xorps %xmm0, %xmm0
andq $0x0, 0x18(%rax,%rcx)
movaps %xmm0, (%rax,%rcx)
movb $0x0, 0x10(%rax,%rcx)
addq $0x20, %rax
cmpq $0x80, %rax
jne 0xd218
leaq -0x877a(%rip), %rdi     # 0x4ac0
leaq 0x83317(%rip), %rdx     # 0x90558
xorl %esi, %esi
callq 0x4490
leaq 0x838e1(%rip), %rdi     # 0x90b30
callq 0x4320
jmp 0xcddc
leaq 0x839e0(%rip), %rdi     # 0x90c40
callq 0x49a0
testl %eax, %eax
je 0xcf85
leaq 0x838cc(%rip), %rdi     # 0x90b40
movl $0x100, %edx            # imm = 0x100
xorl %esi, %esi
callq 0x4280
leaq -0x879e(%rip), %rdi     # 0x4ae9
leaq 0x832ca(%rip), %rdx     # 0x90558
xorl %esi, %esi
callq 0x4490
leaq 0x839a4(%rip), %rdi     # 0x90c40
callq 0x4320
jmp 0xcf85
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0xdba4
jmp 0xd2b8
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0xdbb8
jmp 0xd2c7
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0xdba4
leaq 0xa0(%rsp), %rdi
callq 0xdba4
leaq 0x20(%rsp), %rdi
callq 0xdba4
jmp 0xd2fa
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0xcd26
movq %rbx, %rdi
callq 0x4950