	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bbr_fini
_bbr_fini:                              ## @bbr_fini
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_18
## %bb.1:
	movq	24(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	movq	40(%r15), %rsi
	callq	_tcp_rel_pacing_rate
LBB0_3:
	movq	%r15, %rdi
	callq	_bbr_log_flowend
	movq	$0, 40(%r15)
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_INP_CANNOT_DO_ECN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	(%rax), %ecx
	movl	%ecx, (%rax)
	movq	_INP_SUPPORTS_MBUFQ@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	andl	%ecx, %edx
	movl	%edx, (%rax)
	movq	_INP_MBUF_QUEUE_READY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%edx, %ecx
	movl	%ecx, (%rax)
LBB0_5:
	cmpq	$0, 32(%r15)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_6
## %bb.7:
	movq	_bbr_flows_nohdwr_pacing@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_bbr_flows_whdwr_pacing@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %edi
	movl	$-1, %esi
	callq	_counter_u64_add
	leaq	20(%r15), %r12
	movq	%r12, %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%rax, %rbx
	movq	_r_next@GOTPCREL(%rip), %r13
	movq	_bbr_zone@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_REMOVE
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_uma_zfree
	movq	%r12, %rdi
	callq	_TAILQ_FIRST
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_10
LBB0_11:
	leaq	16(%r15), %r12
	movq	%r12, %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	%rax, %rbx
	movq	_r_next@GOTPCREL(%rip), %r13
	movq	_bbr_zone@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_REMOVE
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_uma_zfree
	movq	%r12, %rdi
	callq	_TAILQ_FIRST
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_13
LBB0_14:
	movl	(%r15), %eax
	movslq	4(%r15), %rcx
	subl	%ecx, %eax
	imulq	$1717986919, %rcx, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$34, %rcx
	addl	%edx, %ecx
	cmpl	%ecx, %eax
	jle	LBB0_15
## %bb.16:
	movq	_bbr_dynamic_rwnd@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_15:
	movq	_bbr_static_rwnd@GOTPCREL(%rip), %rax
LBB0_17:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_BBR_STAT_INC
	movq	$0, 8(%r15)
	movq	_bbr_pcb_zone@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rsi
	callq	_uma_zfree
	movq	$0, 8(%rbx)
LBB0_18:
	movl	(%rbx), %eax
	movl	%eax, 4(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INP_CANNOT_DO_ECN,4,2          ## @INP_CANNOT_DO_ECN
	.comm	_INP_SUPPORTS_MBUFQ,4,2         ## @INP_SUPPORTS_MBUFQ
	.comm	_INP_MBUF_QUEUE_READY,4,2       ## @INP_MBUF_QUEUE_READY
	.comm	_bbr_flows_whdwr_pacing,4,2     ## @bbr_flows_whdwr_pacing
	.comm	_bbr_flows_nohdwr_pacing,4,2    ## @bbr_flows_nohdwr_pacing
	.comm	_r_next,4,2                     ## @r_next
	.comm	_bbr_zone,4,2                   ## @bbr_zone
	.comm	_bbr_dynamic_rwnd,4,2           ## @bbr_dynamic_rwnd
	.comm	_bbr_static_rwnd,4,2            ## @bbr_static_rwnd
	.comm	_bbr_pcb_zone,4,2               ## @bbr_pcb_zone
	.no_dead_strip	_bbr_fini
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bbr_fini
_bbr_fini:                              ; @bbr_fini
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x20, [x0, #8]
	cbz	x20, LBB0_12
; %bb.1:
	ldr	x0, [x20, #24]
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x1, [x20, #40]
	bl	_tcp_rel_pacing_rate
LBB0_3:
	mov	x0, x20
	bl	_bbr_log_flowend
	str	xzr, [x20, #40]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.4:
Lloh0:
	adrp	x9, _INP_CANNOT_DO_ECN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INP_CANNOT_DO_ECN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w10, [x8]
	bic	w9, w10, w9
	str	w9, [x8]
Lloh3:
	adrp	x10, _INP_SUPPORTS_MBUFQ@GOTPAGE
Lloh4:
	ldr	x10, [x10, _INP_SUPPORTS_MBUFQ@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	bic	w9, w9, w10
	str	w9, [x8]
Lloh6:
	adrp	x10, _INP_MBUF_QUEUE_READY@GOTPAGE
Lloh7:
	ldr	x10, [x10, _INP_MBUF_QUEUE_READY@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	bic	w9, w9, w10
	str	w9, [x8]
LBB0_5:
Lloh9:
	adrp	x8, _bbr_flows_nohdwr_pacing@GOTPAGE
Lloh10:
	ldr	x8, [x8, _bbr_flows_nohdwr_pacing@GOTPAGEOFF]
	ldr	x9, [x20, #32]
Lloh11:
	adrp	x10, _bbr_flows_whdwr_pacing@GOTPAGE
Lloh12:
	ldr	x10, [x10, _bbr_flows_whdwr_pacing@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x8, x10, eq
	ldr	w0, [x8]
	mov	w1, #-1
	bl	_counter_u64_add
	add	x21, x20, #20
	mov	x0, x21
	bl	_TAILQ_FIRST
Lloh13:
	adrp	x23, _r_next@GOTPAGE
Lloh14:
	ldr	x23, [x23, _r_next@GOTPAGEOFF]
Lloh15:
	adrp	x24, _bbr_zone@GOTPAGE
Lloh16:
	ldr	x24, [x24, _bbr_zone@GOTPAGEOFF]
	cbz	x0, LBB0_8
; %bb.6:
	mov	x22, x0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x23]
	mov	x0, x21
	mov	x1, x22
	bl	_TAILQ_REMOVE
	ldr	w0, [x24]
	mov	x1, x22
	bl	_uma_zfree
	mov	x0, x21
	bl	_TAILQ_FIRST
	mov	x22, x0
	cbnz	x0, LBB0_7
LBB0_8:
	add	x21, x20, #16
	mov	x0, x21
	bl	_TAILQ_FIRST
	cbz	x0, LBB0_11
; %bb.9:
	mov	x22, x0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x23]
	mov	x0, x21
	mov	x1, x22
	bl	_TAILQ_REMOVE
	ldr	w0, [x24]
	mov	x1, x22
	bl	_uma_zfree
	mov	x0, x21
	bl	_TAILQ_FIRST
	mov	x22, x0
	cbnz	x0, LBB0_10
LBB0_11:
	ldp	w8, w9, [x20]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	sub	w8, w8, w9
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #34
Lloh17:
	adrp	x11, _bbr_dynamic_rwnd@GOTPAGE
Lloh18:
	ldr	x11, [x11, _bbr_dynamic_rwnd@GOTPAGEOFF]
Lloh19:
	adrp	x12, _bbr_static_rwnd@GOTPAGE
Lloh20:
	ldr	x12, [x12, _bbr_static_rwnd@GOTPAGEOFF]
	add	w9, w9, w10
	cmp	w8, w9
	csel	x8, x11, x12, gt
	ldr	w0, [x8]
	bl	_BBR_STAT_INC
	str	xzr, [x20, #8]
Lloh21:
	adrp	x8, _bbr_pcb_zone@GOTPAGE
Lloh22:
	ldr	x8, [x8, _bbr_pcb_zone@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldr	x1, [x19, #8]
	bl	_uma_zfree
	str	xzr, [x19, #8]
LBB0_12:
	ldr	w8, [x19]
	str	w8, [x19, #4]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_INP_CANNOT_DO_ECN,4,2          ; @INP_CANNOT_DO_ECN
	.comm	_INP_SUPPORTS_MBUFQ,4,2         ; @INP_SUPPORTS_MBUFQ
	.comm	_INP_MBUF_QUEUE_READY,4,2       ; @INP_MBUF_QUEUE_READY
	.comm	_bbr_flows_whdwr_pacing,4,2     ; @bbr_flows_whdwr_pacing
	.comm	_bbr_flows_nohdwr_pacing,4,2    ; @bbr_flows_nohdwr_pacing
	.comm	_r_next,4,2                     ; @r_next
	.comm	_bbr_zone,4,2                   ; @bbr_zone
	.comm	_bbr_dynamic_rwnd,4,2           ; @bbr_dynamic_rwnd
	.comm	_bbr_static_rwnd,4,2            ; @bbr_static_rwnd
	.comm	_bbr_pcb_zone,4,2               ; @bbr_pcb_zone
	.no_dead_strip	_bbr_fini
.subsections_via_symbols
