	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pfsync_clone_destroy
_pfsync_clone_destroy:                  ## @pfsync_clone_destroy
	.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	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rbx
	movq	_pfsync_buckets@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_9
## %bb.1:
	xorl	%ecx, %ecx
	movq	_M_PFSYNC@GOTPCREL(%rip), %r14
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx), %rdi
	addq	$40, %rdi
	callq	_callout_drain
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	_pfsync_buckets@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rcx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jge	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	16(%rbx), %rax
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	shlq	$6, %rcx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%rax,%rcx)
	jle	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx), %r15
	leaq	(%rax,%rcx), %r12
	addq	$60, %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	incl	48(%r13)
	movq	%rbx, %rdi
	callq	_callout_drain
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_free
	cmpq	$0, (%r15)
	jle	LBB0_8
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	callq	_TAILQ_FIRST
	movq	%rax, %r13
	movq	_pd_entry@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_TAILQ_REMOVE
	decq	(%r15)
	movq	%r13, %rbx
	addq	$44, %rbx
	movq	%rbx, %rdi
	callq	_callout_stop
	testq	%rax, %rax
	jle	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	56(%r13), %edi
	callq	_pf_release_state
	movl	52(%r13), %edi
	callq	_m_freem
	jmp	LBB0_7
LBB0_9:
	leaq	36(%rbx), %rdi
	callq	_callout_drain
	leaq	32(%rbx), %rdi
	callq	_callout_drain
	movq	_PFSYNCF_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	jne	LBB0_11
## %bb.10:
	movq	_V_pfsync_carp_adj@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_carp_demote_adj_p
LBB0_11:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_bpfdetach
	movq	%r14, %rdi
	callq	_if_detach
	movq	%rbx, %rdi
	callq	_pfsync_drop
	movq	%r14, %rdi
	callq	_if_free
	movq	%rbx, %rdi
	callq	_pfsync_multicast_cleanup
	leaq	28(%rbx), %rdi
	callq	_mtx_destroy
	leaq	24(%rbx), %rdi
	callq	_mtx_destroy
	movq	16(%rbx), %rdi
	movq	_M_PFSYNC@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_free
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_free
	movq	_V_pfsyncif@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pfsync_buckets,4,2             ## @pfsync_buckets
	.comm	_pd_entry,4,2                   ## @pd_entry
	.comm	_M_PFSYNC,4,2                   ## @M_PFSYNC
	.comm	_PFSYNCF_OK,4,2                 ## @PFSYNCF_OK
	.comm	_V_pfsync_carp_adj,4,2          ## @V_pfsync_carp_adj
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pfsync destroy"

	.comm	_V_pfsyncif,8,3                 ## @V_pfsyncif
	.no_dead_strip	_pfsync_clone_destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pfsync_clone_destroy
_pfsync_clone_destroy:                  ; @pfsync_clone_destroy
	.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	x20, x0
	ldr	x19, [x0]
Lloh0:
	adrp	x25, _pfsync_buckets@GOTPAGE
Lloh1:
	ldr	x25, [x25, _pfsync_buckets@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh2:
	adrp	x24, _M_PFSYNC@GOTPAGE
Lloh3:
	ldr	x24, [x24, _M_PFSYNC@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x26, #0
Lloh4:
	adrp	x27, _pd_entry@GOTPAGE
Lloh5:
	ldr	x27, [x27, _pd_entry@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x28, #40
	bl	_callout_drain
	add	x26, x26, #1
	ldrsw	x8, [x25]
	cmp	x26, x8
	b.ge	LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x8, [x19, #16]
	add	x28, x8, x26, lsl #6
	ldr	x8, [x28]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x28, #60
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldr	w8, [x22, #48]
	add	w8, w8, #1
	str	w8, [x22, #48]
	mov	x0, x23
	bl	_callout_drain
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldr	w1, [x24]
	mov	x0, x22
	bl	_free
	ldr	x8, [x28]
	cmp	x8, #0
	b.le	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	bl	_TAILQ_FIRST
	mov	x22, x0
	ldr	w2, [x27]
	mov	x0, x21
	mov	x1, x22
	bl	_TAILQ_REMOVE
	ldr	x8, [x28]
	sub	x8, x8, #1
	str	x8, [x28]
	add	x23, x22, #44
	mov	x0, x23
	bl	_callout_stop
	cmp	x0, #1
	b.lt	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w0, [x22, #56]
	bl	_pf_release_state
	ldr	w0, [x22, #52]
	bl	_m_freem
	b	LBB0_6
LBB0_9:
	add	x0, x19, #36
	bl	_callout_drain
	add	x0, x19, #32
	bl	_callout_drain
	ldr	w8, [x19, #8]
Lloh6:
	adrp	x9, _PFSYNCF_OK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PFSYNCF_OK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_11
; %bb.10:
Lloh9:
	adrp	x8, _V_pfsync_carp_adj@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V_pfsync_carp_adj@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_carp_demote_adj_p
LBB0_11:
	mov	x0, x20
	bl	_bpfdetach
	mov	x0, x20
	bl	_if_detach
	mov	x0, x19
	bl	_pfsync_drop
	mov	x0, x20
	bl	_if_free
	mov	x0, x19
	bl	_pfsync_multicast_cleanup
	add	x0, x19, #28
	bl	_mtx_destroy
	add	x0, x19, #24
	bl	_mtx_destroy
	ldr	x0, [x19, #16]
	ldr	w1, [x24]
	bl	_free
	ldr	w1, [x24]
	mov	x0, x19
	bl	_free
Lloh14:
	adrp	x8, _V_pfsyncif@GOTPAGE
Lloh15:
	ldr	x8, [x8, _V_pfsyncif@GOTPAGEOFF]
Lloh16:
	str	xzr, [x8]
	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	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_pfsync_buckets,4,2             ; @pfsync_buckets
	.comm	_pd_entry,4,2                   ; @pd_entry
	.comm	_M_PFSYNC,4,2                   ; @M_PFSYNC
	.comm	_PFSYNCF_OK,4,2                 ; @PFSYNCF_OK
	.comm	_V_pfsync_carp_adj,4,2          ; @V_pfsync_carp_adj
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pfsync destroy"

	.comm	_V_pfsyncif,8,3                 ; @V_pfsyncif
	.no_dead_strip	_pfsync_clone_destroy
.subsections_via_symbols
