	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kq_del                         ## -- Begin function kq_del
	.p2align	4, 0x90
_kq_del:                                ## @kq_del
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_EVLIST_X_KQINKERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	xorl	%ebx, %ebx
	testl	%eax, (%rsi)
	je	LBB0_11
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	4(%rsi), %eax
	movq	_EV_SIGNAL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.2:
	movq	%r15, %rdi
	callq	_EVENT_SIGNAL
	movl	%eax, %r12d
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	%r12d, -64(%rbp)
	movq	_EVFILT_SIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_EV_DELETE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_kq_insert
	movl	$-1, %ebx
	cmpl	$-1, %eax
	je	LBB0_11
## %bb.3:
	movq	_SIG_DFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_signal
	movq	_SIG_ERR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
	jmp	LBB0_11
LBB0_5:
	movq	_EV_READ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.6:
	leaq	-64(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	8(%r15), %eax
	movl	%eax, -64(%rbp)
	movq	_EVFILT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_EV_DELETE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_kq_insert
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.7:
	movl	(%r13), %eax
	notl	%eax
	andl	%eax, (%r15)
	movl	4(%r15), %eax
LBB0_8:
	movq	_EV_WRITE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.9:
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	8(%r15), %eax
	movl	%eax, -64(%rbp)
	movq	_EVFILT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_EV_DELETE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_kq_insert
	cmpl	$-1, %eax
	je	LBB0_10
LBB0_4:
	movl	(%r13), %eax
	notl	%eax
	andl	%eax, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_10:
	movl	$-1, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVLIST_X_KQINKERNEL,4,2        ## @EVLIST_X_KQINKERNEL
	.comm	_EV_SIGNAL,4,2                  ## @EV_SIGNAL
	.comm	_EVFILT_SIGNAL,4,2              ## @EVFILT_SIGNAL
	.comm	_EV_DELETE,8,3                  ## @EV_DELETE
	.comm	_SIG_DFL,4,2                    ## @SIG_DFL
	.comm	_SIG_ERR,8,3                    ## @SIG_ERR
	.comm	_EV_READ,4,2                    ## @EV_READ
	.comm	_EVFILT_READ,4,2                ## @EVFILT_READ
	.comm	_EV_WRITE,4,2                   ## @EV_WRITE
	.comm	_EVFILT_WRITE,4,2               ## @EVFILT_WRITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kq_del                         ; -- Begin function kq_del
	.p2align	2
_kq_del:                                ; @kq_del
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	ldr	w8, [x1]
Lloh0:
	adrp	x22, _EVLIST_X_KQINKERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EVLIST_X_KQINKERNEL@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x1, #4]
Lloh2:
	adrp	x9, _EV_SIGNAL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EV_SIGNAL@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_EVENT_SIGNAL
	mov	x21, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	str	w21, [sp, #8]
Lloh5:
	adrp	x8, _EVFILT_SIGNAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EVFILT_SIGNAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp, #24]
Lloh8:
	adrp	x8, _EV_DELETE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EV_DELETE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [sp, #16]
	add	x1, sp, #8
	mov	x0, x20
	bl	_kq_insert
	cmn	w0, #1
	b.eq	LBB0_12
; %bb.3:
Lloh11:
	adrp	x8, _SIG_DFL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SIG_DFL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_signal
Lloh14:
	adrp	x8, _SIG_ERR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SIG_ERR@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.4:
	mov	w0, #-1
	b	LBB0_12
LBB0_5:
Lloh17:
	adrp	x9, _EV_READ@GOTPAGE
Lloh18:
	ldr	x9, [x9, _EV_READ@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	w8, [x19, #8]
	str	w8, [sp, #8]
Lloh20:
	adrp	x8, _EVFILT_READ@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EVFILT_READ@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [sp, #24]
Lloh23:
	adrp	x8, _EV_DELETE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EV_DELETE@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	str	x8, [sp, #16]
	add	x1, sp, #8
	mov	x0, x20
	bl	_kq_insert
	cmn	w0, #1
	b.eq	LBB0_12
; %bb.7:
	ldr	w9, [x22]
	ldp	w10, w8, [x19]
	bic	w9, w10, w9
	str	w9, [x19]
LBB0_8:
Lloh26:
	adrp	x9, _EV_WRITE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _EV_WRITE@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.9:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	w8, [x19, #8]
	str	w8, [sp, #8]
Lloh29:
	adrp	x8, _EVFILT_WRITE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EVFILT_WRITE@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	str	w8, [sp, #24]
Lloh32:
	adrp	x8, _EV_DELETE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EV_DELETE@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	str	x8, [sp, #16]
	add	x1, sp, #8
	mov	x0, x20
	bl	_kq_insert
	cmn	w0, #1
	b.eq	LBB0_12
LBB0_10:
	mov	w0, #0
	ldr	w8, [x22]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	b	LBB0_12
LBB0_11:
	mov	w0, #0
LBB0_12:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_EVLIST_X_KQINKERNEL,4,2        ; @EVLIST_X_KQINKERNEL
	.comm	_EV_SIGNAL,4,2                  ; @EV_SIGNAL
	.comm	_EVFILT_SIGNAL,4,2              ; @EVFILT_SIGNAL
	.comm	_EV_DELETE,8,3                  ; @EV_DELETE
	.comm	_SIG_DFL,4,2                    ; @SIG_DFL
	.comm	_SIG_ERR,8,3                    ; @SIG_ERR
	.comm	_EV_READ,4,2                    ; @EV_READ
	.comm	_EVFILT_READ,4,2                ; @EVFILT_READ
	.comm	_EV_WRITE,4,2                   ; @EV_WRITE
	.comm	_EVFILT_WRITE,4,2               ; @EVFILT_WRITE
.subsections_via_symbols
