	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvneta_poll
_mvneta_poll:                           ## @mvneta_poll
	.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	%esi, %r12d
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_netdev_priv
	movq	%rax, %r15
	movl	40(%rax), %edi
	callq	_this_cpu_ptr
	movq	%rax, %r14
	movq	16(%r15), %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_MVNETA_INTR_NEW_CAUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_mvreg_read
	movq	_MVNETA_MISCINTR_INTR_MASK@GOTPCREL(%rip), %rcx
	movl	%eax, %ebx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.3:
	movq	_MVNETA_INTR_MISC_CAUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_mvreg_read
	movl	%eax, %r13d
	movq	_MVNETA_INTR_MISC_CAUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_mvreg_write
	movq	_MVNETA_CAUSE_PHY_STATUS_CHANGE@GOTPCREL(%rip), %rax
	movq	_MVNETA_CAUSE_LINK_CHANGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r13d, %ecx
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_mvneta_link_change
LBB0_5:
	movq	_MVNETA_TX_INTR_MASK_ALL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	%ebx, %ecx
	andl	%ebx, %esi
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_mvneta_tx_done_gbe
	movl	%ebx, %ecx
	movl	(%r13), %eax
	notl	%eax
	andl	%eax, %ecx
LBB0_7:
	movzbl	%ch, %edi
	movl	%ecx, %ebx
	callq	_fls
	movl	%ebx, %edx
	cmpq	$0, 8(%r15)
	movq	%r15, %rcx
	cmoveq	%r14, %rcx
	orl	(%rcx), %edx
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	cmpq	$0, 32(%r15)
	movq	24(%r15), %rcx
	cltq
	leaq	-4(%rcx,%rax,4), %rcx
	je	LBB0_11
## %bb.10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%edx, %ebx
	movl	%r12d, %edx
	callq	_mvneta_rx_hwbm
	jmp	LBB0_12
LBB0_1:
	movq	%rbx, %rdi
	callq	_napi_complete
	xorl	%r13d, %r13d
	jmp	LBB0_21
LBB0_8:
	xorl	%r13d, %r13d
	cmpl	%r12d, %r13d
	jl	LBB0_14
LBB0_18:
	cmpq	$0, 8(%r15)
	je	LBB0_20
LBB0_19:
	movl	%edx, (%r15)
	jmp	LBB0_21
LBB0_11:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%edx, %ebx
	movl	%r12d, %edx
	callq	_mvneta_rx_swbm
LBB0_12:
	movl	%ebx, %edx
	movl	%eax, %r13d
	cmpl	%r12d, %r13d
	jge	LBB0_18
LBB0_14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_napi_complete_done
	cmpq	$0, 8(%r15)
	je	LBB0_16
## %bb.15:
	callq	_local_irq_save
	movq	_MVNETA_INTR_NEW_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_rxq_number@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MVNETA_RX_INTR_MASK
	movl	%eax, %r12d
	movq	_txq_number@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MVNETA_TX_INTR_MASK
	orl	%eax, %r12d
	movq	_MVNETA_MISCINTR_INTR_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_mvreg_write
	callq	_local_irq_restore
	jmp	LBB0_17
LBB0_16:
	movq	16(%r15), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_enable_percpu_irq
LBB0_17:
	xorl	%edx, %edx
	cmpq	$0, 8(%r15)
	jne	LBB0_19
LBB0_20:
	movl	%edx, (%r14)
LBB0_21:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MVNETA_INTR_NEW_CAUSE,4,2      ## @MVNETA_INTR_NEW_CAUSE
	.comm	_MVNETA_MISCINTR_INTR_MASK,4,2  ## @MVNETA_MISCINTR_INTR_MASK
	.comm	_MVNETA_INTR_MISC_CAUSE,4,2     ## @MVNETA_INTR_MISC_CAUSE
	.comm	_MVNETA_CAUSE_PHY_STATUS_CHANGE,4,2 ## @MVNETA_CAUSE_PHY_STATUS_CHANGE
	.comm	_MVNETA_CAUSE_LINK_CHANGE,4,2   ## @MVNETA_CAUSE_LINK_CHANGE
	.comm	_MVNETA_TX_INTR_MASK_ALL,4,2    ## @MVNETA_TX_INTR_MASK_ALL
	.comm	_MVNETA_INTR_NEW_MASK,4,2       ## @MVNETA_INTR_NEW_MASK
	.comm	_rxq_number,4,2                 ## @rxq_number
	.comm	_txq_number,4,2                 ## @txq_number
	.no_dead_strip	_mvneta_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvneta_poll
_mvneta_poll:                           ; @mvneta_poll
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x1
	mov	x21, x0
	ldr	w0, [x0]
	bl	_netdev_priv
	mov	x19, x0
	ldr	w0, [x0, #40]
	bl	_this_cpu_ptr
	mov	x20, x0
	ldr	x0, [x19, #16]
	bl	_netif_running
	cbz	w0, LBB0_9
; %bb.1:
Lloh0:
	adrp	x8, _MVNETA_INTR_NEW_CAUSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MVNETA_INTR_NEW_CAUSE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mvreg_read
	mov	x23, x0
Lloh3:
	adrp	x25, _MVNETA_MISCINTR_INTR_MASK@GOTPAGE
Lloh4:
	ldr	x25, [x25, _MVNETA_MISCINTR_INTR_MASK@GOTPAGEOFF]
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.2:
Lloh5:
	adrp	x26, _MVNETA_INTR_MISC_CAUSE@GOTPAGE
Lloh6:
	ldr	x26, [x26, _MVNETA_INTR_MISC_CAUSE@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x19
	bl	_mvreg_read
	mov	x24, x0
	ldr	w1, [x26]
	mov	x0, x19
	mov	w2, #0
	bl	_mvreg_write
Lloh7:
	adrp	x8, _MVNETA_CAUSE_PHY_STATUS_CHANGE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MVNETA_CAUSE_PHY_STATUS_CHANGE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _MVNETA_CAUSE_LINK_CHANGE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MVNETA_CAUSE_LINK_CHANGE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w24
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_mvneta_link_change
LBB0_4:
Lloh13:
	adrp	x24, _MVNETA_TX_INTR_MASK_ALL@GOTPAGE
Lloh14:
	ldr	x24, [x24, _MVNETA_TX_INTR_MASK_ALL@GOTPAGEOFF]
	ldr	w8, [x24]
	ands	w1, w8, w23
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_mvneta_tx_done_gbe
	ldr	w8, [x24]
	bic	w23, w23, w8
LBB0_6:
	ubfx	w0, w23, #8, #8
	bl	_fls
	ldr	x8, [x19, #8]
	cmp	x8, #0
	csel	x8, x20, x19, eq
	ldr	w8, [x8]
	orr	w24, w8, w23
	cbz	w0, LBB0_10
; %bb.7:
	sub	w8, w0, #1
	ldp	x10, x9, [x19, #24]
	add	x3, x10, w8, sxtw #2
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	cbz	x9, LBB0_13
; %bb.8:
	bl	_mvneta_rx_hwbm
	b	LBB0_14
LBB0_9:
	mov	x0, x21
	bl	_napi_complete
	mov	w23, #0
	b	LBB0_20
LBB0_10:
	mov	w23, #0
	cmp	w23, w22
	b.lt	LBB0_15
LBB0_11:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_19
LBB0_12:
	str	w24, [x19]
	b	LBB0_20
LBB0_13:
	bl	_mvneta_rx_swbm
LBB0_14:
	mov	x23, x0
	cmp	w23, w22
	b.ge	LBB0_11
LBB0_15:
	mov	x0, x21
	mov	x1, x23
	bl	_napi_complete_done
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_17
; %bb.16:
	bl	_local_irq_save
Lloh15:
	adrp	x8, _MVNETA_INTR_NEW_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MVNETA_INTR_NEW_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w21, [x8]
Lloh18:
	adrp	x8, _rxq_number@GOTPAGE
Lloh19:
	ldr	x8, [x8, _rxq_number@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_MVNETA_RX_INTR_MASK
	mov	x22, x0
Lloh21:
	adrp	x8, _txq_number@GOTPAGE
Lloh22:
	ldr	x8, [x8, _txq_number@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_MVNETA_TX_INTR_MASK
	orr	w8, w0, w22
	ldr	w9, [x25]
	orr	w2, w8, w9
	mov	x0, x19
	mov	x1, x21
	bl	_mvreg_write
	bl	_local_irq_restore
	b	LBB0_18
LBB0_17:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	mov	w1, #0
	bl	_enable_percpu_irq
LBB0_18:
	mov	w24, #0
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_12
LBB0_19:
	str	w24, [x20]
LBB0_20:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MVNETA_INTR_NEW_CAUSE,4,2      ; @MVNETA_INTR_NEW_CAUSE
	.comm	_MVNETA_MISCINTR_INTR_MASK,4,2  ; @MVNETA_MISCINTR_INTR_MASK
	.comm	_MVNETA_INTR_MISC_CAUSE,4,2     ; @MVNETA_INTR_MISC_CAUSE
	.comm	_MVNETA_CAUSE_PHY_STATUS_CHANGE,4,2 ; @MVNETA_CAUSE_PHY_STATUS_CHANGE
	.comm	_MVNETA_CAUSE_LINK_CHANGE,4,2   ; @MVNETA_CAUSE_LINK_CHANGE
	.comm	_MVNETA_TX_INTR_MASK_ALL,4,2    ; @MVNETA_TX_INTR_MASK_ALL
	.comm	_MVNETA_INTR_NEW_MASK,4,2       ; @MVNETA_INTR_NEW_MASK
	.comm	_rxq_number,4,2                 ; @rxq_number
	.comm	_txq_number,4,2                 ; @txq_number
	.no_dead_strip	_mvneta_poll
.subsections_via_symbols
