	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pf_frent_insert
_pf_frent_insert:                       ## @pf_frent_insert
	.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	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_PF_FRAG_ENTRY_LIMIT@GOTPCREL(%rip), %r12
	xorl	%edi, %edi
	cmpl	$256, (%r12)                    ## imm = 0x100
	setl	%dil
	callq	_CTASSERT
	movq	%r15, %rdi
	callq	_pf_frent_index
	movq	(%r14), %rdx
	movslq	%eax, %rbx
	movl	(%rdx,%rbx,4), %ecx
	cmpl	(%r12), %ecx
	jge	LBB0_1
## %bb.2:
	movl	%eax, %r12d
	incl	%ecx
	movl	%ecx, (%rdx,%rbx,4)
	testq	%r13, %r13
	je	LBB0_3
## %bb.5:
	movq	8(%r13), %rax
	addq	(%r13), %rax
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	setle	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	leaq	24(%r14), %rdi
	movq	_fr_next@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_TAILQ_INSERT_AFTER
	leaq	16(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	(%r15), %rcx
	cmpq	(%rax), %rcx
	jge	LBB0_10
LBB0_6:
	movq	%r13, %rdi
	callq	_pf_frent_index
	xorl	%edi, %edi
	cmpl	%r12d, %eax
	setl	%dil
	jmp	LBB0_7
LBB0_1:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_12
LBB0_3:
	leaq	24(%r14), %rdi
	movq	_fr_next@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_TAILQ_INSERT_HEAD
	leaq	16(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.9:
	movq	(%r15), %rcx
	movl	$1, %edi
	cmpq	(%rax), %rcx
	jl	LBB0_7
LBB0_10:
	xorl	%edi, %edi
	testq	%r13, %r13
	setne	%dil
	leaq	L_.str.2(%rip), %rsi
	callq	_KASSERT
	movq	%r13, %rdi
	callq	_pf_frent_index
	xorl	%edi, %edi
	cmpl	%r12d, %eax
	sete	%dil
	leaq	L_.str.3(%rip), %rsi
	callq	_KASSERT
	jmp	LBB0_11
LBB0_4:
	movl	$1, %edi
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	callq	_KASSERT
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%r15, (%rax,%rbx,8)
LBB0_11:
	movq	%r15, %rdi
	callq	_pf_frent_holes
	addl	%eax, 8(%r14)
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_FRAG_ENTRY_LIMIT,4,2        ## @PF_FRAG_ENTRY_LIMIT
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_fr_next,4,2                    ## @fr_next
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"overlapping fragment"

L_.str.1:                               ## @.str.1
	.asciz	"prev == NULL || pf_frent_index(pref) < index"

L_.str.2:                               ## @.str.2
	.asciz	"prev != NULL"

L_.str.3:                               ## @.str.3
	.asciz	"pf_frent_index(prev) == index"

	.no_dead_strip	_pf_frent_insert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pf_frent_insert
_pf_frent_insert:                       ; @pf_frent_insert
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _PF_FRAG_ENTRY_LIMIT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PF_FRAG_ENTRY_LIMIT@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #256
	cset	w0, lt
	bl	_CTASSERT
	mov	x0, x20
	bl	_pf_frent_index
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x19]
	ldr	w9, [x8, w0, sxtw #2]
	ldr	w10, [x22]
	cmp	w9, w10
	b.ge	LBB0_5
; %bb.1:
	sxtw	x22, w0
	add	w9, w9, #1
	str	w9, [x8, x22, lsl #2]
	cbz	x21, LBB0_6
; %bb.2:
	ldp	x8, x9, [x21]
	ldr	x10, [x20]
	add	x8, x9, x8
	cmp	x8, x10
	cset	w0, le
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	add	x0, x19, #24
Lloh4:
	adrp	x8, _fr_next@GOTPAGE
Lloh5:
	ldr	x8, [x8, _fr_next@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	mov	x1, x21
	mov	x2, x20
	bl	_TAILQ_INSERT_AFTER
	mov	x23, x19
	ldr	x8, [x23, #16]!
	ldr	x8, [x8, x22, lsl #3]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x9, [x20]
	ldr	x8, [x8]
	cmp	x9, x8
	b.ge	LBB0_10
LBB0_4:
	mov	x0, x21
	bl	_pf_frent_index
	cmp	w0, w22
	cset	w0, lt
	b	LBB0_9
LBB0_5:
Lloh7:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	b	LBB0_12
LBB0_6:
	add	x0, x19, #24
Lloh10:
	adrp	x8, _fr_next@GOTPAGE
Lloh11:
	ldr	x8, [x8, _fr_next@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_TAILQ_INSERT_HEAD
	mov	x23, x19
	ldr	x8, [x23, #16]!
	ldr	x8, [x8, x22, lsl #3]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	x9, [x20]
	ldr	x8, [x8]
	cmp	x9, x8
	b.ge	LBB0_10
LBB0_8:
	mov	w0, #1
LBB0_9:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_KASSERT
	ldr	x8, [x23]
	str	x20, [x8, x22, lsl #3]
	b	LBB0_11
LBB0_10:
	cmp	x21, #0
	cset	w0, ne
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_KASSERT
	mov	x0, x21
	bl	_pf_frent_index
	cmp	w0, w22
	cset	w0, eq
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_KASSERT
LBB0_11:
	mov	x0, x20
	bl	_pf_frent_holes
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [x19, #8]
	add	w8, w9, w8
	str	w8, [x19, #8]
LBB0_12:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_FRAG_ENTRY_LIMIT,4,2        ; @PF_FRAG_ENTRY_LIMIT
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_fr_next,4,2                    ; @fr_next
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"overlapping fragment"

l_.str.1:                               ; @.str.1
	.asciz	"prev == NULL || pf_frent_index(pref) < index"

l_.str.2:                               ; @.str.2
	.asciz	"prev != NULL"

l_.str.3:                               ; @.str.3
	.asciz	"pf_frent_index(prev) == index"

	.no_dead_strip	_pf_frent_insert
.subsections_via_symbols
