	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function delete_range
_delete_range:                          ## @delete_range
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	$0, -104(%rbp)
	callq	_IPFW_UH_WLOCK
	movl	(%rbx), %eax
	movq	_IPFW_RCFLAG_RANGE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.2:
	movq	16(%rbx), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_ipfw_find_rule
	movl	%eax, %r15d
	movq	8(%rbx), %rsi
	movq	_IPFW_DEFAULT_RULE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rsi
	jl	LBB0_4
## %bb.3:
	decq	%rax
	movq	%rax, 8(%rbx)
	movq	%rax, %rsi
LBB0_4:
	movq	_UINT32_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_ipfw_find_rule
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %eax
	jmp	LBB0_5
LBB0_1:
	movl	(%r12), %ecx
	decl	%ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
LBB0_5:
	movq	_IPFW_RCFLAG_DYNAMIC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movl	$0, (%r14)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ipfw_expire_dyn_states
	movq	%r12, %rdi
	callq	_IPFW_UH_WUNLOCK
	jmp	LBB0_27
LBB0_7:
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_get_map
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	testl	%r15d, %r15d
	jle	LBB0_11
## %bb.10:
	movq	8(%r12), %rsi
	leal	(,%r15,8), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_memmove
LBB0_11:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movslq	%r15d, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	movl	%r15d, %ebx
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	cmpl	-56(%rbp), %r15d                ## 4-byte Folded Reload
	jge	LBB0_17
## %bb.12:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r14d
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	subl	%eax, %r14d
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, %ebx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	movq	%r13, %rdi
	callq	_ipfw_is_dyn_rule
	cmpq	$1, %rax
	sbbl	$-1, -60(%rbp)                  ## 4-byte Folded Spill
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%r15
	decl	%r14d
	je	LBB0_17
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%r15,8), %r13
	movq	%r13, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_ipfw_match_range
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movslq	%ebx, %rax
	incl	%ebx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, (%rcx,%rax,8)
	jmp	LBB0_16
LBB0_17:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movslq	%ecx, %rsi
	shlq	$3, %rsi
	addq	8(%r12), %rsi
	movslq	%ebx, %rax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%rax,8), %rdi
	movl	(%r12), %edx
	subl	%ecx, %edx
	shll	$3, %edx
	callq	_memmove
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_update_skipto_cache
	movl	(%r12), %edx
	subl	-44(%rbp), %edx                 ## 4-byte Folded Reload
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_swap_map
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_19
## %bb.18:
	movq	%r12, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_ipfw_expire_dyn_states
LBB0_19:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	cmpl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	jge	LBB0_24
## %bb.20:
	movq	%rax, %rcx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rax,8), %r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	subl	%ecx, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	leaq	-104(%rbp), %r13
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_21 Depth=1
	incq	%rbx
	cmpl	%ebx, -56(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_24
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rbx,8), %r14
	movq	%r14, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_ipfw_match_range
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	%r14, %rdi
	callq	_RULEUSIZE0
	subl	%eax, 4(%r12)
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_ipfw_reap_add
	jmp	LBB0_23
LBB0_24:
	movq	%r12, %rdi
	callq	_IPFW_UH_WUNLOCK
	movq	-104(%rbp), %rdi
	callq	_ipfw_reap_rules
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.25:
	movq	_M_IPFW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_free
LBB0_26:
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
LBB0_27:
	xorl	%eax, %eax
LBB0_28:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r12, %rdi
	callq	_IPFW_UH_WUNLOCK
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_IPFW_RCFLAG_RANGE,4,2          ## @IPFW_RCFLAG_RANGE
	.comm	_IPFW_DEFAULT_RULE,8,3          ## @IPFW_DEFAULT_RULE
	.comm	_UINT32_MAX,4,2                 ## @UINT32_MAX
	.comm	_IPFW_RCFLAG_DYNAMIC,4,2        ## @IPFW_RCFLAG_DYNAMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_M_IPFW,4,2                     ## @M_IPFW
	.no_dead_strip	_delete_range
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function delete_range
_delete_range:                          ; @delete_range
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
	str	xzr, [sp, #24]
	bl	_IPFW_UH_WLOCK
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _IPFW_RCFLAG_RANGE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IPFW_RCFLAG_RANGE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	ldr	x1, [x21, #16]
	mov	x0, x20
	mov	w2, #0
	bl	_ipfw_find_rule
	mov	x22, x0
	ldr	x1, [x21, #8]
Lloh3:
	adrp	x8, _IPFW_DEFAULT_RULE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPFW_DEFAULT_RULE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x1, x8
	b.lt	LBB0_3
; %bb.2:
	sub	x1, x8, #1
	str	x1, [x21, #8]
LBB0_3:
Lloh6:
	adrp	x8, _UINT32_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UINT32_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_ipfw_find_rule
	mov	x23, x0
	ldr	w8, [x21]
	b	LBB0_5
LBB0_4:
	mov	w22, #0
	ldr	w9, [x20]
	sub	w23, w9, #1
LBB0_5:
Lloh9:
	adrp	x9, _IPFW_RCFLAG_DYNAMIC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IPFW_RCFLAG_DYNAMIC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	str	wzr, [x19]
	mov	x0, x20
	mov	x1, x21
	bl	_ipfw_expire_dyn_states
	mov	x0, x20
	bl	_IPFW_UH_WUNLOCK
	mov	w0, #0
	b	LBB0_28
LBB0_7:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #1
	bl	_get_map
	cbz	x0, LBB0_16
; %bb.8:
	mov	x24, x0
	str	x19, [sp, #16]                  ; 8-byte Folded Spill
	cmp	w22, #1
	b.lt	LBB0_10
; %bb.9:
	ldr	x1, [x20, #8]
	lsl	w2, w22, #3
	mov	x0, x24
	bl	_memmove
LBB0_10:
	cmp	w22, w23
	str	w23, [sp, #12]                  ; 4-byte Folded Spill
	b.ge	LBB0_17
; %bb.11:
	mov	w27, #0
	mov	w26, #0
	sbfiz	x28, x22, #3, #32
	sub	w19, w23, w22
	mov	x23, x22
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	add	w26, w26, #1
	mov	x0, x25
	bl	_ipfw_is_dyn_rule
	cmp	x0, #0
	cinc	w27, w27, ne
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x28, x28, #8
	subs	w19, w19, #1
	b.eq	LBB0_18
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x25, [x8, x28]
	mov	x0, x25
	mov	x1, x21
	bl	_ipfw_match_range
	cbnz	x0, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	str	x25, [x24, w23, sxtw #3]
	add	w23, w23, #1
	b	LBB0_13
LBB0_16:
	mov	x0, x20
	bl	_IPFW_UH_WUNLOCK
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	b	LBB0_28
LBB0_17:
	mov	w26, #0
	mov	w27, #0
	mov	x23, x22
LBB0_18:
	ldr	x8, [x20, #8]
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	add	x1, x8, w9, sxtw #3
	add	x0, x24, w23, sxtw #3
	mov	x23, x9
	ldr	w8, [x20]
	sub	w8, w8, w9
	lsl	w2, w8, #3
	bl	_memmove
	mov	x0, x20
	mov	x1, x24
	bl	_update_skipto_cache
	ldr	w8, [x20]
	sub	w2, w8, w26
	mov	x0, x20
	mov	x1, x24
	bl	_swap_map
	mov	x24, x0
	cmp	w27, #1
	b.lt	LBB0_20
; %bb.19:
	mov	x0, x20
	mov	x1, x21
	bl	_ipfw_expire_dyn_states
LBB0_20:
	cmp	w22, w23
	b.ge	LBB0_25
; %bb.21:
	add	x19, x24, w22, sxtw #3
	sub	w23, w23, w22
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x19, x19, #8
	subs	w23, w23, #1
	b.eq	LBB0_25
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x19]
	mov	x0, x22
	mov	x1, x21
	bl	_ipfw_match_range
	cbz	x0, LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	x0, x22
	bl	_RULEUSIZE0
	ldr	w8, [x20, #4]
	sub	w8, w8, w0
	str	w8, [x20, #4]
	add	x1, sp, #24
	mov	x0, x20
	mov	x2, x22
	bl	_ipfw_reap_add
	b	LBB0_22
LBB0_25:
	mov	x0, x20
	bl	_IPFW_UH_WUNLOCK
	ldr	x0, [sp, #24]
	bl	_ipfw_reap_rules
	cbz	x24, LBB0_27
; %bb.26:
Lloh15:
	adrp	x8, _M_IPFW@GOTPAGE
Lloh16:
	ldr	x8, [x8, _M_IPFW@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_free
LBB0_27:
	mov	w0, #0
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	str	w26, [x8]
LBB0_28:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IPFW_RCFLAG_RANGE,4,2          ; @IPFW_RCFLAG_RANGE
	.comm	_IPFW_DEFAULT_RULE,8,3          ; @IPFW_DEFAULT_RULE
	.comm	_UINT32_MAX,4,2                 ; @UINT32_MAX
	.comm	_IPFW_RCFLAG_DYNAMIC,4,2        ; @IPFW_RCFLAG_DYNAMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_M_IPFW,4,2                     ; @M_IPFW
	.no_dead_strip	_delete_range
.subsections_via_symbols
