	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tube_create                    ## -- Begin function tube_create
	.p2align	4, 0x90
_tube_create:                           ## @tube_create
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movl	$1, %edi
	movl	$8, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	$-1, (%rax)
	movq	_AF_UNIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rcx
	xorl	%edx, %edx
	callq	_socketpair
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.4:
	movl	-32(%rbp), %edi
	movl	%edi, (%rbx)
	movl	-28(%rbp), %eax
	movl	%eax, 4(%rbx)
	callq	_fd_set_nonblock
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	4(%rbx), %edi
	callq	_fd_set_nonblock
	testl	%eax, %eax
	jne	LBB0_8
LBB0_6:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_log_err
	movq	%rbx, %rdi
	callq	_tube_delete
	jmp	LBB0_7
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_log_err
	jmp	LBB0_7
LBB0_3:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_log_err
	movq	%rbx, %rdi
	callq	_free
LBB0_7:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
	xorl	%ebx, %ebx
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tube_create: out of memory"

	.comm	_AF_UNIX,4,2                    ## @AF_UNIX
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
L_.str.1:                               ## @.str.1
	.asciz	"socketpair: %s"

L_.str.2:                               ## @.str.2
	.asciz	"tube: cannot set nonblocking"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tube_create                    ; -- Begin function tube_create
	.p2align	2
_tube_create:                           ; @tube_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	mov	w0, #1
	mov	w1, #8
	bl	_calloc
Lloh3:
	adrp	x21, _errno@GOTPAGE
Lloh4:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x0]
Lloh5:
	adrp	x8, _AF_UNIX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AF_UNIX@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x3, sp, #16
	mov	w2, #0
	bl	_socketpair
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.2:
	ldr	w0, [sp, #16]
	str	w0, [x19]
	ldr	w8, [sp, #20]
	str	w8, [x19, #4]
	bl	_fd_set_nonblock
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x19, #4]
	bl	_fd_set_nonblock
	cbnz	w0, LBB0_8
LBB0_4:
	ldr	w20, [x21]
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_log_err
	mov	x0, x19
	bl	_tube_delete
	b	LBB0_7
LBB0_5:
	ldr	w20, [x21]
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_err
	b	LBB0_7
LBB0_6:
	ldr	w20, [x21]
	mov	x0, x20
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_log_err
	mov	x0, x19
	bl	_free
LBB0_7:
	mov	x19, #0
	str	w20, [x21]
LBB0_8:
	ldr	x8, [sp, #24]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tube_create: out of memory"

	.comm	_AF_UNIX,4,2                    ; @AF_UNIX
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
l_.str.1:                               ; @.str.1
	.asciz	"socketpair: %s"

l_.str.2:                               ; @.str.2
	.asciz	"tube: cannot set nonblocking"

.subsections_via_symbols
