	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvneta_rxq_hw_init
_mvneta_rxq_hw_init:                    ## @mvneta_rxq_hw_init
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	12(%rsi), %edi
	callq	_MVNETA_RXQ_BASE_ADDR_REG
	movl	16(%rbx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mvreg_write
	movl	12(%rbx), %edi
	callq	_MVNETA_RXQ_SIZE_REG
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mvreg_write
	movl	8(%rbx), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mvneta_rx_pkts_coal_set
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mvneta_rx_time_coal_set
	cmpl	$0, 12(%r14)
	je	LBB0_1
## %bb.4:
	movq	_NET_SKB_PAD@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	subq	(%r14), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mvneta_rxq_offset_set
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mvneta_rxq_bm_enable
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mvneta_rxq_long_pool_set
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mvneta_rxq_short_pool_set
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mvneta_rxq_non_occup_desc_add  ## TAILCALL
LBB0_1:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_mvneta_rxq_offset_set
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_SZ_64K@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jl	LBB0_3
## %bb.2:
	movl	8(%r14), %edi
	callq	_MVNETA_RX_BUF_SIZE
	movq	%rax, %rdx
LBB0_3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mvneta_rxq_buf_size_set
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mvneta_rxq_bm_disable
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mvneta_rxq_fill                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_SZ_64K,8,3                     ## @SZ_64K
	.comm	_NET_SKB_PAD,8,3                ## @NET_SKB_PAD
	.no_dead_strip	_mvneta_rxq_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvneta_rxq_hw_init
_mvneta_rxq_hw_init:                    ; @mvneta_rxq_hw_init
	.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	x19, x1
	mov	x20, x0
	ldr	w0, [x1, #12]
	bl	_MVNETA_RXQ_BASE_ADDR_REG
	mov	x1, x0
	ldr	w2, [x19, #16]
	mov	x0, x20
	bl	_mvreg_write
	ldr	w0, [x19, #12]
	bl	_MVNETA_RXQ_SIZE_REG
	mov	x1, x0
	ldr	w2, [x19]
	mov	x0, x20
	bl	_mvreg_write
	ldr	w2, [x19, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_mvneta_rx_pkts_coal_set
	ldr	w2, [x19, #4]
	mov	x0, x20
	mov	x1, x19
	bl	_mvneta_rx_time_coal_set
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _NET_SKB_PAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NET_SKB_PAD@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x20]
	sub	x2, x8, x9
	mov	x0, x20
	mov	x1, x19
	bl	_mvneta_rxq_offset_set
	mov	x0, x20
	mov	x1, x19
	bl	_mvneta_rxq_bm_enable
	mov	x0, x20
	mov	x1, x19
	bl	_mvneta_rxq_long_pool_set
	mov	x0, x20
	mov	x1, x19
	bl	_mvneta_rxq_short_pool_set
	ldr	w2, [x19]
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mvneta_rxq_non_occup_desc_add
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	mov	x2, #0
	bl	_mvneta_rxq_offset_set
Lloh3:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x2, [x8]
Lloh6:
	adrp	x8, _SZ_64K@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SZ_64K@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x2, x8
	b.lt	LBB0_4
; %bb.3:
	ldr	w0, [x20, #8]
	bl	_MVNETA_RX_BUF_SIZE
	mov	x2, x0
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_mvneta_rxq_buf_size_set
	mov	x0, x20
	mov	x1, x19
	bl	_mvneta_rxq_bm_disable
	ldr	w2, [x19]
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mvneta_rxq_fill
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_SZ_64K,8,3                     ; @SZ_64K
	.comm	_NET_SKB_PAD,8,3                ; @NET_SKB_PAD
	.no_dead_strip	_mvneta_rxq_hw_init
.subsections_via_symbols
