	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Sys_Mkfifo                     ## -- Begin function Sys_Mkfifo
	.p2align	4, 0x90
_Sys_Mkfifo:                            ## @Sys_Mkfifo
	.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
	leaq	-16(%rbp), %rsi
	callq	_stat
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movl	-16(%rbp), %edi
	callq	_S_ISFIFO
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_FS_Remove
LBB0_3:
	movq	%rbx, %rdi
	movl	$384, %esi                      ## imm = 0x180
	callq	_mkfifo
	testl	%eax, %eax
	je	LBB0_5
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_fileno
	movq	_F_SETFL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	callq	_fcntl
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w+"

	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Sys_Mkfifo                     ; -- Begin function Sys_Mkfifo
	.p2align	2
_Sys_Mkfifo:                            ; @Sys_Mkfifo
	.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
	add	x1, sp, #8
	bl	_stat
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	w0, [sp, #8]
	bl	_S_ISFIFO
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_FS_Remove
LBB0_3:
	mov	x0, x19
	mov	w1, #384
	bl	_mkfifo
	cbz	w0, LBB0_5
; %bb.4:
	mov	x19, #0
	b	LBB0_7
LBB0_5:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_fopen
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_fileno
Lloh2:
	adrp	x8, _F_SETFL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _F_SETFL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	bl	_fcntl
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w+"

	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
.subsections_via_symbols
