	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_eth_emac_interrupt
_sh_eth_emac_interrupt:                 ## @sh_eth_emac_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_ECSR@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_sh_eth_read
	movl	%eax, %r12d
	movq	_ECSIPR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_sh_eth_read
	movl	%eax, %ebx
	andl	%r12d, %ebx
	movl	(%r13), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_sh_eth_write
	movq	_ECSR_ICD@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	incl	(%r15)
LBB0_2:
	movq	_ECSR_MPD@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	movq	24(%r14), %rdi
	xorl	%esi, %esi
	callq	_pm_wakeup_event
LBB0_4:
	movq	_ECSR_LCHNG@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_9
## %bb.5:
	movq	16(%r14), %rax
	cmpq	$0, (%rax)
	jne	LBB0_9
## %bb.6:
	cmpq	$0, 8(%r14)
	je	LBB0_7
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_PSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_sh_eth_read
	xorl	%ecx, %ecx
	cmpq	(%r14), %rcx
	sbbl	%ecx, %ecx
	xorl	%eax, %ecx
	movq	_PHY_ST_LINK@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_10
## %bb.8:
	movq	_EESIPR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_EESIPR_ECIIP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_sh_eth_modify
	movl	(%r13), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_sh_eth_modify
	movl	(%r14), %esi
	movl	(%rbx), %ecx
	movq	%r15, %rdi
	movl	%ecx, %edx
	callq	_sh_eth_modify
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sh_eth_rcv_snd_enable          ## TAILCALL
LBB0_10:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sh_eth_rcv_snd_disable         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ECSR,4,2                       ## @ECSR
	.comm	_ECSIPR,4,2                     ## @ECSIPR
	.comm	_ECSR_ICD,4,2                   ## @ECSR_ICD
	.comm	_ECSR_MPD,4,2                   ## @ECSR_MPD
	.comm	_ECSR_LCHNG,4,2                 ## @ECSR_LCHNG
	.comm	_PSR,4,2                        ## @PSR
	.comm	_PHY_ST_LINK,4,2                ## @PHY_ST_LINK
	.comm	_EESIPR,4,2                     ## @EESIPR
	.comm	_EESIPR_ECIIP,4,2               ## @EESIPR_ECIIP
	.no_dead_strip	_sh_eth_emac_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_emac_interrupt
_sh_eth_emac_interrupt:                 ; @sh_eth_emac_interrupt
	.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	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x22, _ECSR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ECSR@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_sh_eth_read
	mov	x21, x0
Lloh2:
	adrp	x8, _ECSIPR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ECSIPR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sh_eth_read
	and	w21, w0, w21
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x21
	bl	_sh_eth_write
Lloh5:
	adrp	x8, _ECSR_ICD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ECSR_ICD@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_2:
Lloh8:
	adrp	x8, _ECSR_MPD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ECSR_MPD@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:
	ldr	x0, [x20, #24]
	mov	w1, #0
	bl	_pm_wakeup_event
LBB0_4:
Lloh11:
	adrp	x8, _ECSR_LCHNG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ECSR_LCHNG@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_7
; %bb.5:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	cbnz	x8, LBB0_7
; %bb.6:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_8
LBB0_7:
	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
LBB0_8:
Lloh14:
	adrp	x8, _PSR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PSR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sh_eth_read
	ldr	x8, [x20]
	cmp	x8, #0
	cinv	w8, w0, ne
Lloh17:
	adrp	x9, _PHY_ST_LINK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PHY_ST_LINK@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w8, w9
	b.eq	LBB0_10
; %bb.9:
Lloh20:
	adrp	x20, _EESIPR@GOTPAGE
Lloh21:
	ldr	x20, [x20, _EESIPR@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh22:
	adrp	x21, _EESIPR_ECIIP@GOTPAGE
Lloh23:
	ldr	x21, [x21, _EESIPR_ECIIP@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	mov	w3, #0
	bl	_sh_eth_modify
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_sh_eth_modify
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	mov	x3, x2
	bl	_sh_eth_modify
	mov	x0, x19
	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
	b	_sh_eth_rcv_snd_enable
LBB0_10:
	mov	x0, x19
	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
	b	_sh_eth_rcv_snd_disable
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ECSR,4,2                       ; @ECSR
	.comm	_ECSIPR,4,2                     ; @ECSIPR
	.comm	_ECSR_ICD,4,2                   ; @ECSR_ICD
	.comm	_ECSR_MPD,4,2                   ; @ECSR_MPD
	.comm	_ECSR_LCHNG,4,2                 ; @ECSR_LCHNG
	.comm	_PSR,4,2                        ; @PSR
	.comm	_PHY_ST_LINK,4,2                ; @PHY_ST_LINK
	.comm	_EESIPR,4,2                     ; @EESIPR
	.comm	_EESIPR_ECIIP,4,2               ; @EESIPR_ECIIP
	.no_dead_strip	_sh_eth_emac_interrupt
.subsections_via_symbols
