	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_executable
_find_executable:                       ## @find_executable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_strlen
	movq	%rax, %r13
	movq	%rbx, %rdi
	movl	$46, %esi
	callq	_strchr
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$92, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_3:
	testq	%r14, %r14
	je	LBB0_4
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
LBB0_6:
	testq	%rax, %rax
	leaq	L_.str.1(%rip), %r12
	cmovneq	%rax, %r12
	movb	(%r12), %cl
	xorl	%eax, %eax
	testb	%cl, %cl
	je	LBB0_13
## %bb.7:
	movq	%r12, %rdi
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%rax, %rsi
	cmovaq	%rsi, %rax
	xorl	%esi, %esi
	cmpb	$59, %cl
	sete	%sil
	leaq	(%rdx,%rsi), %rdi
	movb	(%rdx,%rsi), %cl
	testb	%cl, %cl
	je	LBB0_13
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	xorl	%esi, %esi
	movq	%rdi, %rdx
	testb	%cl, %cl
	je	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$59, %cl
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movzbl	1(%rdx), %ecx
	incq	%rdx
	incq	%rsi
	testb	%cl, %cl
	jne	LBB0_10
	jmp	LBB0_12
LBB0_13:
	xorl	%ecx, %ecx
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	sete	%cl
	leaq	(,%rcx,4), %rcx
	addq	%r13, %rcx
	leaq	(%rax,%rcx), %rdi
	addq	$2, %rdi
	callq	_xmalloc
	movq	%rax, %r15
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_14 Depth=1
	addq	-64(%rbp), %r12                 ## 8-byte Folded Reload
	cmpb	$0, (%r12,%rbx)
	leaq	(%r12,%rbx), %r12
	je	LBB0_34
LBB0_14:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
                                        ##     Child Loop BB0_22 Depth 2
                                        ##     Child Loop BB0_31 Depth 2
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r12,%rbx), %eax
	testb	%al, %al
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	cmpb	$59, %al
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=2
	incq	%rbx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	testq	%rbx, %rbx
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_14 Depth=1
	leaq	(%r15,%rbx), %rdi
	incq	%rdi
	movb	$92, (%r15,%rbx)
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_14 Depth=1
	leaq	(%r15,%rbx), %rdi
LBB0_21:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_strcpy
	xorl	%eax, %eax
	cmpb	$59, (%r12,%rbx)
	sete	%al
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %r13
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_22 Depth=2
	movb	$92, (%r13)
LBB0_29:                                ##   in Loop: Header=BB0_22 Depth=2
	incq	%r13
LBB0_22:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r13), %eax
	cmpb	$47, %al
	je	LBB0_28
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=2
	testb	%al, %al
	jne	LBB0_29
## %bb.24:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_no_suffixes@GOTPCREL(%rip), %rax
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_std_suffixes@GOTPCREL(%rip), %rax
LBB0_26:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	(%rax), %r14
	cmpq	$0, (%r14)
	je	LBB0_33
## %bb.27:                              ##   in Loop: Header=BB0_14 Depth=1
	addq	$8, %r14
	.p2align	4, 0x90
LBB0_31:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movb	$0, (%r13)
	movq	-8(%r14), %rsi
	movq	%r15, %rdi
	callq	_strcat
	movq	_GENERIC_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FILE_SHARE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_FILE_SHARE_READ@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_OPEN_EXISTING@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_FILE_ATTRIBUTE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$0, (%rsp)
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_CreateFile
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_32
## %bb.30:                              ##   in Loop: Header=BB0_31 Depth=2
	cmpq	$0, (%r14)
	leaq	8(%r14), %r14
	jne	LBB0_31
	jmp	LBB0_33
LBB0_32:
	movq	%rax, %rdi
	callq	_CloseHandle
LBB0_35:
	movq	%r15, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	movq	%r15, %rdi
	callq	_free
	xorl	%r15d, %r15d
	jmp	LBB0_35
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PATH"

L_.str.1:                               ## @.str.1
	.space	1

	.comm	_no_suffixes,8,3                ## @no_suffixes
	.comm	_std_suffixes,8,3               ## @std_suffixes
	.comm	_GENERIC_READ,4,2               ## @GENERIC_READ
	.comm	_FILE_SHARE_READ,4,2            ## @FILE_SHARE_READ
	.comm	_FILE_SHARE_WRITE,4,2           ## @FILE_SHARE_WRITE
	.comm	_OPEN_EXISTING,4,2              ## @OPEN_EXISTING
	.comm	_FILE_ATTRIBUTE_NORMAL,4,2      ## @FILE_ATTRIBUTE_NORMAL
	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.no_dead_strip	_find_executable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_executable
_find_executable:                       ; @find_executable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
	bl	_strlen
	mov	x22, x0
	mov	x0, x19
	mov	w1, #46
	bl	_strchr
	stp	x19, x0, [sp, #8]               ; 16-byte Folded Spill
	mov	x0, x19
	mov	w1, #47
	bl	_strchr
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	w1, #92
	bl	_strchr
	cbz	x0, LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
LBB0_3:
	cbz	x21, LBB0_5
; %bb.4:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	b	LBB0_6
LBB0_5:
	mov	x0, #0
LBB0_6:
Lloh5:
	adrp	x8, l_.str.1@PAGE
Lloh6:
	add	x8, x8, l_.str.1@PAGEOFF
	cmp	x0, #0
	csel	x21, x8, x0, eq
	ldrb	w9, [x21]
	cbz	w9, LBB0_12
; %bb.7:
	mov	x8, #0
	mov	x10, x21
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	cmp	x11, x8
	csel	x8, x11, x8, hi
	cmp	w9, #59
	cinc	x9, x10, eq
	add	x10, x9, x11
	ldrb	w9, [x10]
	cbz	w9, LBB0_13
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	mov	x11, #0
	cbz	w9, LBB0_8
LBB0_10:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w9, #59
	b.eq	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	add	x9, x10, x11
	ldrb	w9, [x9, #1]
	add	x11, x11, #1
	cbnz	w9, LBB0_10
	b	LBB0_8
LBB0_12:
	mov	x8, #0
LBB0_13:
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	cmp	x9, #0
	add	x9, x22, #5
	csinc	x9, x9, x22, eq
	add	x8, x9, x8
	add	x0, x8, #1
	bl	_xmalloc
	mov	x27, x0
	mov	w24, #92
Lloh7:
	adrp	x25, _FILE_SHARE_WRITE@GOTPAGE
Lloh8:
	ldr	x25, [x25, _FILE_SHARE_WRITE@GOTPAGEOFF]
Lloh9:
	adrp	x26, _OPEN_EXISTING@GOTPAGE
Lloh10:
	ldr	x26, [x26, _OPEN_EXISTING@GOTPAGEOFF]
Lloh11:
	adrp	x20, _FILE_ATTRIBUTE_NORMAL@GOTPAGE
Lloh12:
	ldr	x20, [x20, _FILE_ATTRIBUTE_NORMAL@GOTPAGEOFF]
Lloh13:
	adrp	x19, _INVALID_HANDLE_VALUE@GOTPAGE
Lloh14:
	ldr	x19, [x19, _INVALID_HANDLE_VALUE@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x8, x21, x8
	add	x21, x8, x23
	ldrb	w8, [x8, x23]
	cbz	w8, LBB0_31
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
                                        ;     Child Loop BB0_23 Depth 2
                                        ;     Child Loop BB0_27 Depth 2
	mov	x23, #0
	ldrb	w8, [x21, x23]
	cbz	w8, LBB0_18
LBB0_16:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w8, #59
	b.eq	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	add	x23, x23, #1
	ldrb	w8, [x21, x23]
	cbnz	w8, LBB0_16
LBB0_18:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x27
	mov	x1, x21
	mov	x2, x23
	bl	_memcpy
	add	x0, x27, x23
	cbz	x23, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_15 Depth=1
	strb	w24, [x0], #1
LBB0_20:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_strcpy
	ldrb	w8, [x21, x23]
	cmp	w8, #59
	cset	w8, eq
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	mov	x22, x27
	b	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_23 Depth=2
	strb	w24, [x22]
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=2
	add	x22, x22, #1
LBB0_23:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x22]
	cmp	w8, #47
	b.eq	LBB0_21
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=2
	cbnz	w8, LBB0_22
; %bb.25:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cmp	x8, #0
Lloh15:
	adrp	x8, _no_suffixes@GOTPAGE
Lloh16:
	ldr	x8, [x8, _no_suffixes@GOTPAGEOFF]
Lloh17:
	adrp	x9, _std_suffixes@GOTPAGE
Lloh18:
	ldr	x9, [x9, _std_suffixes@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	x8, [x8]
	ldr	x9, [x8]
	cbz	x9, LBB0_14
; %bb.26:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x28, x8, #8
LBB0_27:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	strb	wzr, [x22]
	ldur	x1, [x28, #-8]
	mov	x0, x27
	bl	_strcat
Lloh19:
	adrp	x8, _GENERIC_READ@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GENERIC_READ@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _FILE_SHARE_READ@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FILE_SHARE_READ@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [x25]
	orr	w2, w9, w8
	ldr	w4, [x26]
	ldr	w5, [x20]
	mov	x0, x27
	mov	w3, #0
	mov	w6, #0
	bl	_CreateFile
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=2
	ldr	x8, [x28], #8
	cbnz	x8, LBB0_27
	b	LBB0_14
LBB0_29:
	bl	_CloseHandle
LBB0_30:
	mov	x0, x27
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_31:
	mov	x0, x27
	bl	_free
	mov	x27, #0
	b	LBB0_30
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PATH"

l_.str.1:                               ; @.str.1
	.space	1

	.comm	_no_suffixes,8,3                ; @no_suffixes
	.comm	_std_suffixes,8,3               ; @std_suffixes
	.comm	_GENERIC_READ,4,2               ; @GENERIC_READ
	.comm	_FILE_SHARE_READ,4,2            ; @FILE_SHARE_READ
	.comm	_FILE_SHARE_WRITE,4,2           ; @FILE_SHARE_WRITE
	.comm	_OPEN_EXISTING,4,2              ; @OPEN_EXISTING
	.comm	_FILE_ATTRIBUTE_NORMAL,4,2      ; @FILE_ATTRIBUTE_NORMAL
	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.no_dead_strip	_find_executable
.subsections_via_symbols
