	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function run
_run:                                   ## @run
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_O_RDONLY@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdi
	callq	_open
	cmpl	$2, %eax
	jg	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	cmpl	$-1, %eax
	setne	%dil
	callq	_ATF_REQUIRE
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_open
	cmpl	$3, %eax
	jl	LBB0_2
LBB0_3:
	movl	$3, %edi
	callq	_closefrom
	xorl	%ebx, %ebx
	cmpl	$-1, %eax
	setne	%bl
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_ATF_REQUIRE_MSG
	leaq	-48(%rbp), %rdi
	movl	%r14d, %esi
	callq	_pipe2
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_ATF_REQUIRE
	xorl	%edi, %edi
	cmpl	$3, -48(%rbp)
	sete	%dil
	callq	_ATF_REQUIRE
	xorl	%edi, %edi
	cmpl	$4, -44(%rbp)
	sete	%dil
	callq	_ATF_REQUIRE
	movq	_O_CLOEXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%r14d, %ebx
	movl	-48(%rbp), %edi
	movq	_F_GETFD@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_fcntl
	movq	_FD_CLOEXEC@GOTPCREL(%rip), %r15
	andl	(%r15), %eax
	xorl	%edi, %edi
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.4:
	testl	%eax, %eax
	setne	%dil
	callq	_ATF_REQUIRE
	movl	-44(%rbp), %edi
	movl	(%r12), %esi
	callq	_fcntl
	testl	%eax, (%r15)
	setne	%al
	jmp	LBB0_6
LBB0_5:
	testl	%eax, %eax
	sete	%dil
	callq	_ATF_REQUIRE
	movl	-44(%rbp), %edi
	movl	(%r12), %esi
	callq	_fcntl
	testl	%eax, (%r15)
	sete	%al
LBB0_6:
	movzbl	%al, %edi
	callq	_ATF_REQUIRE
	movq	_O_NONBLOCK@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	andl	%r14d, %ebx
	movl	-48(%rbp), %edi
	movq	_F_GETFL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_fcntl
	andl	(%r12), %eax
	xorl	%edi, %edi
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.7:
	testl	%eax, %eax
	setne	%dil
	callq	_ATF_REQUIRE
	movl	-44(%rbp), %edi
	movl	(%r15), %esi
	callq	_fcntl
	testl	%eax, (%r12)
	setne	%al
	jmp	LBB0_9
LBB0_8:
	testl	%eax, %eax
	sete	%dil
	callq	_ATF_REQUIRE
	movl	-44(%rbp), %edi
	movl	(%r15), %esi
	callq	_fcntl
	testl	%eax, (%r12)
	sete	%al
LBB0_9:
	movzbl	%al, %edi
	callq	_ATF_REQUIRE
	movq	_O_NOSIGPIPE@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movl	-48(%rbp), %edi
	movq	_F_GETNOSIGPIPE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_fcntl
	xorl	%edi, %edi
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.10:
	testl	%eax, %eax
	setne	%dil
	callq	_ATF_REQUIRE
	movl	-44(%rbp), %edi
	movl	(%rbx), %esi
	callq	_fcntl
	testl	%eax, %eax
	setne	%al
	jmp	LBB0_12
LBB0_11:
	testl	%eax, %eax
	sete	%dil
	callq	_ATF_REQUIRE
	movl	-44(%rbp), %edi
	movl	(%rbx), %esi
	callq	_fcntl
	testl	%eax, %eax
	sete	%al
LBB0_12:
	movzbl	%al, %edi
	callq	_ATF_REQUIRE
	movl	-48(%rbp), %edi
	callq	_close
	xorl	%edi, %edi
	cmpl	$-1, %eax
	setne	%dil
	callq	_ATF_REQUIRE
	movl	-44(%rbp), %edi
	callq	_close
	xorl	%edi, %edi
	cmpl	$-1, %eax
	setne	%dil
	callq	_ATF_REQUIRE
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.1:                               ## @.str.1
	.asciz	"closefrom failed: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_O_CLOEXEC,4,2                  ## @O_CLOEXEC
	.comm	_F_GETFD,4,2                    ## @F_GETFD
	.comm	_FD_CLOEXEC,4,2                 ## @FD_CLOEXEC
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_F_GETFL,4,2                    ## @F_GETFL
	.comm	_O_NOSIGPIPE,4,2                ## @O_NOSIGPIPE
	.comm	_F_GETNOSIGPIPE,4,2             ## @F_GETNOSIGPIPE
	.no_dead_strip	_run
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function run
_run:                                   ; @run
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh3:
	adrp	x21, _O_RDONLY@GOTPAGE
Lloh4:
	ldr	x21, [x21, _O_RDONLY@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_open
	cmp	w0, #2
	b.gt	LBB0_3
; %bb.1:
Lloh7:
	adrp	x20, l_.str@PAGE
Lloh8:
	add	x20, x20, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmn	w0, #1
	cset	w0, ne
	bl	_ATF_REQUIRE
	ldr	w1, [x21]
	mov	x0, x20
	bl	_open
	cmp	w0, #3
	b.lt	LBB0_2
LBB0_3:
	mov	w0, #3
	bl	_closefrom
	cmn	w0, #1
	cset	w20, ne
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_ATF_REQUIRE_MSG
	mov	x0, sp
	mov	x1, x19
	bl	_pipe2
	cmp	x0, #0
	cset	w0, eq
	bl	_ATF_REQUIRE
	ldr	w8, [sp]
	cmp	w8, #3
	cset	w0, eq
	bl	_ATF_REQUIRE
	ldr	w8, [sp, #4]
	cmp	w8, #4
	cset	w0, eq
	bl	_ATF_REQUIRE
Lloh14:
	adrp	x8, _O_CLOEXEC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _O_CLOEXEC@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	and	w22, w8, w19
	ldr	w0, [sp]
Lloh17:
	adrp	x21, _F_GETFD@GOTPAGE
Lloh18:
	ldr	x21, [x21, _F_GETFD@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_fcntl
Lloh19:
	adrp	x20, _FD_CLOEXEC@GOTPAGE
Lloh20:
	ldr	x20, [x20, _FD_CLOEXEC@GOTPAGEOFF]
	ldr	w8, [x20]
	and	w8, w8, w0
	cmp	w8, #0
	cbz	w22, LBB0_5
; %bb.4:
	cset	w0, ne
	bl	_ATF_REQUIRE
	ldr	w0, [sp, #4]
	ldr	w1, [x21]
	bl	_fcntl
	ldr	w8, [x20]
	tst	w8, w0
	cset	w0, ne
	b	LBB0_6
LBB0_5:
	cset	w0, eq
	bl	_ATF_REQUIRE
	ldr	w0, [sp, #4]
	ldr	w1, [x21]
	bl	_fcntl
	ldr	w8, [x20]
	tst	w8, w0
	cset	w0, eq
LBB0_6:
	bl	_ATF_REQUIRE
Lloh21:
	adrp	x20, _O_NONBLOCK@GOTPAGE
Lloh22:
	ldr	x20, [x20, _O_NONBLOCK@GOTPAGEOFF]
	ldr	w8, [x20]
	and	w22, w8, w19
	ldr	w0, [sp]
Lloh23:
	adrp	x21, _F_GETFL@GOTPAGE
Lloh24:
	ldr	x21, [x21, _F_GETFL@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_fcntl
	ldr	w8, [x20]
	and	w8, w8, w0
	cmp	w8, #0
	cbz	w22, LBB0_8
; %bb.7:
	cset	w0, ne
	bl	_ATF_REQUIRE
	ldr	w0, [sp, #4]
	ldr	w1, [x21]
	bl	_fcntl
	ldr	w8, [x20]
	tst	w8, w0
	cset	w0, ne
	b	LBB0_9
LBB0_8:
	cset	w0, eq
	bl	_ATF_REQUIRE
	ldr	w0, [sp, #4]
	ldr	w1, [x21]
	bl	_fcntl
	ldr	w8, [x20]
	tst	w8, w0
	cset	w0, eq
LBB0_9:
	bl	_ATF_REQUIRE
Lloh25:
	adrp	x8, _O_NOSIGPIPE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _O_NOSIGPIPE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	and	w20, w8, w19
	ldr	w0, [sp]
Lloh28:
	adrp	x19, _F_GETNOSIGPIPE@GOTPAGE
Lloh29:
	ldr	x19, [x19, _F_GETNOSIGPIPE@GOTPAGEOFF]
	ldr	w1, [x19]
	bl	_fcntl
	cmp	w0, #0
	cbz	w20, LBB0_11
; %bb.10:
	cset	w0, ne
	bl	_ATF_REQUIRE
	ldr	w0, [sp, #4]
	ldr	w1, [x19]
	bl	_fcntl
	cmp	w0, #0
	cset	w0, ne
	b	LBB0_12
LBB0_11:
	cset	w0, eq
	bl	_ATF_REQUIRE
	ldr	w0, [sp, #4]
	ldr	w1, [x19]
	bl	_fcntl
	cmp	w0, #0
	cset	w0, eq
LBB0_12:
	bl	_ATF_REQUIRE
	ldr	w0, [sp]
	bl	_close
	cmn	w0, #1
	cset	w0, ne
	bl	_ATF_REQUIRE
	ldr	w0, [sp, #4]
	bl	_close
	cmn	w0, #1
	cset	w0, ne
	bl	_ATF_REQUIRE
	ldr	x8, [sp, #8]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.1:                               ; @.str.1
	.asciz	"closefrom failed: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_O_CLOEXEC,4,2                  ; @O_CLOEXEC
	.comm	_F_GETFD,4,2                    ; @F_GETFD
	.comm	_FD_CLOEXEC,4,2                 ; @FD_CLOEXEC
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_F_GETFL,4,2                    ; @F_GETFL
	.comm	_O_NOSIGPIPE,4,2                ; @O_NOSIGPIPE
	.comm	_F_GETNOSIGPIPE,4,2             ; @F_GETNOSIGPIPE
	.no_dead_strip	_run
.subsections_via_symbols
