	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_fifo
_setup_fifo:                            ## @setup_fifo
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movaps	L___const.setup_fifo.path(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movl	$5789784, -49(%rbp)             ## imm = 0x585858
	leaq	-64(%rbp), %rdi
	callq	_mkstemp
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_err
LBB0_2:
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_unlink
	movq	%rbx, %rdi
	movl	$384, %esi                      ## imm = 0x180
	callq	_mkfifo
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	leaq	-64(%rbp), %rcx
	movl	$1, %edi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_err
LBB0_4:
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	orl	(%rax), %esi
	leaq	-64(%rbp), %rdi
	callq	_open
	movl	%eax, %r12d
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	leaq	-64(%rbp), %rcx
	movl	$1, %edi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_err
LBB0_6:
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movl	(%rbx), %esi
	orl	(%rax), %esi
	leaq	-64(%rbp), %rdi
	callq	_open
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	leaq	-64(%rbp), %rcx
	movl	$1, %edi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_err
LBB0_8:
	movl	%ebx, (%r15)
	movl	%r12d, 4(%r15)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
	.p2align	4                               ## @__const.setup_fifo.path
L___const.setup_fifo.path:
	.asciz	"0send_fifo.XXXXXXX"

L_.str:                                 ## @.str
	.asciz	"%s: setup_fifo: mktemp"

L_.str.1:                               ## @.str.1
	.asciz	"%s: setup_fifo: mkfifo(%s)"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
L_.str.2:                               ## @.str.2
	.asciz	"%s: setup_fifo: open(%s, O_RDONLY)"

	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
L_.str.3:                               ## @.str.3
	.asciz	"%s: setup_fifo: open(%s, O_WRONLY)"

	.no_dead_strip	_setup_fifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_fifo
_setup_fifo:                            ; @setup_fifo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x8, l___const.setup_fifo.path@PAGE
Lloh4:
	add	x8, x8, l___const.setup_fifo.path@PAGEOFF
Lloh5:
	ldr	q0, [x8]
	str	q0, [sp, #16]
	mov	w8, #22616
	movk	w8, #88, lsl #16
	stur	w8, [sp, #31]
	add	x0, sp, #16
	bl	_mkstemp
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	bl	_err
LBB0_2:
	add	x21, sp, #16
	add	x0, sp, #16
	bl	_unlink
	add	x0, sp, #16
	mov	w1, #384
	bl	_mkfifo
	tbz	x0, #63, LBB0_4
; %bb.3:
	str	x21, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	bl	_err
LBB0_4:
Lloh10:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x22, _O_NONBLOCK@GOTPAGE
Lloh14:
	ldr	x22, [x22, _O_NONBLOCK@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w1, w9, w8
	add	x23, sp, #16
	add	x0, sp, #16
	bl	_open
	mov	x21, x0
	tbz	w0, #31, LBB0_6
; %bb.5:
	str	x23, [sp]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	bl	_err
LBB0_6:
Lloh17:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w1, w9, w8
	add	x23, sp, #16
	add	x0, sp, #16
	bl	_open
	mov	x22, x0
	tbz	w0, #31, LBB0_8
; %bb.7:
	str	x23, [sp]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	bl	_err
LBB0_8:
	stp	w22, w21, [x19]
	ldr	x8, [sp, #40]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpAddLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l___const.setup_fifo.path:              ; @__const.setup_fifo.path
	.asciz	"0send_fifo.XXXXXXX"

l_.str:                                 ; @.str
	.asciz	"%s: setup_fifo: mktemp"

l_.str.1:                               ; @.str.1
	.asciz	"%s: setup_fifo: mkfifo(%s)"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
l_.str.2:                               ; @.str.2
	.asciz	"%s: setup_fifo: open(%s, O_RDONLY)"

	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
l_.str.3:                               ; @.str.3
	.asciz	"%s: setup_fifo: open(%s, O_WRONLY)"

	.no_dead_strip	_setup_fifo
.subsections_via_symbols
