	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rxd_frag_to_sd
_rxd_frag_to_sd:                        ## @rxd_frag_to_sd
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -96(%rbp)                  ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movslq	(%rsi), %r15
	movslq	4(%rsi), %r13
	movq	16(%rdi), %r14
	shlq	$6, %r15
	leaq	(%r14,%r15), %rdx
	movq	%rdx, 16(%rcx)
	movl	%r13d, (%rcx)
	movq	32(%r14,%r15), %rax
	movq	(%rax,%r13,8), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	(,%r13,4), %rax
	addq	48(%r14,%r15), %rax
	movq	%rax, 8(%rcx)
	decl	60(%r14,%r15)
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	movq	_IFC_PREFETCH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_prefetch_pkts
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
LBB0_2:
	leaq	(%r14,%r15), %rax
	addq	$32, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_CACHE_PTR_INCREMENT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	%r13, %rax
	movslq	(%rdx), %rdi
	decq	%rdi
	andq	%rax, %rdi
	shlq	$3, %rdi
	addq	40(%r14,%r15), %rdi
	callq	_prefetch
	movq	40(%r14,%r15), %rax
	movq	(%rax,%r13,8), %rbx
	xorl	%edi, %edi
	cmpl	%r13d, 4(%r14,%r15)
	sete	%dil
	callq	_MPASS
	movl	24(%r14,%r15), %edi
	movq	_BUS_DMASYNC_POSTREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_bus_dmamap_sync
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.3:
	callq	_PFIL_HOOKED_IN
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_11
## %bb.4:
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movq	8(%r12), %rax
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %edi
	movl	4(%rdx), %ecx
	movl	(%rax), %esi
	addl	%edi, %esi
	subl	%edi, %ecx
	movq	(%rbx), %rdi
	movq	_PFIL_MEMPTR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	8(%rdx), %edx
	movq	_PFIL_IN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	xorl	%r12d, %r12d
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	xorl	%r8d, %r8d
	callq	_pfil_run_hooks
                                        ## kill: def $eax killed $eax def $rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	leal	-130(%rax), %ecx
	cmpl	$2, %ecx
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jb	LBB0_15
## %bb.6:
	cmpl	$129, %eax
	je	LBB0_9
## %bb.7:
	cmpl	$128, %eax
	jne	LBB0_10
## %bb.8:
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_pfil_mem2mbuf
	movq	%rax, %r12
	jmp	LBB0_15
LBB0_11:
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movq	$0, (%rax,%r13,8)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$129, (%rax)
LBB0_12:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	leaq	(%r14,%r15), %rax
	addq	$24, %rax
	movl	(%rax), %edi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	callq	_bus_dmamap_unload
LBB0_14:
	movq	-80(%rbp), %r12                 ## 8-byte Reload
LBB0_15:
	movl	-28(%rbx), %eax
	incl	%eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ecx
	decl	%ecx
	xorl	%edi, %edi
	andl	%eax, %ecx
	movl	%ecx, -28(%rbx)
	sete	%dil
	callq	___predict_false
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	$0, 16(%r14,%r15)
LBB0_17:
	movl	8(%r14,%r15), %edi
	movl	%r13d, %esi
	callq	_bit_clear
	movq	%r12, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	(%rbx), %rax
	movq	$0, (%rax,%r13,8)
	jmp	LBB0_12
LBB0_10:
	xorl	%edi, %edi
	callq	_MPASS
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_IFC_PREFETCH,4,2               ## @IFC_PREFETCH
	.comm	_CACHE_PTR_INCREMENT,4,2        ## @CACHE_PTR_INCREMENT
	.comm	_CACHE_LINE_SIZE,4,2            ## @CACHE_LINE_SIZE
	.comm	_BUS_DMASYNC_POSTREAD,4,2       ## @BUS_DMASYNC_POSTREAD
	.comm	_PFIL_MEMPTR,4,2                ## @PFIL_MEMPTR
	.comm	_PFIL_IN,4,2                    ## @PFIL_IN
	.no_dead_strip	_rxd_frag_to_sd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rxd_frag_to_sd
_rxd_frag_to_sd:                        ; @rxd_frag_to_sd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x24, x5
	mov	x22, x4
	mov	x26, x3
	str	w2, [sp, #12]                   ; 4-byte Folded Spill
	mov	x25, x0
	ldpsw	x9, x19, [x1]
	ldp	x8, x10, [x0, #8]
	stp	x10, x9, [sp, #16]              ; 16-byte Folded Spill
	add	x20, x10, x9, lsl #6
	mov	x21, x20
	str	x20, [x3, #16]
	mov	x28, x20
	ldr	x9, [x28, #32]!
	ldr	x9, [x9, x19, lsl #3]
	str	x9, [sp]                        ; 8-byte Folded Spill
	str	w19, [x3]
	ldr	x9, [x20, #48]
	add	x9, x9, x19, lsl #2
	str	x9, [x3, #8]
	ldr	w9, [x20, #60]
	sub	w9, w9, #1
	str	w9, [x20, #60]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _IFC_PREFETCH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFC_PREFETCH@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x19
	bl	_prefetch_pkts
LBB0_2:
Lloh3:
	adrp	x8, _CACHE_PTR_INCREMENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CACHE_PTR_INCREMENT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x21]
	sub	w9, w9, #1
	add	w8, w8, w19
	and	w8, w9, w8
	ldr	x9, [x20, #40]
	add	x0, x9, w8, sxtw #3
	bl	_prefetch
	ldr	x8, [x20, #40]
	ldr	x23, [x8, x19, lsl #3]
	mov	x27, x20
	ldr	w8, [x27, #4]!
	cmp	w8, w19
	cset	w0, eq
	bl	_MPASS
	ldr	w0, [x20, #24]!
Lloh6:
	adrp	x8, _BUS_DMASYNC_POSTREAD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BUS_DMASYNC_POSTREAD@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, x23
	bl	_bus_dmamap_sync
	ldr	x0, [x25]
	cbz	x0, LBB0_9
; %bb.3:
	bl	_PFIL_HOOKED_IN
	cbz	x22, LBB0_9
; %bb.4:
	cbz	x0, LBB0_9
; %bb.5:
	ldr	x8, [x26, #8]
	ldr	w8, [x8]
	ldp	w9, w10, [x24]
	add	w26, w9, w8
	ldr	x0, [x25]
	ldr	w2, [x24, #8]
Lloh9:
	adrp	x8, _PFIL_MEMPTR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PFIL_MEMPTR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	sub	w9, w10, w9
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _PFIL_IN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PFIL_IN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w3, w8, w9
	mov	x1, x26
	mov	x4, #0
	bl	_pfil_run_hooks
	mov	x24, #0
	str	w0, [x22]
	sub	w8, w0, #130
	cmp	w8, #2
	b.lo	LBB0_12
; %bb.6:
	cmp	w0, #129
	b.eq	LBB0_15
; %bb.7:
	cmp	w0, #128
	b.ne	LBB0_16
; %bb.8:
	mov	x0, x26
	bl	_pfil_mem2mbuf
	mov	x24, x0
	b	LBB0_12
LBB0_9:
	ldr	x8, [x28]
	str	xzr, [x8, x19, lsl #3]
	mov	w8, #129
	str	w8, [x22]
LBB0_10:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	ldr	x24, [sp]                       ; 8-byte Folded Reload
	cbz	w8, LBB0_12
; %bb.11:
	ldr	w0, [x20]
	mov	x1, x23
	bl	_bus_dmamap_unload
LBB0_12:
	ldr	w8, [x27]
	add	w8, w8, #1
	ldr	w9, [x21]
	sub	w9, w9, #1
	ands	w8, w9, w8
	str	w8, [x27]
	cset	w0, eq
	bl	___predict_false
	ldp	x10, x9, [sp, #16]              ; 16-byte Folded Reload
	cbz	x0, LBB0_14
; %bb.13:
	add	x8, x10, x9, lsl #6
	str	xzr, [x8, #16]
LBB0_14:
	add	x8, x10, x9, lsl #6
	ldr	w0, [x8, #8]
	mov	x1, x19
	bl	_bit_clear
	mov	x0, x24
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_15:
	ldr	x8, [x28]
	str	xzr, [x8, x19, lsl #3]
	b	LBB0_10
LBB0_16:
	mov	w0, #0
	bl	_MPASS
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IFC_PREFETCH,4,2               ; @IFC_PREFETCH
	.comm	_CACHE_PTR_INCREMENT,4,2        ; @CACHE_PTR_INCREMENT
	.comm	_CACHE_LINE_SIZE,4,2            ; @CACHE_LINE_SIZE
	.comm	_BUS_DMASYNC_POSTREAD,4,2       ; @BUS_DMASYNC_POSTREAD
	.comm	_PFIL_MEMPTR,4,2                ; @PFIL_MEMPTR
	.comm	_PFIL_IN,4,2                    ; @PFIL_IN
	.no_dead_strip	_rxd_frag_to_sd
.subsections_via_symbols
