	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_deleterule                     ## -- Begin function deleterule
	.p2align	4, 0x90
_deleterule:                            ## @deleterule
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_divert_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	_table_head@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testl	%r14d, %r14d
	js	LBB0_1
## %bb.3:
	testq	%rbx, %rbx
	setne	%cl
	je	LBB0_7
## %bb.4:
	testl	%r14d, %r14d
	je	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	setne	%cl
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	leal	-1(%r14), %edx
	cmpl	$1, %r14d
	movl	%edx, %r14d
	ja	LBB0_5
LBB0_7:
	testb	%cl, %cl
	je	LBB0_8
## %bb.9:
	movq	(%rbx), %rdx
	movq	8(%rbx), %rcx
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.10:
	movq	%rcx, 8(%rdx)
	movq	8(%rbx), %rcx
	jmp	LBB0_12
LBB0_1:
	movq	_table_head@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_table_tail@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_divert_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	xorl	%r14d, %r14d
	testq	%rbx, %rbx
	je	LBB0_15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %r15
	movq	%rbx, %rdi
	callq	_kfree
	movq	%r15, %rbx
	testq	%r15, %r15
	jne	LBB0_2
	jmp	LBB0_15
LBB0_8:
	movq	_divert_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_15
LBB0_11:
	movq	_table_tail@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
LBB0_12:
	movq	(%rbx), %rdx
	testq	%rcx, %rcx
	jne	LBB0_14
## %bb.13:
	movq	%rax, %rcx
LBB0_14:
	movq	%rdx, (%rcx)
	movq	_divert_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%r14d, %r14d
LBB0_15:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_divert_lock,4,2                ## @divert_lock
	.comm	_table_head,8,3                 ## @table_head
	.comm	_table_tail,8,3                 ## @table_tail
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_deleterule                     ; -- Begin function deleterule
	.p2align	2
_deleterule:                            ; @deleterule
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x0, _divert_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _divert_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x8, _table_head@GOTPAGE
Lloh3:
	ldr	x8, [x8, _table_head@GOTPAGEOFF]
	ldr	x19, [x8]
	tbnz	w20, #31, LBB0_6
; %bb.1:
	cmp	x19, #0
	cset	w9, ne
	ccmp	w20, #0, #4, ne
	b.eq	LBB0_3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x19, [x19]
	cmp	x19, #0
	cset	w9, ne
	ccmp	w20, #1, #0, ne
	sub	w20, w20, #1
	b.hi	LBB0_2
LBB0_3:
	tbz	w9, #0, LBB0_8
; %bb.4:
	ldp	x10, x9, [x19]
	cbz	x10, LBB0_9
; %bb.5:
	str	x9, [x10, #8]
	ldr	x9, [x19, #8]
	b	LBB0_10
LBB0_6:
	str	xzr, [x8]
Lloh4:
	adrp	x8, _table_tail@GOTPAGE
Lloh5:
	ldr	x8, [x8, _table_tail@GOTPAGEOFF]
Lloh6:
	str	xzr, [x8]
Lloh7:
	adrp	x0, _divert_lock@GOTPAGE
Lloh8:
	ldr	x0, [x0, _divert_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	cbz	x19, LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x20, [x19]
	mov	x0, x19
	bl	_kfree
	mov	x19, x20
	cbnz	x20, LBB0_7
	b	LBB0_11
LBB0_8:
Lloh9:
	adrp	x0, _divert_lock@GOTPAGE
Lloh10:
	ldr	x0, [x0, _divert_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_9:
Lloh14:
	adrp	x10, _table_tail@GOTPAGE
Lloh15:
	ldr	x10, [x10, _table_tail@GOTPAGEOFF]
Lloh16:
	str	x9, [x10]
LBB0_10:
	ldr	x10, [x19]
	cmp	x9, #0
	csel	x8, x8, x9, eq
	str	x10, [x8]
Lloh17:
	adrp	x0, _divert_lock@GOTPAGE
Lloh18:
	ldr	x0, [x0, _divert_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_kfree
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_divert_lock,4,2                ; @divert_lock
	.comm	_table_head,8,3                 ; @table_head
	.comm	_table_tail,8,3                 ; @table_tail
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
