	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_eth_interrupt
_sh_eth_interrupt:                      ## @sh_eth_interrupt
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r13
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	16(%rax), %r12
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r13, %rdi
	callq	_spin_lock
	movq	_EESR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sh_eth_read
	movl	%eax, %r15d
	movq	_EESIPR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_sh_eth_read
	movq	_EESIPR_ECIIP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_EESR_RX_CHECK@GOTPCREL(%rip), %rcx
	movl	(%r12), %edx
	orl	(%rcx), %edx
	orl	%eax, %ebx
	movq	_EESR_ECI@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	andl	%r15d, %ebx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	orl	4(%r12), %edx
	testl	%ebx, %edx
	je	LBB0_13
## %bb.1:
	movl	%eax, %r12d
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%edi, %edi
	cmpl	$0, 8(%r15)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_EESIPR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_sh_eth_write
	jmp	LBB0_13
LBB0_3:
	movq	_EESR_RX_CHECK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.4:
	addq	$4, %r13
	movq	%r13, %rdi
	callq	_napi_schedule_prep
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_EESR_RX_CHECK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r12d
	movq	_EESIPR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_sh_eth_write
	movq	%r13, %rdi
	callq	___napi_schedule
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	movl	%r12d, %ecx
	callq	_netdev_warn
LBB0_7:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %esi
	andl	%ebx, %esi
	movq	_EESR@GOTPCREL(%rip), %r13
	je	LBB0_9
## %bb.8:
	movl	(%r13), %edx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_sh_eth_write
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_sh_eth_tx_free
	movq	%r13, %rdi
	movq	_EESR@GOTPCREL(%rip), %r13
	callq	_netif_wake_queue
LBB0_9:
	movq	_EESR_ECI@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_11
## %bb.10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_sh_eth_emac_interrupt
LBB0_11:
	movl	4(%r12), %esi
	andl	%ebx, %esi
	je	LBB0_13
## %bb.12:
	movl	(%r13), %edx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_sh_eth_write
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_sh_eth_error
LBB0_13:
	movq	%r15, %rdi
	callq	_spin_unlock
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_EESR,4,2                       ## @EESR
	.comm	_EESIPR,4,2                     ## @EESIPR
	.comm	_EESIPR_ECIIP,4,2               ## @EESIPR_ECIIP
	.comm	_EESR_RX_CHECK,4,2              ## @EESR_RX_CHECK
	.comm	_EESR_ECI,4,2                   ## @EESR_ECI
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ignoring interrupt, status 0x%08x, mask 0x%08x.\n"

	.no_dead_strip	_sh_eth_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sh_eth_interrupt
_sh_eth_interrupt:                      ; @sh_eth_interrupt
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x0, x1
	bl	_netdev_priv
	mov	x19, x0
	ldr	x25, [x0, #16]
Lloh0:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	bl	_spin_lock
Lloh3:
	adrp	x24, _EESR@GOTPAGE
Lloh4:
	ldr	x24, [x24, _EESR@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x21
	bl	_sh_eth_read
	mov	x22, x0
Lloh5:
	adrp	x28, _EESIPR@GOTPAGE
Lloh6:
	ldr	x28, [x28, _EESIPR@GOTPAGEOFF]
	ldr	w1, [x28]
	mov	x0, x21
	bl	_sh_eth_read
Lloh7:
	adrp	x8, _EESIPR_ECIIP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EESIPR_ECIIP@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w8, w8, w0
	and	w22, w8, w22
Lloh10:
	adrp	x26, _EESR_RX_CHECK@GOTPAGE
Lloh11:
	ldr	x26, [x26, _EESR_RX_CHECK@GOTPAGEOFF]
	ldr	w8, [x26]
	ldp	w9, w10, [x25]
	orr	w8, w9, w8
Lloh12:
	adrp	x27, _EESR_ECI@GOTPAGE
Lloh13:
	ldr	x27, [x27, _EESR_ECI@GOTPAGEOFF]
	ldr	w9, [x27]
	orr	w8, w8, w9
	orr	w8, w8, w10
	tst	w8, w22
	b.eq	LBB0_14
; %bb.1:
	mov	x23, x0
Lloh14:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
	ldr	w8, [x19, #8]
	cmp	w8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w2, [x28]
	mov	x0, x21
	mov	w1, #0
	bl	_sh_eth_write
	b	LBB0_14
LBB0_3:
	ldr	w8, [x26]
	tst	w8, w22
	b.eq	LBB0_8
; %bb.4:
	add	x24, x19, #4
	mov	x0, x24
	bl	_napi_schedule_prep
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w8, [x26]
	bic	w1, w23, w8
	ldr	w2, [x28]
	mov	x0, x21
	bl	_sh_eth_write
	mov	x0, x24
	bl	___napi_schedule
	b	LBB0_7
LBB0_6:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	mov	x3, x23
	bl	_netdev_warn
LBB0_7:
Lloh19:
	adrp	x24, _EESR@GOTPAGE
Lloh20:
	ldr	x24, [x24, _EESR@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x25]
	ands	w1, w8, w22
	b.eq	LBB0_10
; %bb.9:
	ldr	w2, [x24]
	mov	x0, x21
	bl	_sh_eth_write
	mov	x0, x21
	mov	w1, #1
	bl	_sh_eth_tx_free
	mov	x0, x21
	bl	_netif_wake_queue
LBB0_10:
	ldr	w8, [x27]
	tst	w8, w22
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x21
	bl	_sh_eth_emac_interrupt
LBB0_12:
	ldr	w8, [x25, #4]
	ands	w1, w8, w22
	b.eq	LBB0_14
; %bb.13:
	ldr	w2, [x24]
	mov	x0, x21
	bl	_sh_eth_write
	mov	x0, x21
	mov	x1, x22
	bl	_sh_eth_error
LBB0_14:
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_EESR,4,2                       ; @EESR
	.comm	_EESIPR,4,2                     ; @EESIPR
	.comm	_EESIPR_ECIIP,4,2               ; @EESIPR_ECIIP
	.comm	_EESR_RX_CHECK,4,2              ; @EESR_RX_CHECK
	.comm	_EESR_ECI,4,2                   ; @EESR_ECI
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ignoring interrupt, status 0x%08x, mask 0x%08x.\n"

	.no_dead_strip	_sh_eth_interrupt
.subsections_via_symbols
