// File: /workspace/github_c_makefile_star2_O0/enzo1982[P]smooth/classes/backends/xlib/backendxlib.cpp
// Function: smooth::Backends::BackendXLib::FindExecutable(smooth::String const&)
S::String S::Backends::BackendXLib::FindExecutable(const String &executable)
{
	/* Search the path for executable.
	 */
	String			 path  = getenv("PATH");
	const Array<String>	&paths = path.Explode(":");

	foreach (const String &path, paths)
	{
		/* Check for executable in this path.
		 */
		File	 file(String(path).Append("/").Append(executable));

		if (file.Exists()) return file;
	}

	return NIL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x180, %rsp            # imm = 0x180
movq %rdi, -0x150(%rbp)
movq %rdi, %rax
movq %rax, -0x148(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq 0x86e7c(%rip), %rdi     # 0x1a5e37
callq 0x5bea0
movq %rax, %rsi
leaq -0x28(%rbp), %rdi
callq 0x5c1f0
leaq 0x680fb(%rip), %rsi     # 0x1870ce
leaq -0xa0(%rbp), %rdi
callq 0x5c1f0
jmp 0x11efe1
leaq -0x88(%rbp), %rdi
leaq -0x28(%rbp), %rsi
leaq -0xa0(%rbp), %rdx
callq 0x5c820
jmp 0x11effa
leaq -0xa0(%rbp), %rdi
callq 0x5df00
leaq -0x88(%rbp), %rax
movq %rax, -0x30(%rbp)
movl $0x0, -0xb0(%rbp)
movl $0xffffffff, -0xb4(%rbp) # imm = 0xFFFFFFFF
xorl %eax, %eax
cmpl $0x0, -0xb0(%rbp)
movb %al, -0x151(%rbp)
jne 0x11f06d
movl -0xb4(%rbp), %eax
movl %eax, -0x15c(%rbp)
movq -0x30(%rbp), %rdi
callq 0x5c990
movl %eax, -0x158(%rbp)
jmp 0x11f053
movl -0x15c(%rbp), %eax
movl -0x158(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
setl %al
movb %al, -0x151(%rbp)
movb -0x151(%rbp), %al
testb $0x1, %al
jne 0x11f07c
jmp 0x11f2da
movq -0x30(%rbp), %rdi
movl -0xb4(%rbp), %esi
incl %esi
movl %esi, -0xb4(%rbp)
callq 0x74720
movq %rax, -0x168(%rbp)
jmp 0x11f09c
movq -0x168(%rbp), %rax
movq %rax, -0xc0(%rbp)
cmpl $0x0, -0xb0(%rbp)
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x11f0bf
jmp 0x11f2c4
movq -0xc0(%rbp), %rsi
leaq -0x108(%rbp), %rdi
callq 0x5b6d0
jmp 0x11f0d4
leaq 0x6855b(%rip), %rsi     # 0x187636
leaq -0x120(%rbp), %rdi
callq 0x5c1f0
jmp 0x11f0e9
leaq -0x108(%rbp), %rdi
leaq -0x120(%rbp), %rsi
callq 0x5a710
movq %rax, -0x170(%rbp)
jmp 0x11f105
movq -0x170(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x5a710
movq %rax, -0x178(%rbp)
jmp 0x11f11e
leaq -0x138(%rbp), %rdi
xorl %esi, %esi
callq 0x5da90
jmp 0x11f12e
movq -0x178(%rbp), %rsi
leaq -0xf0(%rbp), %rdi
leaq -0x138(%rbp), %rdx
callq 0x5acf0
jmp 0x11f14a
leaq -0x138(%rbp), %rdi
callq 0x5df00
leaq -0x120(%rbp), %rdi
callq 0x5df00
leaq -0x108(%rbp), %rdi
callq 0x5df00
leaq -0xf0(%rbp), %rdi
callq 0x5b4b0
movb %al, -0x179(%rbp)
jmp 0x11f182
movb -0x179(%rbp), %al
testb $0x1, %al
jne 0x11f191
jmp 0x11f28c
movq -0x150(%rbp), %rdi
leaq -0xf0(%rbp), %rsi
callq 0x5dc70
jmp 0x11f1a6
movl $0x1, -0x13c(%rbp)
jmp 0x11f296
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x11f325
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x5df00
jmp 0x11f325
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x11f319
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x11f258
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x11f24c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
leaq -0x138(%rbp), %rdi
callq 0x5df00
leaq -0x120(%rbp), %rdi
callq 0x5df00
leaq -0x108(%rbp), %rdi
callq 0x5df00
jmp 0x11f319
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
leaq -0xf0(%rbp), %rdi
callq 0x5de78
jmp 0x11f319
movl $0x0, -0x13c(%rbp)
leaq -0xf0(%rbp), %rdi
callq 0x5de78
movl -0x13c(%rbp), %eax
testl %eax, %eax
jne 0x11f2f4
jmp 0x11f2ae
jmp 0x11f2b0
movl -0xb0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xb0(%rbp)
jmp 0x11f0aa
jmp 0x11f2c6
movl -0xb0(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0xb0(%rbp)
jmp 0x11f025
movq -0x150(%rbp), %rdi
xorl %esi, %esi
callq 0x5da90
jmp 0x11f2ea
movl $0x1, -0x13c(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x74690
leaq -0x28(%rbp), %rdi
callq 0x5df00
movq -0x148(%rbp), %rax
addq $0x180, %rsp            # imm = 0x180
popq %rbp
retq
leaq -0x88(%rbp), %rdi
callq 0x74690
leaq -0x28(%rbp), %rdi
callq 0x5df00
movq -0xa8(%rbp), %rdi
callq 0x5b6b0
nopw (%rax,%rax)