	.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	_MAX_RX_POST@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_15
## %bb.1:
	movq	32(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	16(%r15), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	16(%r15), %rax
	leaq	(%rax,%rax,2), %rax
	shlq	$3, %rax
	addq	8(%r15), %rax
	xorl	%ecx, %ecx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_queue_head_inc
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movq	16(%r15), %rax
	leaq	(%rax,%rax,2), %rax
	shlq	$3, %rax
	addq	8(%r15), %rax
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	incq	%r13
	movq	%r12, %r14
	movq	_MAX_RX_POST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r13
	jge	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 16(%rax)
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r12
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_get_page
	movq	_rx_frag_size@GOTPCREL(%rip), %rax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	addq	(%rax), %r14
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_be_alloc_pages
	movq	%rax, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rcx
	movq	8(%rbx), %rdi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_dma_map_page
	movl	%eax, %r15d
	movq	%rbx, %rcx
	movq	%r13, %rbx
	xorl	%r14d, %r14d
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, (%r12)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, 16(%r12)
	movq	%rcx, %rbx
	movq	_bus@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_pci_unmap_addr_set
	movl	(%r12), %r13d
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	addl	%r15d, %r13d
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_queue_head_node
	movq	%rax, %r15
	movl	%r13d, %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%r15)
	movl	%r13d, %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, -80(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%rax,2), %rax
	cmpq	(%rbx), %rax
	jle	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, 8(%r12)
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_11
LBB0_3:
	movq	%r14, %r12
LBB0_12:
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_14
LBB0_13:
	movl	$1, 8(%r12)
LBB0_14:
	testq	%r13, %r13
	je	LBB0_15
## %bb.18:
	leaq	24(%r15), %rsi
	movq	%r13, %rdi
	callq	_atomic_add
	movl	28(%r15), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rdx
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_be_rxq_notify                  ## TAILCALL
LBB0_15:
	leaq	24(%r15), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jne	LBB0_17
## %bb.16:
	movl	$1, (%r15)
LBB0_17:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_rx_stats
	incl	(%rax)
	movq	%r14, %r12
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_RX_POST,8,3                ## @MAX_RX_POST
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_rx_frag_size,8,3               ## @rx_frag_size
	.comm	_bus,4,2                        ## @bus
	.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	x24, x0
Lloh0:
	adrp	x8, _MAX_RX_POST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_RX_POST@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_15
; %bb.1:
	mov	x23, #0
	mov	x20, #0
	mov	w26, #0
	mov	x27, #0
	mov	x22, #0
	ldr	x9, [x24, #32]
	add	x8, x24, #16
	stp	x9, x8, [sp, #16]               ; 16-byte Folded Spill
	ldp	x8, x9, [x24, #8]
	mov	w10, #24
	madd	x8, x9, x10, x8
Lloh3:
	adrp	x21, _rx_frag_size@GOTPAGE
Lloh4:
	ldr	x21, [x21, _rx_frag_size@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_queue_head_inc
	ldp	x8, x9, [x24, #8]
	mov	w10, #24
	madd	x8, x9, x10, x8
	add	x20, x20, #1
Lloh5:
	adrp	x9, _MAX_RX_POST@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MAX_RX_POST@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	mov	x27, x25
	cmp	x20, x9
	b.ge	LBB0_11
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x25, x8
	ldr	x8, [x8, #16]
	cbnz	x8, LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x22, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_get_page
	ldr	x8, [x21]
	add	x23, x8, x23
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
	ldr	x0, [x19]
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	bl	_be_alloc_pages
	mov	x22, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_18
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	x3, x0, [x19]
Lloh8:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
	mov	x1, x22
	mov	w2, #0
	bl	_dma_map_page
	mov	x26, x0
	mov	x23, #0
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	x23, [x25]
	str	x22, [x25, #16]
Lloh11:
	adrp	x8, _bus@GOTPAGE
Lloh12:
	ldr	x8, [x8, _bus@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x25
	mov	x2, x26
	bl	_pci_unmap_addr_set
	ldr	w8, [x25]
	add	w27, w26, w8
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_queue_head_node
	mov	x28, x0
	mov	x0, x27
	bl	_cpu_to_le32
	str	x0, [x28, #8]
	mov	x0, x27
	bl	_upper_32_bits
	bl	_cpu_to_le32
	str	x0, [x28]
	ldr	x8, [x21]
	add	x8, x23, x8, lsl #1
	ldr	x9, [x19]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, #0
	mov	w8, #1
	str	w8, [x25, #8]
	b	LBB0_2
LBB0_10:
	mov	x25, x27
LBB0_11:
	cbz	x22, LBB0_13
LBB0_12:
	mov	w8, #1
	str	w8, [x25, #8]
LBB0_13:
	ldr	x21, [sp, #16]                  ; 8-byte Folded Reload
	cbz	x20, LBB0_15
; %bb.14:
	add	x1, x24, #24
	mov	x0, x20
	bl	_atomic_add
	ldr	w1, [x24, #28]
	mov	x0, x21
	mov	x2, x20
	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
	b	_be_rxq_notify
LBB0_15:
	add	x0, x24, #24
	bl	_atomic_read
	cbnz	x0, LBB0_17
; %bb.16:
	mov	w8, #1
	str	w8, [x24]
LBB0_17:
	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_18:
	mov	x0, x24
	bl	_rx_stats
	ldr	w8, [x0]
	add	w8, w8, #1
	str	w8, [x0]
	mov	x25, x27
	cbnz	x22, LBB0_12
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_RX_POST,8,3                ; @MAX_RX_POST
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_rx_frag_size,8,3               ; @rx_frag_size
	.comm	_bus,4,2                        ; @bus
	.no_dead_strip	_be_post_rx_frags
.subsections_via_symbols
