	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mypipe                         ## -- Begin function mypipe
	.p2align	4, 0x90
_mypipe:                                ## @mypipe
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_pipe
	testq	%rax, %rax
	js	LBB0_6
## %bb.1:
	movl	(%rbx), %edi
	movl	$-1, %esi
	callq	_dmove
	movl	%eax, (%rbx)
	movl	%eax, %edi
	movl	$1, %esi
	callq	_close_on_exec
	movl	4(%rbx), %edi
	movl	$-1, %esi
	callq	_dmove
	movl	%eax, 4(%rbx)
	movl	%eax, %edi
	movl	$1, %esi
	callq	_close_on_exec
	movl	(%rbx), %edi
	testl	%edi, %edi
	js	LBB0_4
## %bb.2:
	cmpl	$0, 4(%rbx)
	js	LBB0_3
## %bb.7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	callq	_xclose
LBB0_4:
	movl	4(%rbx), %edi
	testl	%edi, %edi
	js	LBB0_6
## %bb.5:
	callq	_xclose
LBB0_6:
	movq	_ERR_PIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_stderror                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_PIPE,4,2                   ## @ERR_PIPE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mypipe                         ; -- Begin function mypipe
	.p2align	2
_mypipe:                                ; @mypipe
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_pipe
	tbnz	x0, #63, LBB0_7
; %bb.1:
	ldr	w0, [x19]
	mov	w1, #-1
	bl	_dmove
	str	w0, [x19]
	mov	w1, #1
	bl	_close_on_exec
	ldr	w0, [x19, #4]
	mov	w1, #-1
	bl	_dmove
	str	w0, [x19, #4]
	mov	w1, #1
	bl	_close_on_exec
	ldr	w0, [x19]
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldr	w8, [x19, #4]
	tbnz	w8, #31, LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	bl	_xclose
LBB0_5:
	ldr	w0, [x19, #4]
	tbnz	w0, #31, LBB0_7
; %bb.6:
	bl	_xclose
LBB0_7:
Lloh0:
	adrp	x8, _ERR_PIPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERR_PIPE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_stderror
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_PIPE,4,2                   ; @ERR_PIPE
.subsections_via_symbols
