	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lsi64854_enet_intr
_lsi64854_enet_intr:                    ## @lsi64854_enet_intr
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_L64854_GCSR
	movl	%eax, %ebx
	movq	_E_INT_PEND@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	testl	%ebx, (%rax)
	setne	%al
	movq	_E_ERR_PEND@GOTPCREL(%rip), %rcx
	movq	_E_SLAVE_ERR@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	orl	(%rcx), %edx
	testl	%ebx, %edx
	je	LBB0_2
## %bb.1:
	movl	4(%r15), %edi
	movq	_EDMACSR_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_device_printf
	movq	_L64854_EN_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	movq	_E_INVALIDATE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	orl	(%r12), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_L64854_SCSR
	movl	$1, (%r15)
	movl	$-1, %r14d
	jmp	LBB0_15
LBB0_2:
	movb	%al, %r14b
	cmpl	$0, (%r15)
	je	LBB0_15
## %bb.3:
	movq	_E_DRAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	%ebx, %esi
	movq	%r15, %rdi
	callq	_L64854_SCSR
	movq	%r15, %rdi
	callq	_L64854_GCSR
	movq	_E_DRAINING@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	je	LBB0_14
## %bb.4:
	movl	$1, %edi
	callq	_DELAY
	movq	%r15, %rdi
	callq	_L64854_GCSR
	testl	%eax, (%rbx)
	je	LBB0_14
## %bb.5:
	movl	$1, %edi
	callq	_DELAY
	movq	%r15, %rdi
	callq	_L64854_GCSR
	testl	%eax, (%rbx)
	je	LBB0_14
## %bb.6:
	movl	$1, %edi
	callq	_DELAY
	movq	%r15, %rdi
	callq	_L64854_GCSR
	testl	%eax, (%rbx)
	je	LBB0_14
## %bb.7:
	movl	$1, %edi
	callq	_DELAY
	movq	%r15, %rdi
	callq	_L64854_GCSR
	testl	%eax, (%rbx)
	je	LBB0_14
## %bb.8:
	movl	$1, %edi
	callq	_DELAY
	movq	%r15, %rdi
	callq	_L64854_GCSR
	testl	%eax, (%rbx)
	je	LBB0_14
## %bb.9:
	movl	$1, %edi
	callq	_DELAY
	movq	%r15, %rdi
	callq	_L64854_GCSR
	testl	%eax, (%rbx)
	je	LBB0_14
## %bb.10:
	movl	$1, %edi
	callq	_DELAY
	movq	%r15, %rdi
	callq	_L64854_GCSR
	testl	%eax, (%rbx)
	je	LBB0_14
## %bb.11:
	movl	$1, %edi
	callq	_DELAY
	movq	%r15, %rdi
	callq	_L64854_GCSR
	testl	%eax, (%rbx)
	je	LBB0_14
## %bb.12:
	movl	$1, %edi
	callq	_DELAY
	movq	%r15, %rdi
	callq	_L64854_GCSR
	testl	%eax, (%rbx)
	je	LBB0_14
## %bb.13:
	movl	$1, %edi
	callq	_DELAY
LBB0_14:
	movl	$0, (%r15)
LBB0_15:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E_INT_PEND,4,2                 ## @E_INT_PEND
	.comm	_E_ERR_PEND,4,2                 ## @E_ERR_PEND
	.comm	_E_SLAVE_ERR,4,2                ## @E_SLAVE_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error: csr=%b\n"

	.comm	_EDMACSR_BITS,4,2               ## @EDMACSR_BITS
	.comm	_L64854_EN_DMA,4,2              ## @L64854_EN_DMA
	.comm	_E_INVALIDATE,4,2               ## @E_INVALIDATE
	.comm	_E_DRAIN,4,2                    ## @E_DRAIN
	.comm	_E_DRAINING,4,2                 ## @E_DRAINING
	.no_dead_strip	_lsi64854_enet_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lsi64854_enet_intr
_lsi64854_enet_intr:                    ; @lsi64854_enet_intr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_L64854_GCSR
	mov	x21, x0
Lloh0:
	adrp	x8, _E_INT_PEND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E_INT_PEND@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w20, ne
Lloh3:
	adrp	x8, _E_ERR_PEND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _E_ERR_PEND@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x22, _E_SLAVE_ERR@GOTPAGE
Lloh7:
	ldr	x22, [x22, _E_SLAVE_ERR@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19, #4]
Lloh8:
	adrp	x8, _EDMACSR_BITS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EDMACSR_BITS@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_device_printf
Lloh13:
	adrp	x8, _L64854_EN_DMA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _L64854_EN_DMA@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	bic	w8, w21, w8
Lloh16:
	adrp	x9, _E_INVALIDATE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _E_INVALIDATE@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	ldr	w10, [x22]
	orr	w8, w8, w9
	orr	w1, w8, w10
	mov	x0, x19
	bl	_L64854_SCSR
	mov	w8, #1
	str	w8, [x19]
	mov	w20, #-1
	b	LBB0_15
LBB0_2:
	ldr	w8, [x19]
	cbz	w8, LBB0_15
; %bb.3:
Lloh19:
	adrp	x8, _E_DRAIN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _E_DRAIN@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	orr	w1, w8, w21
	mov	x0, x19
	bl	_L64854_SCSR
	mov	x0, x19
	bl	_L64854_GCSR
Lloh22:
	adrp	x21, _E_DRAINING@GOTPAGE
Lloh23:
	ldr	x21, [x21, _E_DRAINING@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_14
; %bb.4:
	mov	w0, #1
	bl	_DELAY
	mov	x0, x19
	bl	_L64854_GCSR
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_14
; %bb.5:
	mov	w0, #1
	bl	_DELAY
	mov	x0, x19
	bl	_L64854_GCSR
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_14
; %bb.6:
	mov	w0, #1
	bl	_DELAY
	mov	x0, x19
	bl	_L64854_GCSR
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_14
; %bb.7:
	mov	w0, #1
	bl	_DELAY
	mov	x0, x19
	bl	_L64854_GCSR
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_14
; %bb.8:
	mov	w0, #1
	bl	_DELAY
	mov	x0, x19
	bl	_L64854_GCSR
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_14
; %bb.9:
	mov	w0, #1
	bl	_DELAY
	mov	x0, x19
	bl	_L64854_GCSR
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_14
; %bb.10:
	mov	w0, #1
	bl	_DELAY
	mov	x0, x19
	bl	_L64854_GCSR
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_14
; %bb.11:
	mov	w0, #1
	bl	_DELAY
	mov	x0, x19
	bl	_L64854_GCSR
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_14
; %bb.12:
	mov	w0, #1
	bl	_DELAY
	mov	x0, x19
	bl	_L64854_GCSR
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_14
; %bb.13:
	mov	w0, #1
	bl	_DELAY
LBB0_14:
	str	wzr, [x19]
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_E_INT_PEND,4,2                 ; @E_INT_PEND
	.comm	_E_ERR_PEND,4,2                 ; @E_ERR_PEND
	.comm	_E_SLAVE_ERR,4,2                ; @E_SLAVE_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error: csr=%b\n"

	.comm	_EDMACSR_BITS,4,2               ; @EDMACSR_BITS
	.comm	_L64854_EN_DMA,4,2              ; @L64854_EN_DMA
	.comm	_E_INVALIDATE,4,2               ; @E_INVALIDATE
	.comm	_E_DRAIN,4,2                    ; @E_DRAIN
	.comm	_E_DRAINING,4,2                 ; @E_DRAINING
	.no_dead_strip	_lsi64854_enet_intr
.subsections_via_symbols
