	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function notify_setup
_notify_setup:                          ## @notify_setup
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_notify_pipe@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_pipe
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movq	_F_SETFD@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_FD_CLOEXEC@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	callq	_fcntl
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.3:
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	movl	(%r14), %esi
	movl	(%r15), %edx
	callq	_fcntl
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.6:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_set_nonblock
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_nonblock                   ## TAILCALL
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_error
	jmp	LBB0_5
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_error
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_close
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	callq	_close
LBB0_5:
	movq	(%rbx), %rax
	movq	$-1, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_notify_pipe,8,3                ## @notify_pipe
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pipe(notify_pipe) failed %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_F_SETFD,4,2                    ## @F_SETFD
	.comm	_FD_CLOEXEC,4,2                 ## @FD_CLOEXEC
L_.str.1:                               ## @.str.1
	.asciz	"fcntl(notify_pipe, F_SETFD) failed %s"

	.no_dead_strip	_notify_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function notify_setup
_notify_setup:                          ; @notify_setup
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x19, _notify_pipe@GOTPAGE
Lloh1:
	ldr	x19, [x19, _notify_pipe@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_pipe
	tbnz	x0, #63, LBB0_4
; %bb.1:
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh2:
	adrp	x20, _F_SETFD@GOTPAGE
Lloh3:
	ldr	x20, [x20, _F_SETFD@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh4:
	adrp	x21, _FD_CLOEXEC@GOTPAGE
Lloh5:
	ldr	x21, [x21, _FD_CLOEXEC@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_fcntl
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.2:
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	ldr	w1, [x20]
	ldr	w2, [x21]
	bl	_fcntl
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.3:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_set_nonblock
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_set_nonblock
LBB0_4:
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x8, _errno@GOTPAGE
Lloh12:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_close
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	bl	_close
LBB0_6:
	ldr	x8, [x19]
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_notify_pipe,8,3                ; @notify_pipe
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pipe(notify_pipe) failed %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_F_SETFD,4,2                    ; @F_SETFD
	.comm	_FD_CLOEXEC,4,2                 ; @FD_CLOEXEC
l_.str.1:                               ; @.str.1
	.asciz	"fcntl(notify_pipe, F_SETFD) failed %s"

	.no_dead_strip	_notify_setup
.subsections_via_symbols
