	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvneta_rxq_desc_num_update
_mvneta_rxq_desc_num_update:            ## @mvneta_rxq_desc_num_update
	.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
	movl	%ecx, %r12d
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdi, %r15
	cmpl	$255, %edx
	jg	LBB0_2
## %bb.1:
	cmpl	$256, %r12d                     ## imm = 0x100
	jge	LBB0_2
## %bb.6:
	movq	_MVNETA_RXQ_ADD_NON_OCCUPIED_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r12d
	orl	%edx, %r12d
	movl	(%rsi), %edi
	callq	_MVNETA_RXQ_STATUS_UPDATE_REG
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mvreg_write                    ## TAILCALL
LBB0_2:
	testl	%edx, %edx
	jg	LBB0_4
## %bb.3:
	testl	%r12d, %r12d
	jle	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	-255(%rdx), %r13d
	xorl	%eax, %eax
	cmpl	$256, %edx                      ## imm = 0x100
	cmovll	%eax, %r13d
	movl	$255, %ebx
	cmovgel	%ebx, %edx
	leal	-255(%r12), %r14d
	cmpl	$256, %r12d                     ## imm = 0x100
	movq	_MVNETA_RXQ_ADD_NON_OCCUPIED_SHIFT@GOTPCREL(%rip), %rcx
	cmovll	%eax, %r14d
	cmovll	%r12d, %ebx
	movzbl	(%rcx), %ecx
	shll	%cl, %ebx
	orl	%edx, %ebx
	movl	(%rsi), %edi
	movq	%rsi, %r12
	callq	_MVNETA_RXQ_STATUS_UPDATE_REG
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_mvreg_write
	movq	%r12, %rsi
	movl	%r13d, %eax
	orl	%r14d, %eax
	movl	%r14d, %r12d
	movl	%r13d, %edx
	jne	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MVNETA_RXQ_ADD_NON_OCCUPIED_SHIFT,4,2 ## @MVNETA_RXQ_ADD_NON_OCCUPIED_SHIFT
	.no_dead_strip	_mvneta_rxq_desc_num_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvneta_rxq_desc_num_update
_mvneta_rxq_desc_num_update:            ; @mvneta_rxq_desc_num_update
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	cmp	w2, #255
	b.gt	LBB0_3
; %bb.1:
	cmp	w3, #256
	b.ge	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _MVNETA_RXQ_ADD_NON_OCCUPIED_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MVNETA_RXQ_ADD_NON_OCCUPIED_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w8, w3, w8
	orr	w21, w8, w2
	ldr	w0, [x20]
	bl	_MVNETA_RXQ_STATUS_UPDATE_REG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mvreg_write
LBB0_3:
	cmp	w2, #0
	b.gt	LBB0_5
; %bb.4:
	cmp	w3, #1
	b.lt	LBB0_6
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w2, #255
	cmp	w2, #256
	csel	w22, wzr, w8, lt
	mov	w8, #255
	csel	w9, w2, w8, lt
Lloh3:
	adrp	x10, _MVNETA_RXQ_ADD_NON_OCCUPIED_SHIFT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MVNETA_RXQ_ADD_NON_OCCUPIED_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	sub	w11, w3, #255
	cmp	w3, #256
	csel	w23, wzr, w11, lt
	csel	w8, w3, w8, lt
	lsl	w8, w8, w10
	orr	w21, w8, w9
	ldr	w0, [x20]
	bl	_MVNETA_RXQ_STATUS_UPDATE_REG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_mvreg_write
	mov	x3, x23
	mov	x2, x22
	orr	w8, w22, w23
	cbnz	w8, LBB0_5
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MVNETA_RXQ_ADD_NON_OCCUPIED_SHIFT,4,2 ; @MVNETA_RXQ_ADD_NON_OCCUPIED_SHIFT
	.no_dead_strip	_mvneta_rxq_desc_num_update
.subsections_via_symbols
