// File: /workspace/github_cpp_makefile_star2_O3/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 0x72790(%rip), %al      # 0xa8aa8
testb %al, %al
je 0x36461
leaq 0x72399(%rip), %rdi     # 0xa86c0
callq 0x47a0
testb %bpl, %bpl
je 0x3634d
movq 0x74a60(%rip), %rdi     # 0xaad98
testq %rdi, %rdi
je 0x36342
callq 0x4690
movq $0x0, 0x74a4b(%rip) # 0xaad98
movq 0x74a44(%rip), %r14     # 0xaad98
testq %rbx, %rbx
je 0x36393
testq %r14, %r14
jne 0x36372
movl $0x400, %edi            # imm = 0x400
callq 0x4040
movq %rax, %r14
movq %rax, 0x74a26(%rip)     # 0xaad98
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 0x36398
testq %r14, %r14
je 0x363be
movb 0x7270a(%rip), %al      # 0xa8aa8
testb %al, %al
je 0x3646b
leaq 0x72313(%rip), %rdi     # 0xa86c0
callq 0x43f0
movq 0x749df(%rip), %rax     # 0xaad98
popq %rbx
popq %r14
popq %rbp
retq
movl $0x400, %edi            # imm = 0x400
callq 0x4040
movq %rax, %rbx
movq %rax, 0x749c6(%rip)     # 0xaad98
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 0x44419(%rip), %rsi     # 0x7a813
movq %rbx, %rdi
callq 0x45d0
testq %rax, %rax
je 0x36448
movq 0x71b9a(%rip), %rcx     # 0xa7fa8
cmpq %rax, (%rcx)
je 0x36398
movq 0x71b6e(%rip), %rcx     # 0xa7f88
cmpq %rax, (%rcx)
je 0x36398
movq %rax, %rdi
callq 0x4550
testl %eax, %eax
je 0x36398
leaq 0x58bc2(%rip), %rdi     # 0x8effc
movl %eax, %esi
xorl %eax, %eax
callq 0xbb10
jmp 0x36398
movq 0x74949(%rip), %rax     # 0xaad98
movl $0x6e6f63, 0x3(%rax)    # imm = 0x6E6F63
movl $0x6364656d, (%rax)     # imm = 0x6364656D
jmp 0x36398
callq 0x52f2
jmp 0x36320
callq 0x5342
jmp 0x363a6