	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ndesc_rx_set_on_ring
_ndesc_rx_set_on_ring:                  ## @ndesc_rx_set_on_ring
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_BUF_SIZE_2KiB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	%edx, %esi
	jg	LBB0_2
## %bb.1:
	subl	%esi, %edx
	incl	%edx
	decl	%esi
	movl	%edx, %edi
	callq	_min
	movq	_RDES1_BUFFER2_SIZE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_RDES1_BUFFER2_SIZE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, %edi
	callq	_cpu_to_le32
	orl	%eax, (%r14)
LBB0_2:
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.3:
	movq	_RDES1_END_RING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	orl	%eax, (%r14)
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUF_SIZE_2KiB,4,2              ## @BUF_SIZE_2KiB
	.comm	_RDES1_BUFFER2_SIZE_SHIFT,4,2   ## @RDES1_BUFFER2_SIZE_SHIFT
	.comm	_RDES1_BUFFER2_SIZE_MASK,4,2    ## @RDES1_BUFFER2_SIZE_MASK
	.comm	_RDES1_END_RING,4,2             ## @RDES1_END_RING
	.no_dead_strip	_ndesc_rx_set_on_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ndesc_rx_set_on_ring
_ndesc_rx_set_on_ring:                  ; @ndesc_rx_set_on_ring
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _BUF_SIZE_2KiB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BUF_SIZE_2KiB@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.gt	LBB0_2
; %bb.1:
	sub	w9, w2, w8
	add	w0, w9, #1
	sub	w1, w8, #1
	bl	_min
Lloh3:
	adrp	x8, _RDES1_BUFFER2_SIZE_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RDES1_BUFFER2_SIZE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w8, w0, w8
Lloh6:
	adrp	x9, _RDES1_BUFFER2_SIZE_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RDES1_BUFFER2_SIZE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w0, w8, w9
	bl	_cpu_to_le32
	ldr	w8, [x19]
	orr	w8, w8, w0
	str	w8, [x19]
LBB0_2:
	cbz	w20, LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _RDES1_END_RING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RDES1_END_RING@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	w8, [x19]
	orr	w8, w8, w0
	str	w8, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BUF_SIZE_2KiB,4,2              ; @BUF_SIZE_2KiB
	.comm	_RDES1_BUFFER2_SIZE_SHIFT,4,2   ; @RDES1_BUFFER2_SIZE_SHIFT
	.comm	_RDES1_BUFFER2_SIZE_MASK,4,2    ; @RDES1_BUFFER2_SIZE_MASK
	.comm	_RDES1_END_RING,4,2             ; @RDES1_END_RING
	.no_dead_strip	_ndesc_rx_set_on_ring
.subsections_via_symbols
