	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv643xx_eth_collect_events
_mv643xx_eth_collect_events:            ## @mv643xx_eth_collect_events
	.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
	movq	%rdi, %r14
	movq	_INT_CAUSE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_rdlp
	movl	%eax, %ebx
	andl	(%r14), %ebx
	je	LBB0_1
## %bb.2:
	movq	_INT_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	testl	%ebx, %r15d
	je	LBB0_3
## %bb.4:
	notl	%r15d
	movq	_INT_CAUSE_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rdlp
	andl	%r15d, %ebx
	jne	LBB0_5
	jmp	LBB0_6
LBB0_1:
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	movl	(%r12), %esi
	movl	%ebx, %edx
	notl	%edx
	movq	%r14, %rdi
	movl	%eax, %r12d
	callq	_wrlp
	movq	_INT_TX_END@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	andl	%ebx, %r15d
	sarl	$19, %r15d
	movq	_TXQ_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rdlp
	notl	%eax
	orl	$-256, %eax
	andl	%r15d, %eax
	orl	%eax, 4(%r14)
	movq	_INT_RX@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movl	%r12d, %eax
	sarl	$2, %ebx
	orl	%ebx, 8(%r14)
LBB0_6:
	movq	_INT_EXT_LINK_PHY@GOTPCREL(%rip), %r15
	movq	_INT_EXT_TX@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	orl	(%r15), %ebx
	movl	$1, %r12d
	andl	%eax, %ebx
	je	LBB0_10
## %bb.7:
	movq	_INT_CAUSE_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	notl	%edx
	movq	%r14, %rdi
	callq	_wrlp
	testl	%ebx, (%r15)
	je	LBB0_9
## %bb.8:
	movl	$1, 12(%r14)
LBB0_9:
	andl	(%r13), %ebx
	orl	%ebx, 16(%r14)
LBB0_10:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_CAUSE,4,2                  ## @INT_CAUSE
	.comm	_INT_EXT,4,2                    ## @INT_EXT
	.comm	_INT_CAUSE_EXT,4,2              ## @INT_CAUSE_EXT
	.comm	_INT_TX_END,4,2                 ## @INT_TX_END
	.comm	_TXQ_COMMAND,4,2                ## @TXQ_COMMAND
	.comm	_INT_RX,4,2                     ## @INT_RX
	.comm	_INT_EXT_LINK_PHY,4,2           ## @INT_EXT_LINK_PHY
	.comm	_INT_EXT_TX,4,2                 ## @INT_EXT_TX
	.no_dead_strip	_mv643xx_eth_collect_events
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv643xx_eth_collect_events
_mv643xx_eth_collect_events:            ; @mv643xx_eth_collect_events
	.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	x19, x0
Lloh0:
	adrp	x23, _INT_CAUSE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _INT_CAUSE@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_rdlp
	ldr	w8, [x19]
	ands	w22, w8, w0
	b.eq	LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _INT_EXT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INT_EXT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x21, _INT_CAUSE_EXT@GOTPAGE
Lloh6:
	ldr	x21, [x21, _INT_CAUSE_EXT@GOTPAGEOFF]
	tst	w8, w22
	b.eq	LBB0_4
; %bb.2:
	bic	w22, w22, w8
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rdlp
	mov	x20, x0
	cbnz	w22, LBB0_5
	b	LBB0_6
LBB0_3:
	mov	w0, #0
	b	LBB0_11
LBB0_4:
	mov	w20, #0
LBB0_5:
	ldr	w1, [x23]
	mvn	w2, w22
	mov	x0, x19
	bl	_wrlp
Lloh7:
	adrp	x8, _INT_TX_END@GOTPAGE
Lloh8:
	ldr	x8, [x8, _INT_TX_END@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	and	w23, w8, w22
Lloh10:
	adrp	x8, _TXQ_COMMAND@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TXQ_COMMAND@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rdlp
	mvn	w8, w0
	orr	w8, w8, #0xffffff00
	and	w8, w8, w23, asr #19
Lloh13:
	adrp	x9, _INT_RX@GOTPAGE
Lloh14:
	ldr	x9, [x9, _INT_RX@GOTPAGEOFF]
	ldp	w10, w11, [x19, #4]
	orr	w8, w8, w10
Lloh15:
	ldr	w9, [x9]
	and	w9, w9, w22
	orr	w9, w11, w9, asr #2
	stp	w8, w9, [x19, #4]
LBB0_6:
Lloh16:
	adrp	x23, _INT_EXT_LINK_PHY@GOTPAGE
Lloh17:
	ldr	x23, [x23, _INT_EXT_LINK_PHY@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh18:
	adrp	x22, _INT_EXT_TX@GOTPAGE
Lloh19:
	ldr	x22, [x22, _INT_EXT_TX@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w9, w8
	ands	w20, w8, w20
	b.eq	LBB0_10
; %bb.7:
	ldr	w1, [x21]
	mvn	w2, w20
	mov	x0, x19
	bl	_wrlp
	ldr	w8, [x23]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.8:
	mov	w8, #1
	str	w8, [x19, #12]
LBB0_9:
	ldr	w8, [x22]
	and	w8, w8, w20
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
LBB0_10:
	mov	w0, #1
LBB0_11:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_CAUSE,4,2                  ; @INT_CAUSE
	.comm	_INT_EXT,4,2                    ; @INT_EXT
	.comm	_INT_CAUSE_EXT,4,2              ; @INT_CAUSE_EXT
	.comm	_INT_TX_END,4,2                 ; @INT_TX_END
	.comm	_TXQ_COMMAND,4,2                ; @TXQ_COMMAND
	.comm	_INT_RX,4,2                     ; @INT_RX
	.comm	_INT_EXT_LINK_PHY,4,2           ; @INT_EXT_LINK_PHY
	.comm	_INT_EXT_TX,4,2                 ; @INT_EXT_TX
	.no_dead_strip	_mv643xx_eth_collect_events
.subsections_via_symbols
