	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvneta_port_up
_mvneta_port_up:                        ## @mvneta_port_up
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_txq_number@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%r15d, %r15d
	movl	$0, %edx
	testl	%r8d, %r8d
	jle	LBB0_8
## %bb.1:
	movq	8(%r14), %r10
	leaq	-1(%r8), %rax
	movl	%r8d, %r11d
	andl	$3, %r11d
	cmpq	$3, %rax
	jae	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	LBB0_5
LBB0_3:
	andl	$-4, %r8d
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %esi
	movl	%eax, %ecx
	shll	%cl, %esi
	cmpq	$0, (%r10,%rax,8)
	cmovel	%r9d, %esi
	leal	1(%rax), %ecx
	movl	$1, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	orl	%edx, %esi
	cmpq	$0, 8(%r10,%rax,8)
	cmovel	%r9d, %edi
	leal	2(%rax), %ecx
	movl	$1, %ebx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	cmpq	$0, 16(%r10,%rax,8)
	cmovel	%r9d, %ebx
	orl	%edi, %ebx
	orl	%esi, %ebx
	leal	3(%rax), %ecx
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	cmpq	$0, 24(%r10,%rax,8)
	cmovel	%r9d, %edx
	orl	%ebx, %edx
	addq	$4, %rax
	cmpq	%r8, %rax
	jne	LBB0_4
LBB0_5:
	testq	%r11, %r11
	je	LBB0_8
## %bb.6:
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	movl	%eax, %ecx
	shll	%cl, %edi
	cmpq	$0, (%r10,%rax,8)
	cmovel	%esi, %edi
	orl	%edi, %edx
	incq	%rax
	decq	%r11
	jne	LBB0_7
LBB0_8:
	movq	_MVNETA_TXQ_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mvreg_write
	movq	_rxq_number@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_16
## %bb.9:
	movq	(%r14), %r10
	leaq	-1(%r8), %rax
	movl	%r8d, %esi
	andl	$3, %esi
	cmpq	$3, %rax
	jae	LBB0_11
## %bb.10:
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_11:
	andl	$-4, %r8d
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	movl	%eax, %ecx
	shll	%cl, %edi
	cmpq	$0, (%r10,%rax,8)
	cmovel	%r9d, %edi
	leal	1(%rax), %ecx
	movl	$1, %ebx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	orl	%r15d, %edi
	cmpq	$0, 8(%r10,%rax,8)
	cmovel	%r9d, %ebx
	leal	2(%rax), %ecx
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	cmpq	$0, 16(%r10,%rax,8)
	cmovel	%r9d, %edx
	orl	%ebx, %edx
	orl	%edi, %edx
	leal	3(%rax), %ecx
	movl	$1, %r15d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r15d
	cmpq	$0, 24(%r10,%rax,8)
	cmovel	%r9d, %r15d
	orl	%edx, %r15d
	addq	$4, %rax
	cmpq	%r8, %rax
	jne	LBB0_12
LBB0_13:
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.14:
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	$1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	cmpq	$0, (%r10,%rax,8)
	cmovel	%edi, %edx
	orl	%edx, %r15d
	incq	%rax
	decq	%rsi
	jne	LBB0_15
LBB0_16:
	movq	_MVNETA_RXQ_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mvreg_write                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_txq_number,4,2                 ## @txq_number
	.comm	_MVNETA_TXQ_CMD,4,2             ## @MVNETA_TXQ_CMD
	.comm	_rxq_number,4,2                 ## @rxq_number
	.comm	_MVNETA_RXQ_CMD,4,2             ## @MVNETA_RXQ_CMD
	.no_dead_strip	_mvneta_port_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function mvneta_port_up
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_mvneta_port_up:                        ; @mvneta_port_up
	.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, x0
Lloh0:
	adrp	x8, _txq_number@GOTPAGE
Lloh1:
	ldr	x8, [x8, _txq_number@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x9, [x19, #8]
	cmp	w8, #8
	b.hs	LBB0_4
; %bb.2:
	mov	x10, #0
	mov	w2, #0
	b	LBB0_7
LBB0_3:
	mov	w2, #0
	b	LBB0_9
LBB0_4:
	and	x10, x8, #0xfffffff8
	movi.2d	v0, #0000000000000000
	movi.2s	v1, #2
	movi.2s	v2, #4
Lloh3:
	adrp	x11, lCPI0_0@PAGE
Lloh4:
	ldr	d3, [x11, lCPI0_0@PAGEOFF]
	add	x11, x9, #32
	movi.2s	v4, #6
	movi.2s	v5, #1
	movi.2s	v6, #8
	mov	x12, x10
	movi.2d	v7, #0000000000000000
	movi.2d	v16, #0000000000000000
	movi.2d	v17, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add.2s	v18, v3, v1
	add.2s	v19, v3, v2
	add.2s	v20, v3, v4
	ldp	q21, q22, [x11, #-32]
	ldp	q23, q24, [x11], #64
	cmeq.2d	v21, v21, #0
	xtn.2s	v21, v21
	cmeq.2d	v22, v22, #0
	xtn.2s	v22, v22
	cmeq.2d	v23, v23, #0
	xtn.2s	v23, v23
	cmeq.2d	v24, v24, #0
	xtn.2s	v24, v24
	ushl.2s	v25, v5, v3
	ushl.2s	v18, v5, v18
	ushl.2s	v19, v5, v19
	ushl.2s	v20, v5, v20
	bic.8b	v21, v25, v21
	bic.8b	v18, v18, v22
	bic.8b	v19, v19, v23
	bic.8b	v20, v20, v24
	orr.8b	v0, v21, v0
	orr.8b	v7, v18, v7
	orr.8b	v16, v19, v16
	orr.8b	v17, v20, v17
	add.2s	v3, v3, v6
	subs	x12, x12, #8
	b.ne	LBB0_5
; %bb.6:
	orr.8b	v0, v7, v0
	orr.8b	v0, v16, v0
	orr.8b	v0, v17, v0
	mov.s	w11, v0[1]
	fmov	w12, s0
	orr	w2, w12, w11
	cmp	x10, x8
	b.eq	LBB0_9
LBB0_7:
	mov	w11, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x9, x10, lsl #3]
	lsl	w13, w11, w10
	cmp	x12, #0
	csel	w12, wzr, w13, eq
	orr	w2, w12, w2
	add	x10, x10, #1
	cmp	x8, x10
	b.ne	LBB0_8
LBB0_9:
Lloh5:
	adrp	x8, _MVNETA_TXQ_CMD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MVNETA_TXQ_CMD@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mvreg_write
Lloh8:
	adrp	x8, _rxq_number@GOTPAGE
Lloh9:
	ldr	x8, [x8, _rxq_number@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.10:
	ldr	x9, [x19]
	cmp	w8, #8
	b.hs	LBB0_13
; %bb.11:
	mov	x10, #0
	mov	w2, #0
	b	LBB0_16
LBB0_12:
	mov	w2, #0
	b	LBB0_18
LBB0_13:
	and	x10, x8, #0xfffffff8
	movi.2d	v0, #0000000000000000
	movi.2s	v1, #2
	movi.2s	v2, #4
Lloh11:
	adrp	x11, lCPI0_0@PAGE
Lloh12:
	ldr	d3, [x11, lCPI0_0@PAGEOFF]
	add	x11, x9, #32
	movi.2s	v4, #6
	movi.2s	v5, #1
	movi.2s	v6, #8
	mov	x12, x10
	movi.2d	v7, #0000000000000000
	movi.2d	v16, #0000000000000000
	movi.2d	v17, #0000000000000000
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	add.2s	v18, v3, v1
	add.2s	v19, v3, v2
	add.2s	v20, v3, v4
	ldp	q21, q22, [x11, #-32]
	ldp	q23, q24, [x11], #64
	cmeq.2d	v21, v21, #0
	xtn.2s	v21, v21
	cmeq.2d	v22, v22, #0
	xtn.2s	v22, v22
	cmeq.2d	v23, v23, #0
	xtn.2s	v23, v23
	cmeq.2d	v24, v24, #0
	xtn.2s	v24, v24
	ushl.2s	v25, v5, v3
	ushl.2s	v18, v5, v18
	ushl.2s	v19, v5, v19
	ushl.2s	v20, v5, v20
	bic.8b	v21, v25, v21
	bic.8b	v18, v18, v22
	bic.8b	v19, v19, v23
	bic.8b	v20, v20, v24
	orr.8b	v0, v21, v0
	orr.8b	v7, v18, v7
	orr.8b	v16, v19, v16
	orr.8b	v17, v20, v17
	add.2s	v3, v3, v6
	subs	x12, x12, #8
	b.ne	LBB0_14
; %bb.15:
	orr.8b	v0, v7, v0
	orr.8b	v0, v16, v0
	orr.8b	v0, v17, v0
	mov.s	w11, v0[1]
	fmov	w12, s0
	orr	w2, w12, w11
	cmp	x10, x8
	b.eq	LBB0_18
LBB0_16:
	mov	w11, #1
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x9, x10, lsl #3]
	lsl	w13, w11, w10
	cmp	x12, #0
	csel	w12, wzr, w13, eq
	orr	w2, w12, w2
	add	x10, x10, #1
	cmp	x8, x10
	b.ne	LBB0_17
LBB0_18:
Lloh13:
	adrp	x8, _MVNETA_RXQ_CMD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MVNETA_RXQ_CMD@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mvreg_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_txq_number,4,2                 ; @txq_number
	.comm	_MVNETA_TXQ_CMD,4,2             ; @MVNETA_TXQ_CMD
	.comm	_rxq_number,4,2                 ; @rxq_number
	.comm	_MVNETA_RXQ_CMD,4,2             ; @MVNETA_RXQ_CMD
	.no_dead_strip	_mvneta_port_up
.subsections_via_symbols
