	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function run_once
_run_once:                              ## @run_once
	.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
	movq	_num_pipes@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_5
## %bb.1:
	movq	_pipes@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	xorl	%ebx, %ebx
	movq	_events@GOTPCREL(%rip), %r12
	movq	_read_cb@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rdi
	addq	%r14, %rdi
	movl	(%r15), %esi
	movq	_EV_PERSIST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_EV_READ@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	(%r13), %ecx
	movq	%rbx, %r8
	callq	_event_set
	addq	(%r12), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_event_add
	incq	%rbx
	addq	$8, %r15
	movq	_num_pipes@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(,%rbx,4), %r14
	movq	(%r12), %rdi
	addq	%r14, %rdi
	callq	_event_initialized
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rdi
	addq	%r14, %rdi
	callq	_event_del
	jmp	LBB0_4
LBB0_5:
	movq	_EVLOOP_ONCE@GOTPCREL(%rip), %rax
	movq	_EVLOOP_NONBLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_event_loop
	movq	_fired@GOTPCREL(%rip), %r12
	movl	$0, (%r12)
	movq	_num_active@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	jle	LBB0_11
## %bb.6:
	movq	_num_pipes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_7
## %bb.8:
	cqto
	idivq	%rcx
	jmp	LBB0_9
LBB0_7:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_9:
	addl	%eax, %eax
	movslq	%eax, %r13
	shlq	$2, %r13
	movl	$4, %r14d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	_pipes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_send
	incl	(%r12)
	incq	%r15
	addq	%r13, %r14
	cmpq	(%rbx), %r15
	jl	LBB0_10
LBB0_11:
	movq	_count@GOTPCREL(%rip), %r13
	movl	$0, (%r13)
	movq	_num_writes@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_writes@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	leaq	_run_once.ts(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_evutil_gettimeofday
	movq	_EVLOOP_ONCE@GOTPCREL(%rip), %r14
	movq	_EVLOOP_NONBLOCK@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	orl	(%r14), %edi
	callq	_event_loop
	incl	%ebx
	movl	(%r13), %eax
	cmpl	(%r12), %eax
	jne	LBB0_12
## %bb.13:
	leaq	_run_once.te(%rip), %rdi
	xorl	%esi, %esi
	callq	_evutil_gettimeofday
	movl	(%r13), %ecx
	cmpl	%ebx, %ecx
	je	LBB0_15
## %bb.14:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_fprintf
LBB0_15:
	leaq	_run_once.ts(%rip), %rsi
	leaq	_run_once.te(%rip), %rbx
	movq	%rbx, %rdi
	movq	%rbx, %rdx
	callq	_evutil_timersub
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_run_once.ts,4,2 ## @run_once.ts
.zerofill __DATA,__bss,_run_once.te,4,2 ## @run_once.te
	.comm	_pipes,8,3                      ## @pipes
	.comm	_num_pipes,8,3                  ## @num_pipes
	.comm	_events,8,3                     ## @events
	.comm	_EV_READ,4,2                    ## @EV_READ
	.comm	_EV_PERSIST,4,2                 ## @EV_PERSIST
	.comm	_read_cb,4,2                    ## @read_cb
	.comm	_EVLOOP_ONCE,4,2                ## @EVLOOP_ONCE
	.comm	_EVLOOP_NONBLOCK,4,2            ## @EVLOOP_NONBLOCK
	.comm	_fired,4,2                      ## @fired
	.comm	_num_active,8,3                 ## @num_active
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"e"

	.comm	_count,4,2                      ## @count
	.comm	_num_writes,4,2                 ## @num_writes
	.comm	_writes,4,2                     ## @writes
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"Xcount: %d, Rcount: %d\n"

	.no_dead_strip	_run_once
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function run_once
_run_once:                              ; @run_once
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x21, _num_pipes@GOTPAGE
Lloh1:
	ldr	x21, [x21, _num_pipes@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x20, _pipes@GOTPAGE
Lloh3:
	ldr	x20, [x20, _pipes@GOTPAGEOFF]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x22, #0
	mov	x19, #0
	ldr	x23, [x20]
Lloh4:
	adrp	x24, _events@GOTPAGE
Lloh5:
	ldr	x24, [x24, _events@GOTPAGEOFF]
Lloh6:
	adrp	x25, _EV_READ@GOTPAGE
Lloh7:
	ldr	x25, [x25, _EV_READ@GOTPAGEOFF]
Lloh8:
	adrp	x26, _EV_PERSIST@GOTPAGE
Lloh9:
	ldr	x26, [x26, _EV_PERSIST@GOTPAGEOFF]
Lloh10:
	adrp	x27, _read_cb@GOTPAGE
Lloh11:
	ldr	x27, [x27, _read_cb@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x24]
	add	x0, x8, x22
	ldr	w1, [x23], #8
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w2, w9, w8
	ldr	w3, [x27]
	mov	x4, x19
	bl	_event_set
	ldr	x8, [x24]
	add	x0, x8, x22
	mov	x1, #0
	bl	_event_add
	add	x19, x19, #1
	ldr	x8, [x21]
	add	x22, x22, #4
	cmp	x19, x8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	add	x0, x8, x22
	bl	_event_initialized
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x24]
	add	x0, x8, x22
	bl	_event_del
	b	LBB0_2
LBB0_5:
Lloh12:
	adrp	x22, _EVLOOP_ONCE@GOTPAGE
Lloh13:
	ldr	x22, [x22, _EVLOOP_ONCE@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh14:
	adrp	x23, _EVLOOP_NONBLOCK@GOTPAGE
Lloh15:
	ldr	x23, [x23, _EVLOOP_NONBLOCK@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w0, w9, w8
	bl	_event_loop
Lloh16:
	adrp	x24, _fired@GOTPAGE
Lloh17:
	ldr	x24, [x24, _fired@GOTPAGEOFF]
	str	wzr, [x24]
Lloh18:
	adrp	x25, _num_active@GOTPAGE
Lloh19:
	ldr	x25, [x25, _num_active@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x8, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x26, #0
	ldr	x9, [x21]
	sdiv	x8, x9, x8
	lsl	w8, w8, #1
	sbfiz	x21, x8, #2, #32
	mov	w27, #4
Lloh20:
	adrp	x19, l_.str@PAGE
Lloh21:
	add	x19, x19, l_.str@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	w0, [x8, x27]
	mov	x1, x19
	mov	w2, #1
	mov	w3, #0
	bl	_send
	add	x26, x26, #1
	ldr	w8, [x24]
	add	w8, w8, #1
	str	w8, [x24]
	ldr	x8, [x25]
	add	x27, x27, x21
	cmp	x26, x8
	b.lt	LBB0_7
LBB0_8:
Lloh22:
	adrp	x20, _count@GOTPAGE
Lloh23:
	ldr	x20, [x20, _count@GOTPAGEOFF]
	str	wzr, [x20]
Lloh24:
	adrp	x8, _num_writes@GOTPAGE
Lloh25:
	ldr	x8, [x8, _num_writes@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _writes@GOTPAGE
Lloh28:
	ldr	x9, [x9, _writes@GOTPAGEOFF]
Lloh29:
	str	w8, [x9]
Lloh30:
	adrp	x0, _run_once.ts@PAGE
Lloh31:
	add	x0, x0, _run_once.ts@PAGEOFF
	mov	x1, #0
	bl	_evutil_gettimeofday
	mov	w19, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w0, w9, w8
	bl	_event_loop
	add	w19, w19, #1
	ldr	w8, [x20]
	ldr	w9, [x24]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.10:
Lloh32:
	adrp	x0, _run_once.te@PAGE
Lloh33:
	add	x0, x0, _run_once.te@PAGEOFF
	mov	x1, #0
	bl	_evutil_gettimeofday
	ldr	w3, [x20]
	cmp	w3, w19
	b.eq	LBB0_12
; %bb.11:
Lloh34:
	adrp	x8, _stderr@GOTPAGE
Lloh35:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
Lloh37:
	adrp	x1, l_.str.1@PAGE
Lloh38:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_fprintf
LBB0_12:
Lloh39:
	adrp	x1, _run_once.ts@PAGE
Lloh40:
	add	x1, x1, _run_once.ts@PAGEOFF
Lloh41:
	adrp	x19, _run_once.te@PAGE
Lloh42:
	add	x19, x19, _run_once.te@PAGEOFF
	mov	x0, x19
	mov	x2, x19
	bl	_evutil_timersub
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotStr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_run_once.ts,4,2 ; @run_once.ts
.zerofill __DATA,__bss,_run_once.te,4,2 ; @run_once.te
	.comm	_pipes,8,3                      ; @pipes
	.comm	_num_pipes,8,3                  ; @num_pipes
	.comm	_events,8,3                     ; @events
	.comm	_EV_READ,4,2                    ; @EV_READ
	.comm	_EV_PERSIST,4,2                 ; @EV_PERSIST
	.comm	_read_cb,4,2                    ; @read_cb
	.comm	_EVLOOP_ONCE,4,2                ; @EVLOOP_ONCE
	.comm	_EVLOOP_NONBLOCK,4,2            ; @EVLOOP_NONBLOCK
	.comm	_fired,4,2                      ; @fired
	.comm	_num_active,8,3                 ; @num_active
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"e"

	.comm	_count,4,2                      ; @count
	.comm	_num_writes,4,2                 ; @num_writes
	.comm	_writes,4,2                     ; @writes
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"Xcount: %d, Rcount: %d\n"

	.no_dead_strip	_run_once
.subsections_via_symbols
