	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nicvf_reclaim_rbdr
_nicvf_reclaim_rbdr:                    ## @nicvf_reclaim_rbdr
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_NIC_QSET_RBDR_0_1_HEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_nicvf_queue_reg_read
	sarl	$3, %eax
	movl	%eax, (%rbx)
	movq	_NIC_QSET_RBDR_0_1_TAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_nicvf_queue_reg_read
	sarl	$3, %eax
	movl	%eax, 4(%rbx)
	movq	_NIC_QSET_RBDR_0_1_STATUS0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_nicvf_queue_reg_read
	movq	_NIC_QSET_RBDR_0_1_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_nicvf_queue_reg_write
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$62, %ecx
	movl	$2, %r8d
	xorl	%r9d, %r9d
	callq	_nicvf_poll_reg
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_NIC_QSET_RBDR_0_1_PREFETCH_STATUS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_nicvf_queue_reg_read
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_nicvf_queue_reg_read
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_nicvf_queue_reg_read
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_nicvf_queue_reg_read
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_nicvf_queue_reg_read
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_nicvf_queue_reg_read
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_nicvf_queue_reg_read
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_nicvf_queue_reg_read
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_nicvf_queue_reg_read
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_nicvf_queue_reg_read
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_err                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NIC_QSET_RBDR_0_1_HEAD,4,2     ## @NIC_QSET_RBDR_0_1_HEAD
	.comm	_NIC_QSET_RBDR_0_1_TAIL,4,2     ## @NIC_QSET_RBDR_0_1_TAIL
	.comm	_NIC_QSET_RBDR_0_1_STATUS0,4,2  ## @NIC_QSET_RBDR_0_1_STATUS0
	.comm	_NIC_QSET_RBDR_0_1_CFG,4,2      ## @NIC_QSET_RBDR_0_1_CFG
	.comm	_NICVF_RBDR_RESET,4,2           ## @NICVF_RBDR_RESET
	.comm	_NIC_QSET_RBDR_0_1_PREFETCH_STATUS,4,2 ## @NIC_QSET_RBDR_0_1_PREFETCH_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed polling on prefetch status\n"

	.no_dead_strip	_nicvf_reclaim_rbdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nicvf_reclaim_rbdr
_nicvf_reclaim_rbdr:                    ; @nicvf_reclaim_rbdr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _NIC_QSET_RBDR_0_1_HEAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIC_QSET_RBDR_0_1_HEAD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_nicvf_queue_reg_read
	asr	w8, w0, #3
	str	w8, [x21]
Lloh3:
	adrp	x8, _NIC_QSET_RBDR_0_1_TAIL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NIC_QSET_RBDR_0_1_TAIL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_nicvf_queue_reg_read
	asr	w8, w0, #3
	str	w8, [x21, #4]
Lloh6:
	adrp	x21, _NIC_QSET_RBDR_0_1_STATUS0@GOTPAGE
Lloh7:
	ldr	x21, [x21, _NIC_QSET_RBDR_0_1_STATUS0@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_nicvf_queue_reg_read
Lloh8:
	adrp	x8, _NIC_QSET_RBDR_0_1_CFG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NIC_QSET_RBDR_0_1_CFG@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	mov	w3, #0
	bl	_nicvf_queue_reg_write
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #62
	mov	w4, #2
	mov	w5, #0
	bl	_nicvf_poll_reg
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh11:
	adrp	x21, _NIC_QSET_RBDR_0_1_PREFETCH_STATUS@GOTPAGE
Lloh12:
	ldr	x21, [x21, _NIC_QSET_RBDR_0_1_PREFETCH_STATUS@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_nicvf_queue_reg_read
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_nicvf_queue_reg_read
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_nicvf_queue_reg_read
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_nicvf_queue_reg_read
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_nicvf_queue_reg_read
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_nicvf_queue_reg_read
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_nicvf_queue_reg_read
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_nicvf_queue_reg_read
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_nicvf_queue_reg_read
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_nicvf_queue_reg_read
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	w0, [x19]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_netdev_err
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_NIC_QSET_RBDR_0_1_HEAD,4,2     ; @NIC_QSET_RBDR_0_1_HEAD
	.comm	_NIC_QSET_RBDR_0_1_TAIL,4,2     ; @NIC_QSET_RBDR_0_1_TAIL
	.comm	_NIC_QSET_RBDR_0_1_STATUS0,4,2  ; @NIC_QSET_RBDR_0_1_STATUS0
	.comm	_NIC_QSET_RBDR_0_1_CFG,4,2      ; @NIC_QSET_RBDR_0_1_CFG
	.comm	_NICVF_RBDR_RESET,4,2           ; @NICVF_RBDR_RESET
	.comm	_NIC_QSET_RBDR_0_1_PREFETCH_STATUS,4,2 ; @NIC_QSET_RBDR_0_1_PREFETCH_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed polling on prefetch status\n"

	.no_dead_strip	_nicvf_reclaim_rbdr
.subsections_via_symbols
