	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_f_exec                         ## -- Begin function f_exec
	.p2align	4, 0x90
_f_exec:                                ## @f_exec
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movl	(%rdi), %ebx
	testq	%rsi, %rsi
	je	LBB0_1
LBB0_4:
	movq	_F_EXECDIR@GOTPCREL(%rip), %rax
	movq	(%rsi), %r14
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	movl	$47, %esi
	callq	_strrchr
	leaq	1(%rax), %rcx
	testq	%rax, %rax
	cmovneq	%rcx, %r14
LBB0_6:
	movq	_F_EXECPLUS@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.12:
	movq	%r14, %rdi
	callq	_strdup
	movq	8(%r13), %rbx
	movq	64(%r13), %rcx
	movq	%rax, (%rcx,%rbx,8)
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_err
	movq	8(%r13), %rbx
LBB0_14:
	leaq	64(%r13), %r15
	movq	%r14, %rdi
	callq	_strlen
	movq	24(%r13), %rdx
	movq	%rax, (%rdx,%rbx,8)
	movq	8(%r13), %rax
	movq	32(%r13), %rcx
	addq	(%rdx,%rax,8), %rcx
	movq	%rcx, 32(%r13)
	incq	%rax
	movq	%rax, 8(%r13)
	cmpq	40(%r13), %rax
	jae	LBB0_16
## %bb.15:
	movl	$1, %r14d
	cmpq	48(%r13), %rcx
	jge	LBB0_16
	jmp	LBB0_37
LBB0_1:
	movq	_F_EXECPLUS@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.2:
	movq	8(%r13), %rax
	movl	$1, %r14d
	cmpq	16(%r13), %rax
	je	LBB0_37
## %bb.3:
	leaq	64(%r13), %r15
LBB0_16:
	movq	(%r15), %rcx
	movq	$0, (%rcx,%rax,8)
LBB0_17:
	movq	_F_NEEDOK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_20
## %bb.18:
	movq	64(%r13), %rdi
	callq	_queryuser
	testl	%eax, %eax
	je	LBB0_19
LBB0_20:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	xorl	%eax, %eax
	callq	_fork
	testl	%eax, %eax
	je	LBB0_23
## %bb.21:
	movl	%eax, %r15d
	cmpl	$-1, %eax
	je	LBB0_22
## %bb.27:
	movq	_F_EXECPLUS@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, (%r13)
	je	LBB0_31
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	16(%r13), %rcx
	decq	%rax
	movq	%rax, 8(%r13)
	cmpq	%rcx, %rax
	jb	LBB0_30
## %bb.28:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	64(%r13), %rcx
	movq	(%rcx,%rax,8), %rdi
	callq	_free
	jmp	LBB0_29
LBB0_30:
	movq	%rcx, 8(%r13)
	movq	56(%r13), %rax
	movq	%rax, 32(%r13)
LBB0_31:
	leaq	-44(%rbp), %rsi
	xorl	%r14d, %r14d
	movl	%r15d, %edi
	xorl	%edx, %edx
	callq	_waitpid
	cmpl	$-1, %eax
	je	LBB0_34
## %bb.32:
	movl	-44(%rbp), %edi
	callq	_WIFEXITED
	testq	%rax, %rax
	je	LBB0_34
## %bb.33:
	movl	-44(%rbp), %edi
	callq	_WEXITSTATUS
	testl	%eax, %eax
	je	LBB0_36
LBB0_34:
	movl	(%r12), %eax
	testl	%eax, (%r13)
	je	LBB0_37
## %bb.35:
	movq	_exitstatus@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_36:
	movl	$1, %r14d
	jmp	LBB0_37
LBB0_7:
	movq	64(%r13), %rax
	cmpq	$0, (%rax)
	je	LBB0_17
## %bb.8:
	movl	$8, %r15d
	xorl	%ebx, %ebx
	movq	%rax, %rsi
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	(%rax,%r15), %rsi
	addq	$4, %rbx
	cmpq	$0, (%rax,%r15)
	leaq	8(%r15), %r15
	je	LBB0_17
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rcx
	movq	(%rcx,%rbx,2), %rcx
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	72(%r13), %rax
	movl	(%rax,%rbx), %edi
	movq	%r14, %rdx
	callq	_brace_subst
	movq	64(%r13), %rax
	jmp	LBB0_11
LBB0_19:
	xorl	%r14d, %r14d
LBB0_37:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_23:
	movq	_F_EXECDIR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	jne	LBB0_26
## %bb.24:
	movq	_ftsoptions@GOTPCREL(%rip), %rax
	movq	_FTS_NOCHDIR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_26
## %bb.25:
	movq	_dotfd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fchdir
	testl	%eax, %eax
	jne	LBB0_38
LBB0_26:
	movq	64(%r13), %rsi
	movq	(%rsi), %rdi
	callq	_execvp
	movq	64(%r13), %rax
	movq	(%rax), %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_warn
	movl	$1, %edi
	callq	__exit
LBB0_38:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_warn
	movl	$1, %edi
	callq	__exit
	.cfi_endproc
                                        ## -- End function
	.comm	_F_EXECPLUS,4,2                 ## @F_EXECPLUS
	.comm	_F_EXECDIR,4,2                  ## @F_EXECDIR
	.comm	_F_NEEDOK,4,2                   ## @F_NEEDOK
	.comm	_stdout,4,2                     ## @stdout
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fork"

	.comm	_ftsoptions,4,2                 ## @ftsoptions
	.comm	_FTS_NOCHDIR,4,2                ## @FTS_NOCHDIR
	.comm	_dotfd,4,2                      ## @dotfd
L_.str.1:                               ## @.str.1
	.asciz	"chdir"

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

	.comm	_exitstatus,4,2                 ## @exitstatus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_f_exec                         ; -- Begin function f_exec
	.p2align	2
_f_exec:                                ; @f_exec
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	ldr	w22, [x0]
Lloh0:
	adrp	x21, _F_EXECPLUS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _F_EXECPLUS@GOTPAGEOFF]
	cbz	x1, LBB0_8
LBB0_1:
Lloh2:
	adrp	x8, _F_EXECDIR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _F_EXECDIR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	x20, [x1]
	tst	w8, w22
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x20
	mov	w1, #47
	bl	_strrchr
	cmp	x0, #0
	csinc	x20, x20, x0, eq
LBB0_3:
	ldr	w8, [x21]
	tst	w8, w22
	b.eq	LBB0_26
; %bb.4:
	mov	x0, x20
	bl	_strdup
	mov	x22, x19
	ldr	x8, [x22, #64]!
	ldur	x23, [x22, #-56]
	str	x0, [x8, x23, lsl #3]
	cbnz	x0, LBB0_6
; %bb.5:
	mov	w0, #1
	mov	x1, #0
	bl	_err
	ldr	x23, [x19, #8]
LBB0_6:
	mov	x0, x20
	bl	_strlen
	ldr	x8, [x19, #24]
	str	x0, [x8, x23, lsl #3]
	ldr	x10, [x19, #8]
	ldr	x8, [x8, x10, lsl #3]
	ldp	x9, x11, [x19, #32]
	add	x9, x9, x8
	str	x9, [x19, #32]
	add	x8, x10, #1
	str	x8, [x19, #8]
	cmp	x8, x11
	b.hs	LBB0_11
; %bb.7:
	ldr	x10, [x19, #48]
	cmp	x9, x10
	b.ge	LBB0_11
	b	LBB0_25
LBB0_8:
	ldr	w8, [x21]
	tst	w8, w22
	b.eq	LBB0_1
; %bb.9:
	ldp	x8, x9, [x19, #8]
	cmp	x8, x9
	b.eq	LBB0_25
; %bb.10:
	add	x22, x19, #64
LBB0_11:
	ldr	x9, [x22]
	str	xzr, [x9, x8, lsl #3]
LBB0_12:
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _F_NEEDOK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _F_NEEDOK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
	ldr	x0, [x19, #64]
	bl	_queryuser
	cbz	w0, LBB0_32
LBB0_14:
Lloh8:
	adrp	x8, _stdout@GOTPAGE
Lloh9:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_fflush
Lloh11:
	adrp	x8, _stderr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_fflush
	bl	_fork
	cbz	w0, LBB0_34
; %bb.15:
	mov	x20, x0
	cmn	w0, #1
	b.eq	LBB0_33
; %bb.16:
	ldr	w8, [x19]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_20
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldp	x8, x9, [x19, #8]
	sub	x8, x8, #1
	str	x8, [x19, #8]
	cmp	x8, x9
	b.lo	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x9, [x19, #64]
	ldr	x0, [x9, x8, lsl #3]
	bl	_free
	b	LBB0_17
LBB0_19:
	str	x9, [x19, #8]
	ldr	x8, [x19, #56]
	str	x8, [x19, #32]
LBB0_20:
	add	x1, sp, #12
	mov	x0, x20
	mov	w2, #0
	bl	_waitpid
	cmn	w0, #1
	b.eq	LBB0_23
; %bb.21:
	ldr	w0, [sp, #12]
	bl	_WIFEXITED
	cbz	x0, LBB0_23
; %bb.22:
	ldr	w0, [sp, #12]
	bl	_WEXITSTATUS
	cbz	w0, LBB0_25
LBB0_23:
	ldr	w8, [x19]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_31
; %bb.24:
Lloh14:
	adrp	x8, _exitstatus@GOTPAGE
Lloh15:
	ldr	x8, [x8, _exitstatus@GOTPAGEOFF]
	mov	w0, #1
Lloh16:
	str	w0, [x8]
	b	LBB0_32
LBB0_25:
	mov	w0, #1
	b	LBB0_32
LBB0_26:
	ldr	x8, [x19, #64]
	ldr	x9, [x8]
	cbz	x9, LBB0_12
; %bb.27:
	mov	x22, #0
	mov	x23, #0
	mov	x1, x8
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=1
	add	x1, x8, x23
	ldr	x9, [x1, #8]!
	add	x23, x23, #8
	add	x22, x22, #4
	cbz	x9, LBB0_12
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #24]
	ldr	x3, [x9, x23]
	cbz	x3, LBB0_28
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	ldr	x8, [x19, #72]
	ldr	w0, [x8, x22]
	mov	x2, x20
	bl	_brace_subst
	ldr	x8, [x19, #64]
	b	LBB0_28
LBB0_31:
	mov	w0, #0
LBB0_32:
	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
	add	sp, sp, #80
	ret
LBB0_33:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_34:
	ldr	w8, [x19]
Lloh19:
	adrp	x9, _F_EXECDIR@GOTPAGE
Lloh20:
	ldr	x9, [x9, _F_EXECDIR@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_37
; %bb.35:
Lloh22:
	adrp	x8, _ftsoptions@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ftsoptions@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _FTS_NOCHDIR@GOTPAGE
Lloh26:
	ldr	x9, [x9, _FTS_NOCHDIR@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_37
; %bb.36:
Lloh28:
	adrp	x8, _dotfd@GOTPAGE
Lloh29:
	ldr	x8, [x8, _dotfd@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_fchdir
	cbnz	w0, LBB0_39
LBB0_37:
	ldr	x1, [x19, #64]
	ldr	x0, [x1]
	bl	_execvp
	ldr	x8, [x19, #64]
	ldr	x8, [x8]
	str	x8, [sp]
Lloh31:
	adrp	x0, l_.str.2@PAGE
Lloh32:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_38:
	bl	_warn
	mov	w0, #1
	bl	__exit
LBB0_39:
Lloh33:
	adrp	x0, l_.str.1@PAGE
Lloh34:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_38
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_F_EXECPLUS,4,2                 ; @F_EXECPLUS
	.comm	_F_EXECDIR,4,2                  ; @F_EXECDIR
	.comm	_F_NEEDOK,4,2                   ; @F_NEEDOK
	.comm	_stdout,4,2                     ; @stdout
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fork"

	.comm	_ftsoptions,4,2                 ; @ftsoptions
	.comm	_FTS_NOCHDIR,4,2                ; @FTS_NOCHDIR
	.comm	_dotfd,4,2                      ; @dotfd
l_.str.1:                               ; @.str.1
	.asciz	"chdir"

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

	.comm	_exitstatus,4,2                 ; @exitstatus
.subsections_via_symbols
