	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function JobCreatePipe
_JobCreatePipe:                         ## @JobCreatePipe
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	(%rdi), %rdi
	callq	_pipe
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_Punt
LBB0_2:
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	_F_DUPFD@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%r14d, %edx
	callq	_fcntl
	movl	%eax, %ebx
	movq	(%r15), %rax
	cmpl	$-1, %ebx
	je	LBB0_4
## %bb.3:
	movl	(%rax), %edi
	callq	_close
	movq	(%r15), %rax
	movl	%ebx, (%rax)
LBB0_4:
	movl	4(%rax), %edi
	movl	(%r12), %esi
	movl	%r14d, %edx
	callq	_fcntl
	movl	%eax, %ebx
	movq	(%r15), %rax
	cmpl	$-1, %ebx
	je	LBB0_6
## %bb.5:
	movl	4(%rax), %edi
	callq	_close
	movq	(%r15), %rax
	movl	%ebx, 4(%rax)
LBB0_6:
	movl	(%rax), %edi
	movq	_F_SETFD@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_FD_CLOEXEC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_fcntl
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.7:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_Punt
LBB0_8:
	movq	(%r15), %rax
	movl	4(%rax), %edi
	movl	(%r14), %esi
	movl	(%rbx), %edx
	callq	_fcntl
	cmpl	$-1, %eax
	jne	LBB0_10
## %bb.9:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_Punt
LBB0_10:
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	_F_GETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_fcntl
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_12
## %bb.11:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_Punt
LBB0_12:
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%ebx, %edx
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	_F_SETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fcntl
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Punt                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot create pipe: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_F_DUPFD,4,2                    ## @F_DUPFD
	.comm	_F_SETFD,4,2                    ## @F_SETFD
	.comm	_FD_CLOEXEC,4,2                 ## @FD_CLOEXEC
L_.str.1:                               ## @.str.1
	.asciz	"Cannot set close-on-exec: %s"

	.comm	_F_GETFL,4,2                    ## @F_GETFL
L_.str.2:                               ## @.str.2
	.asciz	"Cannot get flags: %s"

	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_F_SETFL,4,2                    ## @F_SETFL
L_.str.3:                               ## @.str.3
	.asciz	"Cannot set flags: %s"

	.no_dead_strip	_JobCreatePipe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function JobCreatePipe
_JobCreatePipe:                         ; @JobCreatePipe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x19, x0
	ldr	x0, [x0]
	bl	_pipe
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Punt
LBB0_2:
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh5:
	adrp	x22, _F_DUPFD@GOTPAGE
Lloh6:
	ldr	x22, [x22, _F_DUPFD@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x2, x20
	bl	_fcntl
	ldr	x8, [x19]
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.3:
	mov	x21, x0
	ldr	w0, [x8]
	bl	_close
	ldr	x8, [x19]
	str	w21, [x8]
LBB0_4:
	ldr	w0, [x8, #4]
	ldr	w1, [x22]
	mov	x2, x20
	bl	_fcntl
	ldr	x8, [x19]
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.5:
	mov	x20, x0
	ldr	w0, [x8, #4]
	bl	_close
	ldr	x8, [x19]
	str	w20, [x8, #4]
LBB0_6:
	ldr	w0, [x8]
Lloh7:
	adrp	x20, _F_SETFD@GOTPAGE
Lloh8:
	ldr	x20, [x20, _F_SETFD@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh9:
	adrp	x21, _FD_CLOEXEC@GOTPAGE
Lloh10:
	ldr	x21, [x21, _FD_CLOEXEC@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_fcntl
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.7:
Lloh11:
	adrp	x8, _errno@GOTPAGE
Lloh12:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_Punt
LBB0_8:
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	ldr	w1, [x20]
	ldr	w2, [x21]
	bl	_fcntl
	cmn	w0, #1
	b.ne	LBB0_10
; %bb.9:
Lloh16:
	adrp	x8, _errno@GOTPAGE
Lloh17:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_Punt
LBB0_10:
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh21:
	adrp	x8, _F_GETFL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _F_GETFL@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_fcntl
	mov	x20, x0
	cmn	w0, #1
	b.ne	LBB0_12
; %bb.11:
Lloh24:
	adrp	x8, _errno@GOTPAGE
Lloh25:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh27:
	adrp	x0, l_.str.2@PAGE
Lloh28:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_Punt
LBB0_12:
Lloh29:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	orr	w2, w8, w20
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh32:
	adrp	x8, _F_SETFL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _F_SETFL@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	bl	_fcntl
	cmn	w0, #1
	b.eq	LBB0_14
; %bb.13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh35:
	adrp	x8, _errno@GOTPAGE
Lloh36:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh38:
	adrp	x0, l_.str.3@PAGE
Lloh39:
	add	x0, x0, l_.str.3@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_Punt
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot create pipe: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_F_DUPFD,4,2                    ; @F_DUPFD
	.comm	_F_SETFD,4,2                    ; @F_SETFD
	.comm	_FD_CLOEXEC,4,2                 ; @FD_CLOEXEC
l_.str.1:                               ; @.str.1
	.asciz	"Cannot set close-on-exec: %s"

	.comm	_F_GETFL,4,2                    ; @F_GETFL
l_.str.2:                               ; @.str.2
	.asciz	"Cannot get flags: %s"

	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_F_SETFL,4,2                    ; @F_SETFL
l_.str.3:                               ; @.str.3
	.asciz	"Cannot set flags: %s"

	.no_dead_strip	_JobCreatePipe
.subsections_via_symbols
