	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ws_setfifo                     ## -- Begin function ws_setfifo
	.p2align	4, 0x90
_ws_setfifo:                            ## @ws_setfifo
	.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
	movq	_F_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_access
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	_S_IRUSR@GOTPCREL(%rip), %rax
	movq	_S_IWUSR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_S_IRGRP@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_S_IWGRP@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_S_IROTH@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_S_IWOTH@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mkfifo
	testq	%rax, %rax
	jns	LBB0_3
## %bb.2:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_FATAL
LBB0_3:
	leaq	-16(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_stat
	testq	%rax, %rax
	jns	LBB0_5
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_FATAL
LBB0_5:
	movl	-16(%rbp), %edi
	callq	_S_ISFIFO
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_FATAL
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_F_OK,4,2                       ## @F_OK
	.comm	_S_IRUSR,4,2                    ## @S_IRUSR
	.comm	_S_IWUSR,4,2                    ## @S_IWUSR
	.comm	_S_IRGRP,4,2                    ## @S_IRGRP
	.comm	_S_IWGRP,4,2                    ## @S_IWGRP
	.comm	_S_IROTH,4,2                    ## @S_IROTH
	.comm	_S_IWOTH,4,2                    ## @S_IWOTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to set fifo: %s."

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"Unable to stat fifo: %s."

L_.str.2:                               ## @.str.2
	.asciz	"pipe is not a fifo: %s."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ws_setfifo                     ; -- Begin function ws_setfifo
	.p2align	2
_ws_setfifo:                            ; @ws_setfifo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _F_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _F_OK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_access
	cbz	x0, LBB0_7
; %bb.1:
Lloh3:
	adrp	x8, _S_IRUSR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _S_IRUSR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _S_IWUSR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _S_IWUSR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _S_IRGRP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _S_IRGRP@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _S_IWGRP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _S_IWGRP@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _S_IROTH@GOTPAGE
Lloh16:
	ldr	x9, [x9, _S_IROTH@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _S_IWOTH@GOTPAGE
Lloh19:
	ldr	x9, [x9, _S_IWOTH@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x19
	bl	_mkfifo
	tbz	x0, #63, LBB0_3
; %bb.2:
Lloh21:
	adrp	x8, _errno@GOTPAGE
Lloh22:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FATAL
LBB0_3:
	add	x1, sp, #8
	mov	x0, x19
	bl	_stat
	tbz	x0, #63, LBB0_5
; %bb.4:
Lloh26:
	adrp	x8, _errno@GOTPAGE
Lloh27:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh29:
	adrp	x0, l_.str.1@PAGE
Lloh30:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_FATAL
LBB0_5:
	ldr	w0, [sp, #8]
	bl	_S_ISFIFO
	cbnz	w0, LBB0_7
; %bb.6:
Lloh31:
	adrp	x8, _errno@GOTPAGE
Lloh32:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh34:
	adrp	x0, l_.str.2@PAGE
Lloh35:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_FATAL
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_F_OK,4,2                       ; @F_OK
	.comm	_S_IRUSR,4,2                    ; @S_IRUSR
	.comm	_S_IWUSR,4,2                    ; @S_IWUSR
	.comm	_S_IRGRP,4,2                    ; @S_IRGRP
	.comm	_S_IWGRP,4,2                    ; @S_IWGRP
	.comm	_S_IROTH,4,2                    ; @S_IROTH
	.comm	_S_IWOTH,4,2                    ; @S_IWOTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to set fifo: %s."

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"Unable to stat fifo: %s."

l_.str.2:                               ; @.str.2
	.asciz	"pipe is not a fifo: %s."

.subsections_via_symbols
