	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_shellexec                      ## -- Begin function shellexec
	.p2align	4, 0x90
_shellexec:                             ## @shellexec
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rdx, -56(%rbp)
	movq	(%rdi), %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%r15), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_tryexec
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_8:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movq	(%r15), %rbx
	cmpl	(%rax), %r12d
	je	LBB0_10
## %bb.9:
	movq	_ENOTDIR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_10
## %bb.11:
	movl	%r12d, %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	$126, %edi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_errorwithstatus
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str(%rip), %rsi
	movl	$127, %edi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_errorwithstatus
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	(%r15), %rdx
	leaq	-56(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_padvance
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	callq	_stunalloc
	movq	(%r15), %rdx
	leaq	-56(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_padvance
	movq	%rax, %r13
	decl	%ebx
	testq	%rax, %rax
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	jg	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, -48(%rbp)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_tryexec
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ENOTDIR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movl	%eax, %ecx
	cmovel	%r12d, %ecx
	movq	_ENOENT@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	cmovnel	%ecx, %r12d
	movq	_ENOEXEC@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_ENOTDIR,4,2                    ## @ENOTDIR
	.comm	_ENOEXEC,4,2                    ## @ENOEXEC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: not found"

L_.str.1:                               ## @.str.1
	.asciz	"%s: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_shellexec                      ; -- Begin function shellexec
	.p2align	2
_shellexec:                             ; @shellexec
	.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	x22, x3
	mov	x20, x1
	mov	x19, x0
	str	x2, [sp, #24]
	ldr	x0, [x0]
	mov	w1, #47
	bl	_strchr
Lloh0:
	adrp	x24, _ENOENT@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ENOENT@GOTPAGEOFF]
Lloh2:
	adrp	x25, _ENOTDIR@GOTPAGE
Lloh3:
	ldr	x25, [x25, _ENOTDIR@GOTPAGEOFF]
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x0, [x19]
	mov	x1, x19
	mov	x2, x20
	bl	_tryexec
Lloh4:
	adrp	x8, _errno@GOTPAGE
Lloh5:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh6:
	ldr	w21, [x8]
LBB0_2:
	ldr	w8, [x24]
	ldr	w9, [x25]
	ldr	x19, [x19]
	cmp	w21, w8
	ccmp	w21, w9, #4, ne
	b.ne	LBB0_4
; %bb.3:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #127
	b	LBB0_5
LBB0_4:
	mov	x0, x21
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #126
LBB0_5:
	mov	x2, x19
	bl	_errorwithstatus
	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_6:
	ldr	w21, [x24]
	ldr	x2, [x19]
	add	x0, sp, #24
	add	x1, sp, #16
	bl	_padvance
	cbz	x0, LBB0_2
; %bb.7:
	mov	x23, x0
Lloh11:
	adrp	x26, _errno@GOTPAGE
Lloh12:
	ldr	x26, [x26, _errno@GOTPAGEOFF]
Lloh13:
	adrp	x27, _ENOEXEC@GOTPAGE
Lloh14:
	ldr	x27, [x27, _ENOEXEC@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x23
	bl	_stunalloc
	ldr	x2, [x19]
	add	x0, sp, #24
	add	x1, sp, #16
	bl	_padvance
	mov	x23, x0
	sub	w22, w22, #1
	cbz	x0, LBB0_2
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w22, #0
	b.gt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [sp, #16]
	cbnz	x8, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x23
	mov	x1, x19
	mov	x2, x20
	bl	_tryexec
	ldr	w8, [x26]
	ldr	w9, [x24]
	ldr	w10, [x25]
	cmp	w8, w10
	ccmp	w8, w9, #4, ne
	csel	w21, w21, w8, eq
	ldr	w8, [x27]
	cmp	w21, w8
	b.ne	LBB0_8
	b	LBB0_2
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_ENOTDIR,4,2                    ; @ENOTDIR
	.comm	_ENOEXEC,4,2                    ; @ENOEXEC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: not found"

l_.str.1:                               ; @.str.1
	.asciz	"%s: %s"

.subsections_via_symbols
