	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function velocity_rx_refill
_velocity_rx_refill:                    ## @velocity_rx_refill
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %ebx
	xorl	%r12d, %r12d
	movq	_OWNED_BY_NIC@GOTPCREL(%rip), %r13
	xorl	%r15d, %r15d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%r15d
	movl	32(%r14), %ecx
	decl	%ecx
	leal	1(%rbx), %eax
	cmpl	%ecx, %ebx
	cmovgel	%r12d, %eax
	movl	%eax, %ebx
	cmpl	4(%r14), %eax
	je	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rcx
	movslq	%ebx, %rax
	movl	(%r13), %edx
	testl	%edx, (%rcx,%rax,4)
	jne	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r14), %rcx
	cmpl	$0, (%rcx,%rax,4)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_velocity_alloc_rx_buf
	testq	%rax, %rax
	jns	LBB0_4
LBB0_6:
	movl	%ebx, %eax
	testl	%r15d, %r15d
	je	LBB0_7
LBB0_5:
	movl	%eax, (%r14)
	addl	%r15d, 8(%r14)
	jmp	LBB0_8
LBB0_7:
	xorl	%r15d, %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OWNED_BY_NIC,4,2               ## @OWNED_BY_NIC
	.no_dead_strip	_velocity_rx_refill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function velocity_rx_refill
_velocity_rx_refill:                    ; @velocity_rx_refill
	.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, x0
	mov	w19, #0
	ldr	w21, [x0]
Lloh0:
	adrp	x22, _OWNED_BY_NIC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _OWNED_BY_NIC@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w19, w19, #1
	ldr	w8, [x20, #32]
	sub	w8, w8, #1
	cmp	w21, w8
	csinc	w21, wzr, w21, ge
	ldr	w8, [x20, #4]
	cmp	w21, w8
	b.eq	LBB0_6
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	w8, [x8, w21, sxtw #2]
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sxtw	x8, w21
	ldr	x9, [x20, #16]
	ldr	w8, [x9, x8, lsl #2]
	cbnz	w8, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_velocity_alloc_rx_buf
	tbz	x0, #63, LBB0_1
LBB0_5:
	cbz	w19, LBB0_7
LBB0_6:
	str	w21, [x20]
	ldr	w8, [x20, #8]
	add	w8, w8, w19
	str	w8, [x20, #8]
LBB0_7:
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_OWNED_BY_NIC,4,2               ; @OWNED_BY_NIC
	.no_dead_strip	_velocity_rx_refill
.subsections_via_symbols
