	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %rdi
	leaq	-48(%rbp), %rsi
	callq	_lstat
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	_S_IFMT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-48(%rbp), %eax
	movq	_S_IFREG@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_2
LBB0_4:
	leaq	L_.str(%rip), %rbx
	movq	%rbx, %rdi
	callq	_unlink
	movq	%rbx, %rdi
	movl	$384, %esi                      ## imm = 0x180
	callq	_mkfifo
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.6:
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%edx, %edx
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %r15d
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	leaq	L_.str(%rip), %r14
	movq	%r14, %rdx
	callq	_fprintf
	xorl	%eax, %eax
	callq	_event_base_new
	movq	%rax, %r12
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_signal_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r12, %rcx
	callq	_evsignal_new
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_event_add
	movq	_EV_READ@GOTPCREL(%rip), %rax
	movq	_EV_PERSIST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_fifo_read@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	xorl	%eax, %eax
	callq	_event_self_cbarg
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	callq	_event_new
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_event_add
	movq	%r12, %rdi
	callq	_event_base_dispatch
	movq	%r12, %rdi
	callq	_event_base_free
	movl	%r15d, %edi
	callq	_close
	movq	%r14, %rdi
	callq	_unlink
	xorl	%eax, %eax
	callq	_libevent_global_shutdown
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	_main.cold.2
	jmp	LBB0_3
LBB0_7:
	callq	_main.cold.3
	jmp	LBB0_3
LBB0_2:
	callq	_main.cold.1
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function main.cold.1
_main.cold.1:                           ## @main.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_EEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
	pushq	$1
	popq	%rdi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function main.cold.2
_main.cold.2:                           ## @main.cold.2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str.2(%rip), %rdi
	callq	_perror
	pushq	$1
	popq	%rdi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function main.cold.3
_main.cold.3:                           ## @main.cold.3
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str.3(%rip), %rdi
	callq	_perror
	pushq	$1
	popq	%rdi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"event.fifo"

	.comm	_S_IFMT,4,2                     ## @S_IFMT
	.comm	_S_IFREG,4,2                    ## @S_IFREG
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"lstat"

L_.str.2:                               ## @.str.2
	.asciz	"mkfifo"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
L_.str.3:                               ## @.str.3
	.asciz	"open"

	.comm	_stderr,4,2                     ## @stderr
L_.str.4:                               ## @.str.4
	.asciz	"Write data to %s\n"

	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_signal_cb,4,2                  ## @signal_cb
	.comm	_EV_READ,4,2                    ## @EV_READ
	.comm	_EV_PERSIST,4,2                 ## @EV_PERSIST
	.comm	_fifo_read,4,2                  ## @fifo_read
	.comm	_FILE_ATTRIBUTE_NORMAL,4,2      ## @FILE_ATTRIBUTE_NORMAL
	.comm	_GENERIC_READ,4,2               ## @GENERIC_READ
	.comm	_INVALID_HANDLE_VALUE,4,2       ## @INVALID_HANDLE_VALUE
	.comm	_OPEN_EXISTING,4,2              ## @OPEN_EXISTING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #8
	bl	_lstat
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w8, [sp, #8]
Lloh2:
	adrp	x9, _S_IFMT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _S_IFMT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh5:
	adrp	x9, _S_IFREG@GOTPAGE
Lloh6:
	ldr	x9, [x9, _S_IFREG@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_7
LBB0_2:
Lloh8:
	adrp	x19, l_.str@PAGE
Lloh9:
	add	x19, x19, l_.str@PAGEOFF
	mov	x0, x19
	bl	_unlink
	mov	x0, x19
	mov	w1, #384
	bl	_mkfifo
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.3:
Lloh10:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _O_NONBLOCK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _O_NONBLOCK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #0
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.4:
	mov	x19, x0
Lloh18:
	adrp	x8, _stderr@GOTPAGE
Lloh19:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
Lloh23:
	adrp	x20, l_.str@PAGE
Lloh24:
	add	x20, x20, l_.str@PAGEOFF
	mov	x2, x20
	bl	_fprintf
	bl	_event_base_new
	mov	x21, x0
Lloh25:
	adrp	x8, _SIGINT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SIGINT@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _signal_cb@GOTPAGE
Lloh29:
	ldr	x8, [x8, _signal_cb@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	x3, x0
	bl	_evsignal_new
	mov	x1, #0
	bl	_event_add
Lloh31:
	adrp	x8, _EV_READ@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EV_READ@GOTPAGEOFF]
Lloh33:
	adrp	x9, _EV_PERSIST@GOTPAGE
Lloh34:
	ldr	x9, [x9, _EV_PERSIST@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	ldr	w9, [x9]
	orr	w22, w9, w8
Lloh37:
	adrp	x8, _fifo_read@GOTPAGE
Lloh38:
	ldr	x8, [x8, _fifo_read@GOTPAGEOFF]
Lloh39:
	ldr	w23, [x8]
	bl	_event_self_cbarg
	mov	x4, x0
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	mov	x3, x23
	bl	_event_new
	mov	x1, #0
	bl	_event_add
	mov	x0, x21
	bl	_event_base_dispatch
	mov	x0, x21
	bl	_event_base_free
	mov	x0, x19
	bl	_close
	mov	x0, x20
	bl	_unlink
	bl	_libevent_global_shutdown
	mov	w0, #0
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	bl	_main.cold.2
LBB0_6:
	bl	_main.cold.3
LBB0_7:
	bl	_main.cold.1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh35
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function main.cold.1
_main.cold.1:                           ; @main.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh40:
	adrp	x8, _EEXIST@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
Lloh43:
	adrp	x9, _errno@GOTPAGE
Lloh44:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh45:
	str	w8, [x9]
Lloh46:
	adrp	x0, l_.str.1@PAGE
Lloh47:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
	bl	_OUTLINED_FUNCTION_0
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotStr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function main.cold.2
_main.cold.2:                           ; @main.cold.2
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh48:
	adrp	x0, l_.str.2@PAGE
Lloh49:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_perror
	bl	_OUTLINED_FUNCTION_0
	.loh AdrpAdd	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function main.cold.3
_main.cold.3:                           ; @main.cold.3
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh50:
	adrp	x0, l_.str.3@PAGE
Lloh51:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_perror
	bl	_OUTLINED_FUNCTION_0
	.loh AdrpAdd	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function OUTLINED_FUNCTION_0
_OUTLINED_FUNCTION_0:                   ; @OUTLINED_FUNCTION_0 Thunk
	.cfi_startproc
; %bb.0:
	mov	w0, #1
	b	_exit
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"event.fifo"

	.comm	_S_IFMT,4,2                     ; @S_IFMT
	.comm	_S_IFREG,4,2                    ; @S_IFREG
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"lstat"

l_.str.2:                               ; @.str.2
	.asciz	"mkfifo"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
l_.str.3:                               ; @.str.3
	.asciz	"open"

	.comm	_stderr,4,2                     ; @stderr
l_.str.4:                               ; @.str.4
	.asciz	"Write data to %s\n"

	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_signal_cb,4,2                  ; @signal_cb
	.comm	_EV_READ,4,2                    ; @EV_READ
	.comm	_EV_PERSIST,4,2                 ; @EV_PERSIST
	.comm	_fifo_read,4,2                  ; @fifo_read
	.comm	_FILE_ATTRIBUTE_NORMAL,4,2      ; @FILE_ATTRIBUTE_NORMAL
	.comm	_GENERIC_READ,4,2               ; @GENERIC_READ
	.comm	_INVALID_HANDLE_VALUE,4,2       ; @INVALID_HANDLE_VALUE
	.comm	_OPEN_EXISTING,4,2              ; @OPEN_EXISTING
.subsections_via_symbols
