	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smc_eph_irq
_smc_eph_irq:                           ## @smc_eph_irq
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movl	(%rbx), %r15d
	xorl	%edi, %edi
	callq	_SMC_SELECT_BANK
	movq	_EPH@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r15, %rdi
	callq	_inw
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_netdev_dbg
	movq	_COUNTER@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r15, %rdi
	callq	_inw
	movl	%eax, %ecx
	andl	$15, %ecx
	addl	4(%rbx), %ecx
	shrl	$4, %eax
	andl	$15, %eax
	addl	%ecx, %eax
	movl	%eax, 4(%rbx)
	movq	_TCR@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	%r15, %rdi
	callq	_inw
	movq	_TCR_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	(%r14), %eax
	movq	(%rbx), %rsi
	addq	%r15, %rsi
	movl	%eax, %edi
	callq	_outw
	movl	$1, %edi
	callq	_SMC_SELECT_BANK
	movq	_CTL_AUTO_RELEASE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_CONTROL@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	%r15, %rsi
	callq	_outw
	movq	_CTL_TE_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	(%rbx), %edi
	movq	_CTL_CR_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	addq	(%r14), %r15
	movq	%r15, %rsi
	callq	_outw
	movl	$2, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SMC_SELECT_BANK                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EPH,8,3                        ## @EPH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Ethernet protocol handler interrupt, status %4.4x.\n"

	.comm	_COUNTER,8,3                    ## @COUNTER
	.comm	_TCR,8,3                        ## @TCR
	.comm	_TCR_ENABLE,4,2                 ## @TCR_ENABLE
	.comm	_CTL_AUTO_RELEASE,4,2           ## @CTL_AUTO_RELEASE
	.comm	_CONTROL,8,3                    ## @CONTROL
	.comm	_CTL_TE_ENABLE,4,2              ## @CTL_TE_ENABLE
	.comm	_CTL_CR_ENABLE,4,2              ## @CTL_CR_ENABLE
	.no_dead_strip	_smc_eph_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smc_eph_irq
_smc_eph_irq:                           ; @smc_eph_irq
	.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
	ldr	w21, [x19]
	mov	w0, #0
	bl	_SMC_SELECT_BANK
Lloh0:
	adrp	x8, _EPH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPH@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x0, x8, x21
	bl	_inw
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_dbg
Lloh5:
	adrp	x8, _COUNTER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _COUNTER@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	add	x0, x8, x21
	bl	_inw
	and	w8, w0, #0xf
	ldr	w9, [x19, #4]
	ubfx	w10, w0, #4, #4
	add	w8, w9, w8
	add	w8, w8, w10
	str	w8, [x19, #4]
Lloh8:
	adrp	x19, _TCR@GOTPAGE
Lloh9:
	ldr	x19, [x19, _TCR@GOTPAGEOFF]
	ldr	x8, [x19]
	add	x0, x8, x21
	bl	_inw
Lloh10:
	adrp	x8, _TCR_ENABLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TCR_ENABLE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	orr	w8, w8, w0
	ldr	w9, [x20]
	orr	w0, w8, w9
	ldr	x8, [x19]
	add	x1, x8, x21
	bl	_outw
	mov	w0, #1
	bl	_SMC_SELECT_BANK
Lloh13:
	adrp	x19, _CTL_AUTO_RELEASE@GOTPAGE
Lloh14:
	ldr	x19, [x19, _CTL_AUTO_RELEASE@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh15:
	adrp	x20, _CONTROL@GOTPAGE
Lloh16:
	ldr	x20, [x20, _CONTROL@GOTPAGEOFF]
	ldr	x8, [x20]
	add	x1, x8, x21
	bl	_outw
	ldr	w8, [x19]
Lloh17:
	adrp	x9, _CTL_TE_ENABLE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CTL_TE_ENABLE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh20:
	adrp	x9, _CTL_CR_ENABLE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CTL_CR_ENABLE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	x8, [x20]
	add	x1, x8, x21
	bl	_outw
	mov	w0, #2
	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	_SMC_SELECT_BANK
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EPH,8,3                        ; @EPH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Ethernet protocol handler interrupt, status %4.4x.\n"

	.comm	_COUNTER,8,3                    ; @COUNTER
	.comm	_TCR,8,3                        ; @TCR
	.comm	_TCR_ENABLE,4,2                 ; @TCR_ENABLE
	.comm	_CTL_AUTO_RELEASE,4,2           ; @CTL_AUTO_RELEASE
	.comm	_CONTROL,8,3                    ; @CONTROL
	.comm	_CTL_TE_ENABLE,4,2              ; @CTL_TE_ENABLE
	.comm	_CTL_CR_ENABLE,4,2              ; @CTL_CR_ENABLE
	.no_dead_strip	_smc_eph_irq
.subsections_via_symbols
