	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	testl	%edx, %edx
	je	LBB0_10
## %bb.1:
	movq	___GFP_NOWARN@GOTPCREL(%rip), %rax
	movq	___GFP_COLD@GOTPCREL(%rip), %rdx
	orl	(%rax), %ecx
	orl	(%rdx), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	8(%rbx), %r13
	shlq	$2, %r13
	movq	48(%rbx), %r12
	addq	%r13, %r12
	addq	40(%rbx), %r13
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, 8(%rbx)
	movq	40(%rbx), %r13
	movq	48(%rbx), %r12
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_alloc_page
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movl	16(%r12), %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_dma_map_page
	movl	%eax, %r14d
	movl	16(%r12), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	%ebx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%r14d, %edi
	callq	_cpu_to_be64
	movl	%eax, (%r13)
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_set_rx_sw_desc
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	incl	(%rbx)
	movq	8(%rbx), %rax
	incq	%rax
	movq	%rax, 8(%rbx)
	cmpq	16(%rbx), %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$4, %r13
	addq	$4, %r12
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_2
	jmp	LBB0_10
LBB0_3:
	incl	56(%rbx)
	jmp	LBB0_10
LBB0_5:
	movq	%r15, %rdi
	callq	_put_page
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_10:
	movl	(%rbx), %r15d
	subl	-48(%rbp), %r15d                ## 4-byte Folded Reload
	addl	%r15d, 24(%rbx)
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ring_fl_db
	movq	%rbx, %rdi
	callq	_fl_starving
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	callq	_smp_wmb
	movq	32(%rbx), %rdi
	subq	8(%r14), %rdi
	movl	(%r14), %esi
	callq	_set_bit
LBB0_12:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___GFP_NOWARN,4,2               ## @__GFP_NOWARN
	.comm	___GFP_COLD,4,2                 ## @__GFP_COLD
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.comm	_FL_PG_ORDER,4,2                ## @FL_PG_ORDER
	.comm	_RX_LARGE_BUF,4,2               ## @RX_LARGE_BUF
	.comm	___GFP_COMP,4,2                 ## @__GFP_COMP
	.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	x20, x1
	mov	x19, x0
	ldr	w8, [x1]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	cbz	w2, LBB0_9
; %bb.1:
	mov	x21, x2
Lloh0:
	adrp	x8, ___GFP_NOWARN@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___GFP_NOWARN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, ___GFP_COLD@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___GFP_COLD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w8, w3
	orr	w22, w8, w9
	ldr	x8, [x20, #8]
	lsl	x8, x8, #2
	ldp	x10, x9, [x20, #40]
	add	x23, x9, x8
	add	x26, x10, x8
Lloh6:
	adrp	x27, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x27, [x27, _PAGE_SIZE@GOTPAGEOFF]
Lloh8:
	adrp	x28, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh9:
	ldr	x28, [x28, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [x20, #8]
	ldp	x26, x23, [x20, #40]
	cbz	w21, LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_alloc_page
	mov	x24, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #16]
	ldr	w3, [x27]
	ldr	w4, [x28]
	mov	x1, x24
	mov	w2, #0
	bl	_dma_map_page
	mov	x25, x0
	ldr	w0, [x19, #16]
	mov	x1, x25
	bl	_dma_mapping_error
	bl	_unlikely
	cbnz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w21, w21, #1
	mov	x0, x25
	bl	_cpu_to_be64
	str	w0, [x26], #4
	mov	x0, x23
	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_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #4
	cbnz	w21, LBB0_3
	b	LBB0_9
LBB0_7:
	ldr	w8, [x20, #56]
	add	w8, w8, #1
	str	w8, [x20, #56]
	b	LBB0_9
LBB0_8:
	mov	x0, x24
	bl	_put_page
LBB0_9:
	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, x20
	bl	_fl_starving
	bl	_unlikely
	cbz	x0, LBB0_11
; %bb.10:
	bl	_smp_wmb
	ldr	x8, [x20, #32]
	ldr	x9, [x19, #8]
	sub	x0, x8, x9
	ldr	w1, [x19]
	bl	_set_bit
LBB0_11:
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	___GFP_NOWARN,4,2               ; @__GFP_NOWARN
	.comm	___GFP_COLD,4,2                 ; @__GFP_COLD
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_FL_PG_ORDER,4,2                ; @FL_PG_ORDER
	.comm	_RX_LARGE_BUF,4,2               ; @RX_LARGE_BUF
	.comm	___GFP_COMP,4,2                 ; @__GFP_COMP
	.no_dead_strip	_refill_fl
.subsections_via_symbols
