	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_exec_proc                   ## -- Begin function ex_exec_proc
	.p2align	4, 0x90
_ex_exec_proc:                          ## @ex_exec_proc
	.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	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rdi), %r13
	movq	_O_SHELL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_opts_empty
	testq	%rax, %rax
	je	LBB0_1
LBB0_19:
	movl	$1, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_SC_VI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	movq	%r13, %r14
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	je	LBB0_5
## %bb.2:
	movq	_SC_EX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	*16(%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	_EXM_NOCANON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ex_wemsg
	jmp	LBB0_19
LBB0_4:
	movq	_SA_ALTERNATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	*8(%r14)
	movq	_SC_SCR_EX@GOTPCREL(%rip), %rax
	movq	_SC_SCR_EXWROTE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r15, %rdi
	callq	_F_SET
LBB0_5:
	testl	%r13d, %r13d
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_ex_puts
LBB0_7:
	movq	%r12, %rsi
	testq	%r12, %r12
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_ex_puts
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_ex_puts
LBB0_9:
	movq	%r15, %rdi
	callq	_ex_fflush
	xorl	%eax, %eax
	callq	_vfork
	cmpq	$-1, %rax
	je	LBB0_18
## %bb.10:
	testq	%rax, %rax
	je	LBB0_11
## %bb.17:
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_proc_wait                      ## TAILCALL
LBB0_18:
	movq	_M_SYSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	callq	_msgq
	jmp	LBB0_19
LBB0_11:
	movq	%r15, %rbx
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_13:
	movq	_O_SHELL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_O_STR
	movq	%rax, %rdi
	movl	$47, %esi
	callq	_strrchr
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	movq	_O_SHELL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_O_STR
	movq	%rax, %r15
	jmp	LBB0_16
LBB0_15:
	movq	%rax, %r15
	incq	%r15
LBB0_16:
	movq	_O_SHELL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_O_STR
	leaq	L_.str.2(%rip), %rdx
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	xorl	%r8d, %r8d
	callq	_execl
	movq	_M_SYSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_O_STR
	leaq	L_.str.3(%rip), %rcx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%rax, %rdx
	callq	_msgq_str
	movl	$127, %edi
	callq	__exit
	.cfi_endproc
                                        ## -- End function
	.comm	_O_SHELL,4,2                    ## @O_SHELL
	.comm	_SC_VI,4,2                      ## @SC_VI
	.comm	_SC_EX,4,2                      ## @SC_EX
	.comm	_EXM_NOCANON,4,2                ## @EXM_NOCANON
	.comm	_SA_ALTERNATE,4,2               ## @SA_ALTERNATE
	.comm	_SC_SCR_EX,4,2                  ## @SC_SCR_EX
	.comm	_SC_SCR_EXWROTE,4,2             ## @SC_SCR_EXWROTE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_M_SYSERR,4,2                   ## @M_SYSERR
L_.str.1:                               ## @.str.1
	.asciz	"vfork"

L_.str.2:                               ## @.str.2
	.asciz	"-c"

L_.str.3:                               ## @.str.3
	.asciz	"execl: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_exec_proc                   ; -- Begin function ex_exec_proc
	.p2align	2
_ex_exec_proc:                          ; @ex_exec_proc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x4
	mov	x21, x3
	mov	x20, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x25, [x0]
Lloh0:
	adrp	x24, _O_SHELL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _O_SHELL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w2, #0
	bl	_opts_empty
	cbz	x0, LBB0_2
LBB0_1:
	mov	w0, #1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh2:
	adrp	x8, _SC_VI@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SC_VI@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_F_ISSET
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x8, [x25, #16]
Lloh5:
	adrp	x9, _SC_EX@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SC_EX@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x23]
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _EXM_NOCANON@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EXM_NOCANON@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ex_wemsg
	b	LBB0_1
LBB0_5:
	ldr	x8, [x25, #8]
Lloh11:
	adrp	x9, _SA_ALTERNATE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SA_ALTERNATE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x9]
	mov	x0, x19
	mov	w2, #0
	blr	x8
Lloh14:
	adrp	x8, _SC_SCR_EX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SC_SCR_EX@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _SC_SCR_EXWROTE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SC_SCR_EXWROTE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_F_SET
LBB0_6:
	cbz	w22, LBB0_8
; %bb.7:
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ex_puts
LBB0_8:
	cbz	x21, LBB0_10
; %bb.9:
	mov	x0, x19
	mov	x1, x21
	bl	_ex_puts
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ex_puts
LBB0_10:
	mov	x0, x19
	bl	_ex_fflush
	bl	_vfork
	cmn	x0, #1
	b.eq	LBB0_13
; %bb.11:
	mov	x1, x0
	cbz	x0, LBB0_14
; %bb.12:
	mov	x0, x19
	mov	x2, x20
	mov	w3, #0
	mov	w4, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_proc_wait
LBB0_13:
Lloh24:
	adrp	x8, _M_SYSERR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _M_SYSERR@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x2, l_.str.1@PAGE
Lloh28:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_msgq
	b	LBB0_1
LBB0_14:
	ldr	x8, [x25]
	cbz	x8, LBB0_16
; %bb.15:
	mov	x0, x19
	blr	x8
LBB0_16:
	ldr	w1, [x24]
	mov	x0, x19
	bl	_O_STR
	mov	w1, #47
	bl	_strrchr
	cbnz	x0, LBB0_18
; %bb.17:
	ldr	w1, [x24]
	mov	x0, x19
	bl	_O_STR
	mov	x21, x0
	b	LBB0_19
LBB0_18:
	add	x21, x0, #1
LBB0_19:
	ldr	w1, [x24]
	mov	x0, x19
	bl	_O_STR
Lloh29:
	adrp	x2, l_.str.2@PAGE
Lloh30:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x1, x21
	mov	x3, x20
	mov	x4, #0
	bl	_execl
Lloh31:
	adrp	x8, _M_SYSERR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _M_SYSERR@GOTPAGEOFF]
Lloh33:
	ldr	w20, [x8]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_O_STR
	mov	x2, x0
Lloh34:
	adrp	x3, l_.str.3@PAGE
Lloh35:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_msgq_str
	mov	w0, #127
	bl	__exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_O_SHELL,4,2                    ; @O_SHELL
	.comm	_SC_VI,4,2                      ; @SC_VI
	.comm	_SC_EX,4,2                      ; @SC_EX
	.comm	_EXM_NOCANON,4,2                ; @EXM_NOCANON
	.comm	_SA_ALTERNATE,4,2               ; @SA_ALTERNATE
	.comm	_SC_SCR_EX,4,2                  ; @SC_SCR_EX
	.comm	_SC_SCR_EXWROTE,4,2             ; @SC_SCR_EXWROTE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_M_SYSERR,4,2                   ; @M_SYSERR
l_.str.1:                               ; @.str.1
	.asciz	"vfork"

l_.str.2:                               ; @.str.2
	.asciz	"-c"

l_.str.3:                               ; @.str.3
	.asciz	"execl: %s"

.subsections_via_symbols
