	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcp_sack_maybe_coalesce
_tcp_sack_maybe_coalesce:               ## @tcp_sack_maybe_coalesce
	.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
	cmpl	$2, (%rdi)
	jl	LBB0_9
## %bb.1:
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movl	$1, %r15d
	movq	%rbx, %r12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_7 Depth 3
	leaq	8(%r12), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=2
	cmpl	%r15d, %eax
	jle	LBB0_9
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_7 Depth 3
	movl	8(%r12), %edx
	movl	12(%r12), %esi
	movq	%rbx, %rdi
	callq	_tcp_sack_extend
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	(%r14), %eax
	decl	%eax
	movl	%eax, (%r14)
	cmpl	%r15d, %eax
	jle	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%r15, %rcx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	8(%rbx,%rcx,8), %rax
	movq	%rax, (%rbx,%rcx,8)
	leaq	1(%rcx), %rdx
	movslq	(%r14), %rax
	movq	%rdx, %rcx
	cmpq	%rax, %rdx
	jl	LBB0_7
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movq	%r13, %r12
	cmpl	%r15d, (%r14)
	jg	LBB0_2
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_tcp_sack_maybe_coalesce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcp_sack_maybe_coalesce
_tcp_sack_maybe_coalesce:               ; @tcp_sack_maybe_coalesce
	.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
	ldr	w8, [x0]
	cmp	w8, #2
	b.lt	LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0, #8]
	mov	w21, #1
	mov	x22, x20
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;       Child Loop BB0_7 Depth 3
	add	x23, x22, #8
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=2
	cmp	w8, w21
	b.le	LBB0_9
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_7 Depth 3
	ldp	w2, w1, [x22, #8]
	mov	x0, x20
	bl	_tcp_sack_extend
	cbz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	w8, [x19]
	sub	w8, w8, #1
	str	w8, [x19]
	cmp	w8, w21
	b.le	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	x9, #0
LBB0_7:                                 ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_4 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	x8, x22, x9, lsl #3
	ldr	x10, [x8, #16]
	str	x10, [x8, #8]
	ldrsw	x8, [x19]
	add	x9, x9, #1
	add	x10, x21, x9
	cmp	x10, x8
	b.lt	LBB0_7
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	ldr	w8, [x19]
	mov	x22, x23
	cmp	w8, w21
	b.gt	LBB0_2
LBB0_9:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_tcp_sack_maybe_coalesce
.subsections_via_symbols
