	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sack_filter_new
_sack_filter_new:                       ## @sack_filter_new
	.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
	movl	%edx, %r15d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_TCP_MAX_SACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rax
	testl	%r15d, %r15d
	jle	LBB0_24
## %bb.1:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, %r12d
	shlq	$2, %r12
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$4, %r14
	cmpq	%r14, %r12
	je	LBB0_5
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14), %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_is_sack_on_board
	testq	%rax, %rax
	jne	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r15d, %r15
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15,4), %rdi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_memcpy
	incl	%r15d
	jmp	LBB0_2
LBB0_5:
	testl	%r15d, %r15d
	je	LBB0_24
## %bb.6:
	leal	(,%r15,4), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_memcpy
	testl	%r15d, %r15d
	jle	LBB0_25
## %bb.7:
	movl	%r15d, %ebx
	incq	%rbx
	jmp	LBB0_10
LBB0_8:                                 ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r13), %rsi
	movq	%r13, %rdi
	callq	_sack_blk_set
	movl	%eax, 16(%r13)
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	decq	%rbx
	cmpq	$1, %rbx
	jbe	LBB0_25
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %r12d
	leaq	(%r14,%r12,4), %rsi
	movq	%r13, %rdi
	callq	_is_sack_on_board
	testq	%rax, %rax
	jne	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r13), %rax
	incq	%rax
	movq	%rax, (%r13)
	movq	_SACK_FILTER_BLOCKS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %rsi
	jmp	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %esi
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rsi, (%r13)
	movq	%r13, %rdi
	callq	_sack_blk_used
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%r13), %rax
	movq	_SACK_FILTER_BLOCKS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r13), %rsi
	movq	%r13, %rdi
	callq	_sack_move_to_empty
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r13), %rsi
	movq	%r13, %rdi
	callq	_sack_blk_used
	testq	%rax, %rax
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_over_written@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	8(%r13), %rax
	movq	_SACK_FILTER_BLOCKS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_empty_avail@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_20:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r13), %rdi
	shlq	$2, %rdi
	addq	24(%r13), %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12,4), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	(%r13), %rsi
	movq	%r13, %rdi
	callq	_sack_blk_used
	testq	%rax, %rax
	jne	LBB0_9
## %bb.21:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%r13), %rax
	incq	%rax
	movq	%rax, 8(%r13)
	movq	_highest_used@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jbe	LBB0_8
## %bb.22:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_highest_used@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_8
LBB0_24:
	xorl	%r15d, %r15d
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_27
## %bb.26:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TCP_MAX_SACK,4,2               ## @TCP_MAX_SACK
	.comm	_SACK_FILTER_BLOCKS,8,3         ## @SACK_FILTER_BLOCKS
	.comm	_over_written,4,2               ## @over_written
	.comm	_empty_avail,4,2                ## @empty_avail
	.comm	_highest_used,8,3               ## @highest_used
	.no_dead_strip	_sack_filter_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sack_filter_new
_sack_filter_new:                       ; @sack_filter_new
	.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
	sub	sp, sp, #16
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _TCP_MAX_SACK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TCP_MAX_SACK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	cmp	w2, #1
	b.lt	LBB0_20
; %bb.1:
	mov	x24, #0
	mov	w21, #0
	mov	w8, w2
	lsl	x25, x8, #2
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #4
	cmp	x25, x24
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x23, x19, x24
	mov	x0, x20
	mov	x1, x23
	bl	_is_sack_on_board
	cbnz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x22, w21, sxtw #2
	mov	x1, x23
	mov	w2, #4
	bl	_memcpy
	add	w21, w21, #1
	b	LBB0_2
LBB0_5:
	cbz	w21, LBB0_21
; %bb.6:
	lsl	w2, w21, #2
	mov	x0, x19
	mov	x1, x22
	bl	_memcpy
	cmp	w21, #1
	b.lt	LBB0_21
; %bb.7:
	mov	w8, w21
	add	x23, x8, #1
Lloh8:
	adrp	x24, _SACK_FILTER_BLOCKS@GOTPAGE
Lloh9:
	ldr	x24, [x24, _SACK_FILTER_BLOCKS@GOTPAGEOFF]
Lloh10:
	adrp	x25, _highest_used@GOTPAGE
Lloh11:
	ldr	x25, [x25, _highest_used@GOTPAGEOFF]
Lloh12:
	adrp	x26, _over_written@GOTPAGE
Lloh13:
	ldr	x26, [x26, _over_written@GOTPAGEOFF]
Lloh14:
	adrp	x27, _empty_avail@GOTPAGE
Lloh15:
	ldr	x27, [x27, _empty_avail@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x1, [x20]
	mov	x0, x20
	bl	_sack_blk_set
	str	w0, [x20, #16]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	sub	x23, x23, #1
	cmp	x23, #1
	b.ls	LBB0_21
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	sub	w28, w23, #2
	add	x1, x22, w28, uxtw #2
	mov	x0, x20
	bl	_is_sack_on_board
	cbnz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
	ldr	x9, [x24]
	udiv	x10, x8, x9
	msub	x1, x10, x9, x8
	str	x1, [x20]
	mov	x0, x20
	bl	_sack_blk_used
	cbz	x0, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x20, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.hs	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x1, [x20]
	mov	x0, x20
	bl	_sack_move_to_empty
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x1, [x20]
	mov	x0, x20
	bl	_sack_blk_used
	cbz	x0, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x26]
	add	w8, w8, #1
	str	w8, [x26]
	ldr	x8, [x20, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.hs	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x27]
	add	w8, w8, #1
	str	w8, [x27]
LBB0_17:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x20, #24]
	ldr	x9, [x20]
	add	x0, x8, x9, lsl #2
	add	x1, x19, x28, lsl #2
	mov	w2, #4
	bl	_memcpy
	ldr	x1, [x20]
	mov	x0, x20
	bl	_sack_blk_used
	cbnz	x0, LBB0_9
; %bb.18:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x20, #8]
	add	x8, x8, #1
	str	x8, [x20, #8]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ls	LBB0_8
; %bb.19:                               ;   in Loop: Header=BB0_10 Depth=1
	str	x8, [x25]
	b	LBB0_8
LBB0_20:
	mov	w21, #0
LBB0_21:
	ldur	x8, [x29, #-88]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	mov	x0, x21
	sub	sp, x29, #80
	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
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_TCP_MAX_SACK,4,2               ; @TCP_MAX_SACK
	.comm	_SACK_FILTER_BLOCKS,8,3         ; @SACK_FILTER_BLOCKS
	.comm	_over_written,4,2               ; @over_written
	.comm	_empty_avail,4,2                ; @empty_avail
	.comm	_highest_used,8,3               ; @highest_used
	.no_dead_strip	_sack_filter_new
.subsections_via_symbols
