	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function refill_fl
_refill_fl:                             ## @refill_fl
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, %r12d
	movq	%rdi, %r15
	movl	(%rsi), %eax
	movq	8(%rsi), %r13
	shlq	$2, %r13
	movq	32(%rsi), %r14
	addq	%r13, %r14
	addq	40(%rsi), %r13
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	addl	%r12d, %eax
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rsi), %rcx
	movq	_FL_PER_EQ_UNIT@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	subq	%rdx, %rcx
	xorl	%edi, %edi
	cmpq	%rax, %rcx
	setb	%dil
	callq	_BUG_ON
	movq	___GFP_NOWARN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	testl	%r12d, %r12d
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_15
## %bb.1:
	movl	(%r15), %esi
	testl	%esi, %esi
	je	LBB0_15
## %bb.2:
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	___dev_alloc_pages
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_3
LBB0_14:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	52(%rax)
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	testl	%r12d, %r12d
	jne	LBB0_16
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_22:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	$0, 8(%rax)
	movq	32(%rax), %r14
	movq	40(%rax), %r13
LBB0_15:
	testl	%r12d, %r12d
	je	LBB0_6
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	___dev_alloc_page
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_poison_buf
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	8(%r13), %edi
	movl	(%rbx), %ecx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_dma_map_page
	movl	%eax, %ebx
	movl	8(%r13), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=1
	decl	%r12d
	movl	%ebx, %edi
	callq	_cpu_to_be64
	movl	%eax, (%r14)
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_set_rx_sw_desc
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	incl	(%rcx)
	movq	8(%rcx), %rax
	incq	%rax
	movq	%rax, 8(%rcx)
	cmpq	16(%rcx), %rax
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=1
	addq	$4, %r14
	addq	$4, %r13
	testl	%r12d, %r12d
	jne	LBB0_16
	jmp	LBB0_6
LBB0_3:
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movzbl	(%r13), %ecx
	shll	%cl, %esi
	movq	%r15, %rdi
	callq	_poison_buf
	movl	8(%r13), %edi
	movl	(%rbx), %eax
	movzbl	(%r13), %ecx
	shll	%cl, %eax
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	%r15, %rsi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_dma_map_page
	movl	%eax, %ebx
	movl	8(%r13), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_RX_LARGE_BUF@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_cpu_to_be64
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, (%r14)
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_set_rx_sw_desc
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	incl	(%rcx)
	movq	8(%rcx), %rax
	incq	%rax
	movq	%rax, 8(%rcx)
	cmpq	16(%rcx), %rax
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	$0, 8(%rax)
	movq	32(%rax), %r14
	movq	40(%rax), %r13
	cmpl	$1, %r12d
	jne	LBB0_13
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	$4, %r14
	addq	$4, %r13
	cmpl	$1, %r12d
	je	LBB0_6
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13), %esi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	___dev_alloc_pages
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	decl	%r12d
	testq	%rax, %rax
	je	LBB0_4
	jmp	LBB0_14
LBB0_17:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	48(%rax)
	jmp	LBB0_6
LBB0_19:
	movq	%r15, %rdi
	callq	_put_page
	jmp	LBB0_6
LBB0_5:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	___free_pages
LBB0_6:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %r14d
	subl	-80(%rbp), %r14d                ## 4-byte Folded Reload
	addl	%r14d, 24(%rbx)
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ring_fl_db
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_fl_starving
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_smp_wmb
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	28(%rax), %edi
	movl	4(%r15), %esi
	callq	_set_bit
LBB0_8:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FL_PER_EQ_UNIT,4,2             ## @FL_PER_EQ_UNIT
	.comm	___GFP_NOWARN,4,2               ## @__GFP_NOWARN
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.comm	_RX_LARGE_BUF,4,2               ## @RX_LARGE_BUF
	.no_dead_strip	_refill_fl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function refill_fl
_refill_fl:                             ; @refill_fl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x23, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w25, [x1]
	ldp	x8, x9, [x1, #8]
	lsl	x8, x8, #2
	ldp	x10, x11, [x1, #32]
	add	x27, x10, x8
	add	x22, x11, x8
	add	w8, w25, w2
Lloh0:
	adrp	x10, _FL_PER_EQ_UNIT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _FL_PER_EQ_UNIT@GOTPAGEOFF]
Lloh2:
	ldrsw	x10, [x10]
	sub	x9, x9, x10
	cmp	x9, x8
	cset	w0, lo
	bl	_BUG_ON
Lloh3:
	adrp	x8, ___GFP_NOWARN@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___GFP_NOWARN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w23, w8, w23
	str	w25, [sp, #12]                  ; 4-byte Folded Spill
	cbz	w21, LBB0_4
; %bb.1:
	ldr	w1, [x19]
	cbz	w1, LBB0_4
; %bb.2:
	mov	x0, x23
	bl	___dev_alloc_pages
	mov	x24, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_11
LBB0_3:
	ldr	w8, [x20, #52]
	add	w8, w8, #1
	str	w8, [x20, #52]
LBB0_4:
	cbz	w21, LBB0_20
; %bb.5:
Lloh6:
	adrp	x28, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x28, [x28, _PAGE_SIZE@GOTPAGEOFF]
Lloh8:
	adrp	x26, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh9:
	ldr	x26, [x26, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	str	xzr, [x20, #8]
	ldp	x27, x22, [x20, #32]
	cbz	w21, LBB0_20
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	___dev_alloc_page
	mov	x24, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x28]
	mov	x0, x24
	bl	_poison_buf
	ldr	w0, [x19, #8]
	ldr	w3, [x28]
	ldr	w4, [x26]
	mov	x1, x24
	mov	w2, #0
	bl	_dma_map_page
	mov	x25, x0
	ldr	w0, [x19, #8]
	mov	x1, x25
	bl	_dma_mapping_error
	bl	_unlikely
	cbnz	x0, LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	w21, w21, #1
	mov	x0, x25
	bl	_cpu_to_be64
	str	w0, [x27], #4
	mov	x0, x22
	mov	x1, x24
	mov	x2, x25
	bl	_set_rx_sw_desc
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	ldp	x8, x9, [x20, #8]
	add	x8, x8, #1
	str	x8, [x20, #8]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x22, #4
	cbnz	w21, LBB0_7
	b	LBB0_20
LBB0_11:
Lloh10:
	adrp	x28, _PAGE_SIZE@GOTPAGE
Lloh11:
	ldr	x28, [x28, _PAGE_SIZE@GOTPAGEOFF]
Lloh12:
	adrp	x26, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh13:
	ldr	x26, [x26, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x28]
	ldr	w9, [x19]
	lsl	w1, w8, w9
	mov	x0, x24
	bl	_poison_buf
	ldr	w0, [x19, #8]
	ldr	w8, [x28]
	ldr	w9, [x19]
	lsl	w3, w8, w9
	ldr	w4, [x26]
	mov	x1, x24
	mov	w2, #0
	bl	_dma_map_page
	mov	x25, x0
	ldr	w0, [x19, #8]
	mov	x1, x25
	bl	_dma_mapping_error
	bl	_unlikely
	cbnz	x0, LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
Lloh14:
	adrp	x8, _RX_LARGE_BUF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RX_LARGE_BUF@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w25, w8, w25
	mov	x0, x25
	bl	_cpu_to_be64
	str	w0, [x27], #4
	mov	x0, x22
	mov	x1, x24
	mov	x2, x25
	bl	_set_rx_sw_desc
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	ldp	x8, x9, [x20, #8]
	add	x8, x8, #1
	str	x8, [x20, #8]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	str	xzr, [x20, #8]
	ldp	x27, x22, [x20, #32]
	subs	w21, w21, #1
	b.ne	LBB0_16
	b	LBB0_20
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x22, x22, #4
	subs	w21, w21, #1
	b.eq	LBB0_20
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w1, [x19]
	mov	x0, x23
	bl	___dev_alloc_pages
	mov	x24, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_12
	b	LBB0_3
LBB0_17:
	ldr	w8, [x20, #48]
	add	w8, w8, #1
	str	w8, [x20, #48]
	b	LBB0_20
LBB0_18:
	mov	x0, x24
	bl	_put_page
	b	LBB0_20
LBB0_19:
	ldr	w1, [x19]
	mov	x0, x24
	bl	___free_pages
LBB0_20:
	ldr	w8, [x20]
	ldr	w9, [x20, #24]
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
	sub	w21, w8, w10
	add	w8, w9, w21
	str	w8, [x20, #24]
	mov	x0, x19
	mov	x1, x20
	bl	_ring_fl_db
	mov	x0, x19
	mov	x1, x20
	bl	_fl_starving
	bl	_unlikely
	cbz	x0, LBB0_22
; %bb.21:
	bl	_smp_wmb
	ldr	w0, [x20, #28]
	ldr	w1, [x19, #4]
	bl	_set_bit
LBB0_22:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_FL_PER_EQ_UNIT,4,2             ; @FL_PER_EQ_UNIT
	.comm	___GFP_NOWARN,4,2               ; @__GFP_NOWARN
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_RX_LARGE_BUF,4,2               ; @RX_LARGE_BUF
	.no_dead_strip	_refill_fl
.subsections_via_symbols
