	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function echoer
_echoer:                                ## @echoer
	.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
	subq	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-180(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pthread_mutex_init
	leaq	-184(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pthread_cond_init
	movq	%r14, %rdi
	callq	_pthread_mutex_lock
	movq	_EVF_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_echoer_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	movq	%rbx, %rcx
	callq	_mevent_add
	movq	%rax, -192(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	leaq	-184(%rbp), %rdi
	movq	%r14, %rsi
	callq	_pthread_cond_wait
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	leaq	-176(%rbp), %rbx
	leaq	-184(%rbp), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movl	$128, %edx
	callq	_read
	testl	%eax, %eax
	jle	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r15d
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_write
	xorl	%edi, %edi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_write
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_pthread_cond_wait
	testl	%eax, %eax
	je	LBB0_3
LBB0_5:
	movq	-192(%rbp), %rdi                ## 8-byte Reload
	callq	_mevent_delete_close
	movq	%r14, %rdi
	callq	_pthread_mutex_unlock
	movq	%r14, %rdi
	callq	_pthread_mutex_destroy
	leaq	-184(%rbp), %rdi
	callq	_pthread_cond_destroy
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.6:
	xorl	%eax, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	$4, %edi
	callq	_exit
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EVF_READ,4,2                   ## @EVF_READ
	.comm	_echoer_callback,4,2            ## @echoer_callback
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"Could not allocate echoer event"

	.no_dead_strip	_echoer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function echoer
_echoer:                                ; @echoer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	mov	x8, sp
	orr	x19, x8, #0x4
	mov	x0, x19
	mov	x1, #0
	bl	_pthread_mutex_init
	mov	x0, sp
	mov	x1, #0
	bl	_pthread_cond_init
	mov	x0, x19
	bl	_pthread_mutex_lock
Lloh3:
	adrp	x8, _EVF_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVF_READ@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _echoer_callback@GOTPAGE
Lloh7:
	ldr	x8, [x8, _echoer_callback@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x3, sp
	mov	x0, x20
	bl	_mevent_add
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, sp
	mov	x1, x19
	bl	_pthread_cond_wait
	cbnz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #128
	bl	_read
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, x0
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x22
	bl	_write
	add	x1, sp, #8
	mov	w0, #0
	mov	x2, x22
	bl	_write
	b	LBB0_2
LBB0_5:
	mov	x0, x21
	bl	_mevent_delete_close
	mov	x0, x19
	bl	_pthread_mutex_unlock
	mov	x0, x19
	bl	_pthread_mutex_destroy
	mov	x0, sp
	bl	_pthread_cond_destroy
	ldur	x8, [x29, #-40]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.6:
	mov	x0, #0
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_7:
Lloh12:
	adrp	x0, l_str@PAGE
Lloh13:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #4
	bl	_exit
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EVF_READ,4,2                   ; @EVF_READ
	.comm	_echoer_callback,4,2            ; @echoer_callback
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"Could not allocate echoer event"

	.no_dead_strip	_echoer
.subsections_via_symbols
