// File: /workspace/github_cpp_makefile_star2_O1/manikandan5[P]Image-Matching-Stitching-Warping/./CImg.h
// Function: cimg_library::cimg::medcon_path(char const*, bool)
inline const char* medcon_path(const char *const user_path=0, const bool reinit_path=false) {
      static char *s_path = 0;
      cimg::mutex(7);
      if (reinit_path) { delete[] s_path; s_path = 0; }
      if (user_path) {
        if (!s_path) s_path = new char[1024];
        std::memset(s_path,0,1024);
        std::strncpy(s_path,user_path,1023);
      } else if (!s_path) {
        s_path = new char[1024];
        std::memset(s_path,0,1024);
        bool path_found = false;
        std::FILE *file = 0;
#if cimg_OS==2
        const char *const pf_path = programfiles_path();
        if (!path_found) {
          std::strcpy(s_path,".\\medcon.exe");
          if ((file=std::fopen(s_path,"r"))!=0) { cimg::fclose(file); path_found = true; }
        }
        if (!path_found) {
          cimg_snprintf(s_path,sizeof(s_path),"%s\\XMedCon\\bin\\medcon.bat",pf_path);
          if ((file=std::fopen(s_path,"r"))!=0) { cimg::fclose(file); path_found = true; }
        }
        if (!path_found) {
          cimg_snprintf(s_path,sizeof(s_path),"%s\\XMedCon\\bin\\medcon.exe",pf_path);
          if ((file=std::fopen(s_path,"r"))!=0) { cimg::fclose(file); path_found = true; }
        }
        if (!path_found) {
          std::strcpy(s_path,"C:\\XMedCon\\bin\\medcon.exe");
          if ((file=std::fopen(s_path,"r"))!=0) { cimg::fclose(file); path_found = true; }
        }
        if (!path_found) std::strcpy(s_path,"medcon.exe");
#else
        if (!path_found) {
          std::strcpy(s_path,"./medcon");
          if ((file=std::fopen(s_path,"r"))!=0) { cimg::fclose(file); path_found = true; }
        }
        if (!path_found) std::strcpy(s_path,"medcon");
#endif
        winformat_string(s_path);
      }
      cimg::mutex(7,0);
      return s_path;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
movb 0x75bc0(%rip), %al      # 0xada98
testb %al, %al
je 0x38025
leaq 0x757c9(%rip), %rdi     # 0xad6b0
callq 0x4790
testb %bpl, %bpl
je 0x37f0d
movq 0x77e90(%rip), %rdi     # 0xafd88
testq %rdi, %rdi
je 0x37f02
callq 0x4680
movq $0x0, 0x77e7b(%rip) # 0xafd88
movq 0x77e74(%rip), %rax     # 0xafd88
testq %rbx, %rbx
je 0x37f57
testq %rax, %rax
jne 0x37f2f
movl $0x400, %edi            # imm = 0x400
callq 0x4040
movq %rax, 0x77e59(%rip)     # 0xafd88
movq 0x77e52(%rip), %r14     # 0xafd88
movl $0x400, %edx            # imm = 0x400
movq %r14, %rdi
xorl %esi, %esi
callq 0x4290
movl $0x3ff, %edx            # imm = 0x3FF
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4240
jmp 0x37f5c
testq %rax, %rax
je 0x37f82
movb 0x75b36(%rip), %al      # 0xada98
testb %al, %al
je 0x3802f
leaq 0x7573f(%rip), %rdi     # 0xad6b0
callq 0x43e0
movq 0x77e0b(%rip), %rax     # 0xafd88
popq %rbx
popq %r14
popq %rbp
retq
movl $0x400, %edi            # imm = 0x400
callq 0x4040
movq %rax, %rbx
movq %rax, 0x77df2(%rip)     # 0xafd88
leaq 0x9(%rax), %rdi
movl $0x3f7, %edx            # imm = 0x3F7
xorl %esi, %esi
callq 0x4290
movabsq $0x6e6f6364656d2f2e, %rax # imm = 0x6E6F6364656D2F2E
movq %rax, (%rbx)
movb $0x0, 0x8(%rbx)
leaq 0x47325(%rip), %rsi     # 0x7f2e3
movq %rbx, %rdi
callq 0x45c0
testq %rax, %rax
je 0x3800c
movq 0x74fd6(%rip), %rcx     # 0xacfa8
cmpq %rax, (%rcx)
je 0x37f5c
movq 0x74faa(%rip), %rcx     # 0xacf88
cmpq %rax, (%rcx)
je 0x37f5c
movq %rax, %rdi
callq 0x4540
testl %eax, %eax
je 0x37f5c
leaq 0x5bace(%rip), %rdi     # 0x93acc
movl %eax, %esi
xorl %eax, %eax
callq 0xbb52
jmp 0x37f5c
movq 0x77d75(%rip), %rax     # 0xafd88
movl $0x6e6f63, 0x3(%rax)    # imm = 0x6E6F63
movl $0x6364656d, (%rax)     # imm = 0x6364656D
jmp 0x37f5c
callq 0x52e2
jmp 0x37ee0
callq 0x5332
jmp 0x37f6a