	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nicvf_refill_rbdr
_nicvf_refill_rbdr:                     ## @nicvf_refill_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	%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, -84(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	16(%rdi), %r13
	movslq	(%r13), %r12
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_1
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-72(%rbp), %r13                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_nicvf_get_page
	xorl	%eax, %eax
	callq	_smp_wmb
	movl	%ebx, (%r15)
	movq	_NIC_QSET_RBDR_0_1_DOOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movl	%r13d, %ecx
	callq	_nicvf_queue_reg_write
	movq	-104(%rbp), %r13                ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, (%r15)
	je	LBB0_14
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	testl	%r12d, %r12d
	je	LBB0_18
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	subq	$1, %r12
	jb	LBB0_18
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r13), %rbx
	movq	%r12, %rcx
	shlq	$4, %rcx
	leaq	(%rbx,%rcx), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%rbx,%rcx)
	je	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	_NIC_QSET_RBDR_0_1_STATUS0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_nicvf_queue_reg_read
	movl	%eax, %r14d
	andl	$524287, %r14d                  ## imm = 0x7FFFF
	movl	4(%r13), %ecx
	leal	-1(%rcx), %eax
	cmpl	%eax, %r14d
	jge	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%r14d, %r13d
	notl	%r13d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	callq	_smp_rmb
	movq	_NIC_QSET_RBDR_0_1_TAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	%r12d, %edx
	callq	_nicvf_queue_reg_read
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movl	%eax, %r15d
	movl	%esi, %eax
	addl	%r13d, %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r13d, %ecx
	sarl	$3, %r15d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	addq	%rdx, %rax
	addq	$8, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %r13
	addl	%esi, %eax
	addl	%eax, %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	subl	%esi, %r14d
	incl	%r14d
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ebx
	movq	_RCV_FRAG_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	leaq	-88(%rbp), %r8
	callq	_nicvf_alloc_rcv_buffer
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	incl	%r15d
	decl	%ebx
	andl	%ebx, %r15d
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_GET_RBDR_DESC
	xorl	%ecx, %ecx
	movq	_NICVF_RCV_BUF_ALIGN_BYTES@GOTPCREL(%rip), %rdx
	subl	(%rdx), %ecx
	andl	-88(%rbp), %ecx
	xorl	%ebx, %ebx
	movl	%ecx, (%rax)
	incl	%r13d
	incl	%r14d
	jne	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r13d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r15), %rax
	movl	(%rax), %edi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_NICVF_INTR_RBDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_nicvf_enable_intr
	jmp	LBB0_17
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %ebx
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_18:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIC_QSET_RBDR_0_1_STATUS0,4,2  ## @NIC_QSET_RBDR_0_1_STATUS0
	.comm	_NIC_QSET_RBDR_0_1_TAIL,4,2     ## @NIC_QSET_RBDR_0_1_TAIL
	.comm	_RCV_FRAG_LEN,4,2               ## @RCV_FRAG_LEN
	.comm	_NICVF_RCV_BUF_ALIGN_BYTES,4,2  ## @NICVF_RCV_BUF_ALIGN_BYTES
	.comm	_NIC_QSET_RBDR_0_1_DOOR,4,2     ## @NIC_QSET_RBDR_0_1_DOOR
	.comm	_NICVF_INTR_RBDR,4,2            ## @NICVF_INTR_RBDR
	.no_dead_strip	_nicvf_refill_rbdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nicvf_refill_rbdr
_nicvf_refill_rbdr:                     ; @nicvf_refill_rbdr
	.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
	mov	x25, x1
	mov	x20, x0
	mov	w22, #0
	ldr	x27, [x0, #16]
	ldrsw	x21, [x27]
Lloh0:
	adrp	x24, _NIC_QSET_RBDR_0_1_STATUS0@GOTPAGE
Lloh1:
	ldr	x24, [x24, _NIC_QSET_RBDR_0_1_STATUS0@GOTPAGEOFF]
	str	w1, [sp, #20]                   ; 4-byte Folded Spill
	str	x27, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_5
LBB0_1:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w19, #0
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh2:
	adrp	x24, _NIC_QSET_RBDR_0_1_STATUS0@GOTPAGE
Lloh3:
	ldr	x24, [x24, _NIC_QSET_RBDR_0_1_STATUS0@GOTPAGEOFF]
	mov	x0, x20
	bl	_nicvf_get_page
	bl	_smp_wmb
	str	w19, [x20]
Lloh4:
	adrp	x8, _NIC_QSET_RBDR_0_1_DOOR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NIC_QSET_RBDR_0_1_DOOR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	mov	x3, x22
	bl	_nicvf_queue_reg_write
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x20]
	cbz	w8, LBB0_13
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	w21, LBB0_18
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	cbz	x21, LBB0_18
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	x21, x21, #1
	ldr	x26, [x27, #8]
	add	x23, x26, x21, lsl #4
	ldr	x8, [x23]
	cbz	x8, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x24]
	mov	x0, x20
	mov	x2, x21
	bl	_nicvf_queue_reg_read
	and	w28, w0, #0x7ffff
	ldr	w25, [x27, #4]
	sub	w8, w25, #1
	cmp	w28, w8
	b.ge	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mvn	w19, w28
	add	w24, w25, w19
	bl	_smp_rmb
Lloh7:
	adrp	x8, _NIC_QSET_RBDR_0_1_TAIL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NIC_QSET_RBDR_0_1_TAIL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_nicvf_queue_reg_read
	cbz	w24, LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	asr	w24, w0, #3
	add	x8, x26, x21, lsl #4
	add	x27, x8, #8
	add	w8, w22, w25
	add	w8, w19, w8
	str	w8, [sp, #24]                   ; 4-byte Folded Spill
	sub	w8, w28, w25
	add	w26, w8, #1
	ldr	w25, [sp, #20]                  ; 4-byte Folded Reload
Lloh10:
	adrp	x28, _RCV_FRAG_LEN@GOTPAGE
Lloh11:
	ldr	x28, [x28, _RCV_FRAG_LEN@GOTPAGEOFF]
LBB0_10:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w19, [x27]
	ldr	w3, [x28]
	add	x4, sp, #28
	mov	x0, x20
	mov	x1, x23
	mov	x2, x25
	bl	_nicvf_alloc_rcv_buffer
	cbnz	x0, LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	add	w8, w24, #1
	sub	w9, w19, #1
	and	w24, w9, w8
	mov	x0, x23
	mov	x1, x24
	bl	_GET_RBDR_DESC
	ldr	w8, [sp, #28]
Lloh12:
	adrp	x9, _NICVF_RCV_BUF_ALIGN_BYTES@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NICVF_RCV_BUF_ALIGN_BYTES@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	neg	w9, w9
	and	w8, w8, w9
	str	w8, [x0]
	add	w22, w22, #1
	adds	w26, w26, #1
	b.lo	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w19, #0
	ldr	w22, [sp, #24]                  ; 4-byte Folded Reload
	b	LBB0_17
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23]
	cbz	x8, LBB0_4
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_netif_running
	cbz	x0, LBB0_4
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh15:
	adrp	x8, _NICVF_INTR_RBDR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NICVF_INTR_RBDR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_nicvf_enable_intr
	b	LBB0_4
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w19, #1
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x27, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_2
LBB0_18:
	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	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NIC_QSET_RBDR_0_1_STATUS0,4,2  ; @NIC_QSET_RBDR_0_1_STATUS0
	.comm	_NIC_QSET_RBDR_0_1_TAIL,4,2     ; @NIC_QSET_RBDR_0_1_TAIL
	.comm	_RCV_FRAG_LEN,4,2               ; @RCV_FRAG_LEN
	.comm	_NICVF_RCV_BUF_ALIGN_BYTES,4,2  ; @NICVF_RCV_BUF_ALIGN_BYTES
	.comm	_NIC_QSET_RBDR_0_1_DOOR,4,2     ; @NIC_QSET_RBDR_0_1_DOOR
	.comm	_NICVF_INTR_RBDR,4,2            ; @NICVF_INTR_RBDR
	.no_dead_strip	_nicvf_refill_rbdr
.subsections_via_symbols
