	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ei_rx_overrun
_ei_rx_overrun:                         ## @ei_rx_overrun
	.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
	callq	_PRIV
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rbx
	movq	%r14, %rdi
	callq	_netdev_priv
	movq	%rax, %r13
	movq	_E8390_CMD@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	%rbx, %rdi
	callq	_inb_p
	movl	%eax, %r12d
	movq	_E8390_NODMA@GOTPCREL(%rip), %rax
	movq	_E8390_PAGE0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	addl	(%rax), %edi
	movq	_E8390_TRANS@GOTPCREL(%rip), %rcx
	movq	_E8390_STOP@GOTPCREL(%rip), %rax
	addl	(%rax), %edi
	movq	(%r15), %rsi
	addq	%rbx, %rsi
	andb	(%rcx), %r12b
	callq	_outb_p
	movq	_rx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movq	%r13, %rdi
	movq	%r14, %rdx
	callq	_netif_dbg
	incl	8(%r14)
	movl	$2, %edi
	callq	_mdelay
	movq	_EN0_RCNTLO@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	xorl	%edi, %edi
	callq	_outb_p
	movq	_EN0_RCNTHI@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	xorl	%edi, %edi
	callq	_outb_p
	testb	%r12b, %r12b
	je	LBB0_1
## %bb.2:
	movq	_EN0_ISR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_inb_p
	movq	_ENISR_TX@GOTPCREL(%rip), %rcx
	movq	_ENISR_TX_ERR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	addl	(%rcx), %edx
	testb	%al, %dl
	setne	%r12b
	jmp	LBB0_3
LBB0_1:
	movb	$1, %r12b
LBB0_3:
	movq	_E8390_TXOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EN0_TXCR@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	addq	%rbx, %rsi
	callq	_outb_p
	movq	_E8390_PAGE0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_E8390_NODMA@GOTPCREL(%rip), %rax
	addl	(%rax), %edi
	movq	_E8390_START@GOTPCREL(%rip), %rax
	addl	(%rax), %edi
	movq	(%r15), %rsi
	addq	%rbx, %rsi
	callq	_outb_p
	movq	%r14, %rdi
	callq	_ei_receive
	movq	_E8390_TXCONFIG@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	(%r13), %rsi
	addq	%rbx, %rsi
	callq	_outb_p
	testb	%r12b, %r12b
	je	LBB0_5
## %bb.4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_E8390_PAGE0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_E8390_NODMA@GOTPCREL(%rip), %rax
	addl	(%rax), %edi
	movq	_E8390_START@GOTPCREL(%rip), %rax
	addl	(%rax), %edi
	movq	_E8390_TRANS@GOTPCREL(%rip), %rax
	addl	(%rax), %edi
	addq	(%r15), %rbx
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_outb_p                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_E8390_CMD,8,3                  ## @E8390_CMD
	.comm	_E8390_TRANS,4,2                ## @E8390_TRANS
	.comm	_E8390_NODMA,4,2                ## @E8390_NODMA
	.comm	_E8390_PAGE0,4,2                ## @E8390_PAGE0
	.comm	_E8390_STOP,4,2                 ## @E8390_STOP
	.comm	_rx_err,4,2                     ## @rx_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Receiver overrun\n"

	.comm	_EN0_RCNTLO,8,3                 ## @EN0_RCNTLO
	.comm	_EN0_RCNTHI,8,3                 ## @EN0_RCNTHI
	.comm	_EN0_ISR,8,3                    ## @EN0_ISR
	.comm	_ENISR_TX,4,2                   ## @ENISR_TX
	.comm	_ENISR_TX_ERR,4,2               ## @ENISR_TX_ERR
	.comm	_E8390_TXOFF,4,2                ## @E8390_TXOFF
	.comm	_EN0_TXCR,8,3                   ## @EN0_TXCR
	.comm	_E8390_START,4,2                ## @E8390_START
	.comm	_E8390_TXCONFIG,4,2             ## @E8390_TXCONFIG
	.no_dead_strip	_ei_rx_overrun
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ei_rx_overrun
_ei_rx_overrun:                         ; @ei_rx_overrun
	.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	x20, x0
	bl	_PRIV
	mov	x19, x0
	ldr	x22, [x20]
	mov	x0, x20
	bl	_netdev_priv
	mov	x21, x0
Lloh0:
	adrp	x23, _E8390_CMD@GOTPAGE
Lloh1:
	ldr	x23, [x23, _E8390_CMD@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x0, x8, x22
	bl	_inb_p
Lloh2:
	adrp	x24, _E8390_TRANS@GOTPAGE
Lloh3:
	ldr	x24, [x24, _E8390_TRANS@GOTPAGEOFF]
	ldrb	w8, [x24]
Lloh4:
	adrp	x25, _E8390_NODMA@GOTPAGE
Lloh5:
	ldr	x25, [x25, _E8390_NODMA@GOTPAGEOFF]
	and	w27, w0, w8
	ldr	w8, [x25]
Lloh6:
	adrp	x26, _E8390_PAGE0@GOTPAGE
Lloh7:
	ldr	x26, [x26, _E8390_PAGE0@GOTPAGEOFF]
Lloh8:
	adrp	x9, _E8390_STOP@GOTPAGE
Lloh9:
	ldr	x9, [x9, _E8390_STOP@GOTPAGEOFF]
	ldr	w10, [x26]
Lloh10:
	ldr	w9, [x9]
	add	w8, w10, w8
	add	w0, w8, w9
	ldr	x8, [x23]
	add	x1, x8, x22
	bl	_outb_p
Lloh11:
	adrp	x8, _rx_err@GOTPAGE
Lloh12:
	ldr	x8, [x8, _rx_err@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x3, l_.str@PAGE
Lloh15:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_netif_dbg
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	mov	w0, #2
	bl	_mdelay
Lloh16:
	adrp	x8, _EN0_RCNTLO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EN0_RCNTLO@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	add	x1, x8, x22
	mov	w0, #0
	bl	_outb_p
Lloh19:
	adrp	x8, _EN0_RCNTHI@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EN0_RCNTHI@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	add	x1, x8, x22
	mov	w0, #0
	bl	_outb_p
	cbz	w27, LBB0_2
; %bb.1:
Lloh22:
	adrp	x8, _EN0_ISR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EN0_ISR@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	add	x0, x8, x22
	bl	_inb_p
Lloh25:
	adrp	x8, _ENISR_TX@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENISR_TX@GOTPAGEOFF]
Lloh27:
	adrp	x9, _ENISR_TX_ERR@GOTPAGE
Lloh28:
	ldr	x9, [x9, _ENISR_TX_ERR@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	ldr	w9, [x9]
	add	w8, w9, w8
	and	w8, w8, w0
	tst	w8, #0xff
	cset	w21, ne
	b	LBB0_3
LBB0_2:
	mov	w21, #1
LBB0_3:
Lloh31:
	adrp	x8, _E8390_TXOFF@GOTPAGE
Lloh32:
	ldr	x8, [x8, _E8390_TXOFF@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x28, _EN0_TXCR@GOTPAGE
Lloh35:
	ldr	x28, [x28, _EN0_TXCR@GOTPAGEOFF]
	ldr	x8, [x28]
	add	x1, x8, x22
	bl	_outb_p
	ldr	w8, [x25]
Lloh36:
	adrp	x27, _E8390_START@GOTPAGE
Lloh37:
	ldr	x27, [x27, _E8390_START@GOTPAGEOFF]
	ldr	w9, [x26]
	ldr	w10, [x27]
	add	w8, w9, w8
	add	w0, w8, w10
	ldr	x8, [x23]
	add	x1, x8, x22
	bl	_outb_p
	mov	x0, x20
	bl	_ei_receive
Lloh38:
	adrp	x8, _E8390_TXCONFIG@GOTPAGE
Lloh39:
	ldr	x8, [x8, _E8390_TXCONFIG@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w0, w9, w8
	ldr	x8, [x28]
	add	x1, x8, x22
	bl	_outb_p
	tbz	w21, #0, LBB0_5
; %bb.4:
	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
LBB0_5:
	ldr	w8, [x25]
	ldr	w9, [x26]
	ldr	w10, [x27]
	add	w8, w9, w8
	add	w8, w8, w10
	ldr	w9, [x24]
	add	w0, w8, w9
	ldr	x8, [x23]
	add	x1, x8, x22
	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
	b	_outb_p
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh29
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_E8390_CMD,8,3                  ; @E8390_CMD
	.comm	_E8390_TRANS,4,2                ; @E8390_TRANS
	.comm	_E8390_NODMA,4,2                ; @E8390_NODMA
	.comm	_E8390_PAGE0,4,2                ; @E8390_PAGE0
	.comm	_E8390_STOP,4,2                 ; @E8390_STOP
	.comm	_rx_err,4,2                     ; @rx_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Receiver overrun\n"

	.comm	_EN0_RCNTLO,8,3                 ; @EN0_RCNTLO
	.comm	_EN0_RCNTHI,8,3                 ; @EN0_RCNTHI
	.comm	_EN0_ISR,8,3                    ; @EN0_ISR
	.comm	_ENISR_TX,4,2                   ; @ENISR_TX
	.comm	_ENISR_TX_ERR,4,2               ; @ENISR_TX_ERR
	.comm	_E8390_TXOFF,4,2                ; @E8390_TXOFF
	.comm	_EN0_TXCR,8,3                   ; @EN0_TXCR
	.comm	_E8390_START,4,2                ; @E8390_START
	.comm	_E8390_TXCONFIG,4,2             ; @E8390_TXCONFIG
	.no_dead_strip	_ei_rx_overrun
.subsections_via_symbols
