	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evmap_io_add_                  ## -- Begin function evmap_io_add_
	.p2align	4, 0x90
_evmap_io_add_:                         ## @evmap_io_add_
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	xorl	%edi, %edi
	cmpq	%rsi, (%rdx)
	sete	%dil
	callq	_EVUTIL_ASSERT
	testq	%r14, %r14
	js	LBB0_1
## %bb.2:
	cmpq	%r14, (%rbx)
	jg	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$8, %edx
	callq	_evmap_make_space
	cmpl	$-1, %eax
	je	LBB0_12
LBB0_4:
	movq	_evmap_io@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_evmap_io_init@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	8(%r15), %r9d
	xorl	%edi, %edi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_GET_IO_SLOT_AND_CTOR
	movl	4, %ecx
	movl	8, %eax
	testl	%eax, %eax
	movq	_EV_CLOSED@GOTPCREL(%rip), %rdx
	movzwl	(%rdx), %edx
	movl	%edx, %esi
	cmovel	%eax, %esi
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	$0, %r13d
	cmovel	%edx, %r13d
	testl	%ecx, %ecx
	movq	_EV_WRITE@GOTPCREL(%rip), %rsi
	movzwl	(%rsi), %esi
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	cmovel	%ecx, %r15d
	movq	%r12, %rdi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	$0, %r12d
	cmovel	%esi, %r12d
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	8(%rdi), %edi
	xorl	%ebx, %ebx
	testw	%si, %di
	setne	%bl
	movl	$0, %esi
	cmovel	%esi, %r12d
	addl	%ecx, %ebx
	xorl	%ecx, %ecx
	testw	%dx, %di
	cmovel	%esi, %r13d
	setne	%cl
	addl	%eax, %ecx
	cmpl	$65536, %ebx                    ## imm = 0x10000
	setge	%al
	cmpl	$65536, %ecx                    ## imm = 0x10000
	setge	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_EVUTIL_UNLIKELY
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	leaq	L_.str(%rip), %rdi
LBB0_6:
	movl	%r14d, %esi
	callq	_event_warnx
	jmp	LBB0_12
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_7:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_EVENT_DEBUG_MODE_IS_ON
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movl	$12, %edi
	callq	_LIST_FIRST
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	_EV_ET@GOTPCREL(%rip), %rcx
	movzwl	8(%rbx), %edx
	xorw	8(%rax), %dx
	testw	%dx, (%rcx)
	je	LBB0_11
## %bb.10:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_6
LBB0_11:
	orl	-44(%rbp), %r15d                ## 4-byte Folded Reload
	orl	%r13d, %r12d
	movq	(%rbx), %rsi
	movq	_EV_ET@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	andw	8(%rbx), %ax
	orl	%eax, %r12d
	movswl	%r12w, %ecx
	movswl	%r15w, %edx
	movl	$16, %r8d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	callq	*(%rax)
LBB0_12:
	movl	$-1, %eax
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_evmap_io,4,2                   ## @evmap_io
	.comm	_evmap_io_init,4,2              ## @evmap_io_init
	.comm	_EV_READ,2,1                    ## @EV_READ
	.comm	_EV_WRITE,2,1                   ## @EV_WRITE
	.comm	_EV_CLOSED,2,1                  ## @EV_CLOSED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Too many events reading or writing on fd %d"

	.comm	_EV_ET,2,1                      ## @EV_ET
L_.str.1:                               ## @.str.1
	.asciz	"Tried to mix edge-triggered and non-edge-triggered events on fd %d"

	.comm	_ev_io_next,4,2                 ## @ev_io_next
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evmap_io_add_                  ; -- Begin function evmap_io_add_
	.p2align	2
_evmap_io_add_:                         ; @evmap_io_add_
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #8]
	ldr	x8, [x2]
	cmp	x8, x1
	cset	w0, eq
	bl	_EVUTIL_ASSERT
	tbnz	x20, #63, LBB0_6
; %bb.1:
	ldr	x8, [x19]
	cmp	x8, x20
	b.gt	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #8
	bl	_evmap_make_space
	cmn	w0, #1
	b.eq	LBB0_13
LBB0_3:
Lloh0:
	adrp	x8, _evmap_io@GOTPAGE
Lloh1:
	ldr	x8, [x8, _evmap_io@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x8, _evmap_io_init@GOTPAGE
Lloh4:
	ldr	x8, [x8, _evmap_io_init@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	ldr	w5, [x22, #8]
	mov	x0, #0
	mov	x1, x19
	mov	x2, x20
	bl	_GET_IO_SLOT_AND_CTOR
	mov	w8, #4
	ldr	w8, [x8]
	mov	w9, #8
Lloh6:
	adrp	x10, _EV_WRITE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _EV_WRITE@GOTPAGEOFF]
	ldr	w9, [x9]
	ldrh	w10, [x10]
	cmp	w8, #0
	csel	w23, wzr, w10, eq
Lloh8:
	adrp	x11, _EV_CLOSED@GOTPAGE
Lloh9:
	ldr	x11, [x11, _EV_CLOSED@GOTPAGEOFF]
	ldrh	w11, [x11]
	ldrh	w12, [x21, #8]
	and	w13, w12, w10
	csel	w10, w10, wzr, eq
	tst	w13, #0xffff
	cinc	w8, w8, ne
	csel	w24, wzr, w10, eq
	cmp	w9, #0
	csel	w25, wzr, w11, eq
	and	w10, w12, w11
	csel	w11, w11, wzr, eq
	tst	w10, #0xffff
	cinc	w9, w9, ne
	csel	w26, wzr, w11, eq
	cmp	w8, #16, lsl #12                ; =65536
	mov	w8, #65536
	ccmp	w9, w8, #0, lt
	cset	w0, ge
	bl	_EVUTIL_UNLIKELY
	cbz	x0, LBB0_7
; %bb.4:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
LBB0_5:
	mov	x1, x20
	bl	_event_warnx
	b	LBB0_12
LBB0_6:
	mov	w0, #0
	b	LBB0_13
LBB0_7:
	bl	_EVENT_DEBUG_MODE_IS_ON
Lloh12:
	adrp	x27, _EV_ET@GOTPAGE
Lloh13:
	ldr	x27, [x27, _EV_ET@GOTPAGEOFF]
	cbz	x0, LBB0_11
; %bb.8:
	mov	w0, #12
	bl	_LIST_FIRST
	cbz	x0, LBB0_11
; %bb.9:
	ldrh	w8, [x0, #8]
	ldrh	w9, [x27]
	ldrh	w10, [x21, #8]
	eor	w8, w10, w8
	tst	w8, w9
	b.eq	LBB0_11
; %bb.10:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_11:
	orr	w8, w25, w23
	orr	w9, w24, w26
	ldr	x10, [x22]
	ldr	x1, [x21]
	ldrh	w11, [x21, #8]
	ldrh	w12, [x27]
	and	w11, w12, w11
	orr	w9, w11, w9
	sxth	w3, w9
	sxth	w2, w8
	mov	x0, x19
	mov	w4, #16
	blr	x10
LBB0_12:
	mov	w0, #-1
LBB0_13:
	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	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_evmap_io,4,2                   ; @evmap_io
	.comm	_evmap_io_init,4,2              ; @evmap_io_init
	.comm	_EV_READ,2,1                    ; @EV_READ
	.comm	_EV_WRITE,2,1                   ; @EV_WRITE
	.comm	_EV_CLOSED,2,1                  ; @EV_CLOSED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Too many events reading or writing on fd %d"

	.comm	_EV_ET,2,1                      ; @EV_ET
l_.str.1:                               ; @.str.1
	.asciz	"Tried to mix edge-triggered and non-edge-triggered events on fd %d"

	.comm	_ev_io_next,4,2                 ; @ev_io_next
.subsections_via_symbols
