	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fdpair
_fdpair:                                ## @fdpair
	.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, %rcx
	movq	_use_pipes@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rcx, %rdi
	callq	_pipe
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	cmpq	$0, (%rbx)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rdi
	cmoveq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_barf                           ## TAILCALL
LBB0_2:
	movq	_AF_UNIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socketpair
	testq	%rax, %rax
	jne	LBB0_5
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_use_pipes,8,3                  ## @use_pipes
	.comm	_AF_UNIX,4,2                    ## @AF_UNIX
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pipe()"

L_.str.1:                               ## @.str.1
	.asciz	"socketpair()"

	.no_dead_strip	_fdpair
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fdpair
_fdpair:                                ; @fdpair
	.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	x3, x0
Lloh0:
	adrp	x19, _use_pipes@GOTPAGE
Lloh1:
	ldr	x19, [x19, _use_pipes@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x0, x3
	bl	_pipe
	cbz	x0, LBB0_4
LBB0_2:
Lloh2:
	adrp	x8, l_.str@PAGE
Lloh3:
	add	x8, x8, l_.str@PAGEOFF
	ldr	x9, [x19]
Lloh4:
	adrp	x10, l_.str.1@PAGE
Lloh5:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	x9, #0
	csel	x0, x10, x8, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_barf
LBB0_3:
Lloh6:
	adrp	x8, _AF_UNIX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AF_UNIX@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socketpair
	cbnz	x0, LBB0_2
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_use_pipes,8,3                  ; @use_pipes
	.comm	_AF_UNIX,4,2                    ; @AF_UNIX
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pipe()"

l_.str.1:                               ; @.str.1
	.asciz	"socketpair()"

	.no_dead_strip	_fdpair
.subsections_via_symbols
