	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_post_rx_frags
_be_post_rx_frags:                      ## @be_post_rx_frags
	.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
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	testq	%rdx, %rdx
	jle	LBB0_22
## %bb.1:
	movq	32(%r15), %rax
	leaq	16(%r15), %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	16(%rax), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	16(%r15), %rax
	shlq	$4, %rax
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	addq	8(%r15), %rax
	xorl	%ecx, %ecx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	_rx_frag_size@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_bus@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dma_unmap_addr_set
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_queue_head_inc
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rax
	shlq	$4, %rax
	addq	8(%rcx), %rax
	incq	%r13
	movq	%r14, %r15
	cmpq	%r13, -80(%rbp)                 ## 8-byte Folded Reload
	movq	_rx_frag_size@GOTPCREL(%rip), %r12
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 8(%rax)
	jne	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r14
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_get_page
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	addq	(%r12), %rax
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_be_alloc_pages
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rcx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-112(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	movq	%rbx, %r15
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_dma_map_page
	movq	%r12, %rdi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	movq	%r15, %rbx
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, (%r14)
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, 8(%r14)
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %r12
	movq	%rax, %r14
	callq	_queue_head_node
	movq	%rax, %r15
	movl	(%r12), %ebx
	addl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%r15)
	movl	%ebx, %edi
	callq	_upper_32_bits
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, (%r15)
	movq	_rx_frag_size@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r14, %rcx
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%rax,2), %rax
	movq	%r12, %r14
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rcx), %rax
	jle	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, 4(%r14)
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	xorl	%eax, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_12
LBB0_13:
	movq	%r14, %r15
	movq	-80(%rbp), %r13                 ## 8-byte Reload
LBB0_14:
	testq	%rbx, %rbx
	je	LBB0_16
LBB0_15:
	movl	$1, 4(%r15)
	movq	_bus@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_dma_unmap_addr_set
LBB0_16:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	testq	%r13, %r13
	je	LBB0_22
LBB0_18:
	leaq	24(%r15), %rsi
	movq	%r13, %rdi
	callq	_atomic_add
	cmpl	$0, (%r15)
	je	LBB0_20
## %bb.19:
	movl	$0, (%r15)
LBB0_20:
	movq	_MAX_NUM_POST_ERX_DB@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movq	%r13, %rsi
	callq	_min
	movq	%rax, %rbx
	movl	28(%r15), %esi
	movq	%r12, %rdi
	movq	%rax, %rdx
	callq	_be_rxq_notify
	subq	%rbx, %r13
	jne	LBB0_21
	jmp	LBB0_24
LBB0_5:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_rx_stats
	incl	(%rax)
	testq	%rbx, %rbx
	jne	LBB0_15
	jmp	LBB0_16
LBB0_8:
	movq	%r15, %rdi
	callq	_put_page
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	incl	8(%r12)
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	testq	%r13, %r13
	jne	LBB0_18
LBB0_22:
	leaq	24(%r15), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jne	LBB0_24
## %bb.23:
	movl	$1, (%r15)
LBB0_24:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_rx_frag_size,8,3               ## @rx_frag_size
	.comm	_bus,4,2                        ## @bus
	.comm	_MAX_NUM_POST_ERX_DB,4,2        ## @MAX_NUM_POST_ERX_DB
	.no_dead_strip	_be_post_rx_frags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_post_rx_frags
_be_post_rx_frags:                      ; @be_post_rx_frags
	.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
	str	w1, [sp, #12]                   ; 4-byte Folded Spill
	mov	x19, x0
	str	x2, [sp, #16]                   ; 8-byte Folded Spill
	cmp	x2, #1
	b.lt	LBB0_21
; %bb.1:
	mov	x24, #0
	mov	x21, #0
	mov	w22, #0
	mov	x25, #0
	mov	x23, #0
	ldr	x20, [x19, #32]
	add	x8, x19, #16
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	ldr	x8, [x20, #16]
	str	x8, [sp]                        ; 8-byte Folded Spill
	ldp	x8, x9, [x19, #8]
	add	x8, x8, x9, lsl #4
Lloh0:
	adrp	x26, _rx_frag_size@GOTPAGE
Lloh1:
	ldr	x26, [x26, _rx_frag_size@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh2:
	adrp	x8, _bus@GOTPAGE
Lloh3:
	ldr	x8, [x8, _bus@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x28
	mov	x2, x25
	bl	_dma_unmap_addr_set
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_queue_head_inc
	ldp	x8, x9, [x19, #8]
	add	x8, x8, x9, lsl #4
	add	x21, x21, #1
	mov	x25, x28
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	cmp	x9, x21
	b.eq	LBB0_11
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x28, x8
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x23, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_get_page
	ldr	x8, [x26]
	add	x24, x8, x24
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x20]
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	bl	_be_alloc_pages
	mov	x23, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x3, [x20]
Lloh5:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
	ldr	x24, [sp]                       ; 8-byte Folded Reload
	mov	x0, x24
	mov	x1, x23
	mov	w2, #0
	bl	_dma_map_page
	mov	x22, x0
	mov	x0, x24
	mov	x1, x22
	bl	_dma_mapping_error
	cbnz	x0, LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, #0
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	w24, [x28]
	str	x23, [x28, #8]
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_queue_head_node
	mov	x27, x0
	ldr	w8, [x28]
	add	w25, w8, w22
	mov	x0, x25
	bl	_cpu_to_le32
	str	x0, [x27, #8]
	mov	x0, x25
	bl	_upper_32_bits
	bl	_cpu_to_le32
	str	x0, [x27]
	ldr	x8, [x26]
	add	x8, x24, x8, lsl #1
	ldr	x9, [x20]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, #0
	mov	w8, #1
	str	w8, [x28, #4]
	mov	x25, x22
	b	LBB0_2
LBB0_11:
	mov	x25, x28
	ldr	x21, [sp, #16]                  ; 8-byte Folded Reload
LBB0_12:
	cbz	x23, LBB0_16
LBB0_13:
	mov	w8, #1
	str	w8, [x25, #4]
Lloh8:
	adrp	x8, _bus@GOTPAGE
Lloh9:
	ldr	x8, [x8, _bus@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x25
	mov	x2, x22
	bl	_dma_unmap_addr_set
	b	LBB0_16
LBB0_14:
	mov	x0, x19
	bl	_rx_stats
	ldr	w8, [x0]
	add	w8, w8, #1
	str	w8, [x0]
	cbnz	x23, LBB0_13
	b	LBB0_16
LBB0_15:
	mov	x0, x23
	bl	_put_page
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
LBB0_16:
	cbz	x21, LBB0_21
; %bb.17:
	add	x1, x19, #24
	mov	x0, x21
	bl	_atomic_add
	ldr	w8, [x19]
	cbz	w8, LBB0_19
; %bb.18:
	str	wzr, [x19]
LBB0_19:
Lloh11:
	adrp	x23, _MAX_NUM_POST_ERX_DB@GOTPAGE
Lloh12:
	ldr	x23, [x23, _MAX_NUM_POST_ERX_DB@GOTPAGEOFF]
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	mov	x1, x21
	bl	_min
	mov	x22, x0
	ldr	w1, [x19, #28]
	mov	x0, x20
	mov	x2, x22
	bl	_be_rxq_notify
	subs	x21, x21, x22
	b.ne	LBB0_20
	b	LBB0_23
LBB0_21:
	add	x0, x19, #24
	bl	_atomic_read
	cbnz	x0, LBB0_23
; %bb.22:
	mov	w8, #1
	str	w8, [x19]
LBB0_23:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_rx_frag_size,8,3               ; @rx_frag_size
	.comm	_bus,4,2                        ; @bus
	.comm	_MAX_NUM_POST_ERX_DB,4,2        ; @MAX_NUM_POST_ERX_DB
	.no_dead_strip	_be_post_rx_frags
.subsections_via_symbols
