	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ei_receive
_ei_receive:                            ## @ei_receive
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r14
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %r15
	leaq	-1(%r14), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	$9, -60(%rbp)                   ## 4-byte Folded Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	movb	%al, 2(%r15)
	decb	%al
	movq	_EN0_BOUNDARY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	%r14, %rsi
	movzbl	%al, %edi
	callq	_outb_p
	decl	-60(%rbp)                       ## 4-byte Folded Spill
	je	LBB0_21
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_EN1_CURPAG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	-88(%rbp), %rdi                 ## 8-byte Folded Reload
	callq	_inb_p
	movl	%eax, %r12d
	movq	_EN0_BOUNDARY@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r14, %rdi
	callq	_inb_p
	movl	%eax, %ebx
	incb	%bl
	cmpb	(%r15), %bl
	jb	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movzbl	1(%r15), %ebx
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_netif_msg_rx_err
	movzbl	%bl, %r13d
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movzbl	2(%r15), %eax
	cmpb	%al, %bl
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	testb	%bl, %bl
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movzbl	%r12b, %ecx
	cmpl	$255, %ecx
	je	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movzbl	%al, %ecx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	callq	_netdev_err
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpb	%r12b, %bl
	je	LBB0_21
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	leaq	-56(%rbp), %rsi
	movl	%r13d, %edx
	callq	_ei_get_8390_hdr
	movl	-56(%rbp), %r8d
	movl	-52(%rbp), %r12d
	leal	-1531(%r8), %eax
	cmpl	$-1460, %eax                    ## imm = 0xFA4C
	ja	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_rx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %eax
	movl	%eax, (%rsp)
	movq	%r15, %rdi
	movq	%rbx, %rdx
	leaq	L_.str.1(%rip), %rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	%r12d, %r9d
	xorl	%eax, %eax
	callq	_netif_err
	incl	16(%rbx)
	incl	32(%rbx)
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%r12d, %eax
	andl	$15, %eax
	movq	_ENRSR_RXOK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	leal	-12(%r8), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	addl	$-10, %r8d
	movq	%rbx, %rdi
	movl	%r8d, %esi
	callq	_netdev_alloc_skb
	movq	%rbx, %r14
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rbx
	shll	$8, %r13d
	movq	%rax, %rdi
	movl	$2, %esi
	callq	_skb_reserve
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_skb_put
	orl	$12, %r13d
	movzwl	%r13w, %ecx
	movq	%r14, %rdi
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %esi
	movq	%rbx, %rdx
	callq	_ei_block_input
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_eth_type_trans
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_netif_rx
	incl	24(%r14)
	addl	%r13d, 8(%r14)
	movq	_ENRSR_PHY@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	movq	%r14, %rbx
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	incl	20(%rbx)
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_rx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %r9d
	movl	%r8d, (%rsp)
	movq	%r15, %rdi
	movq	%rbx, %rdx
	leaq	L_.str.3(%rip), %rcx
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_netif_err
	incl	16(%rbx)
	movq	_ENRSR_FO@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	incl	12(%rbx)
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-48(%rbp), %eax
	movzbl	%al, %edx
	movzbl	(%r15), %ecx
	cmpl	%ecx, %edx
	jb	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_netdev_info
	movzbl	1(%r15), %eax
	jmp	LBB0_20
LBB0_15:
	movq	_rx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rcx
	movq	%r15, %rdi
	movq	%r14, %rdx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_netif_err
	incl	28(%r14)
LBB0_21:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EN1_CURPAG,8,3                 ## @EN1_CURPAG
	.comm	_EN0_BOUNDARY,8,3               ## @EN0_BOUNDARY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mismatched read page pointers %2x vs %2x\n"

	.comm	_rx_err,4,2                     ## @rx_err
L_.str.1:                               ## @.str.1
	.asciz	"bogus packet size: %d, status=%#2x nxpg=%#2x\n"

	.comm	_ENRSR_RXOK,4,2                 ## @ENRSR_RXOK
L_.str.2:                               ## @.str.2
	.asciz	"Couldn't allocate a sk_buff of size %d\n"

	.comm	_ENRSR_PHY,4,2                  ## @ENRSR_PHY
L_.str.3:                               ## @.str.3
	.asciz	"bogus packet: status=%#2x nxpg=%#2x size=%d\n"

	.comm	_ENRSR_FO,4,2                   ## @ENRSR_FO
L_.str.4:                               ## @.str.4
	.asciz	"next frame inconsistency, %#2x\n"

	.no_dead_strip	_ei_receive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ei_receive
_ei_receive:                            ; @ei_receive
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x0
	ldr	x27, [x0]
	bl	_netdev_priv
	mov	x20, x0
	sub	x24, x27, #1
	mov	w23, #9
Lloh0:
	adrp	x26, _EN1_CURPAG@GOTPAGE
Lloh1:
	ldr	x26, [x26, _EN1_CURPAG@GOTPAGEOFF]
Lloh2:
	adrp	x21, _EN0_BOUNDARY@GOTPAGE
Lloh3:
	ldr	x21, [x21, _EN0_BOUNDARY@GOTPAGEOFF]
Lloh4:
	adrp	x28, _rx_err@GOTPAGE
Lloh5:
	ldr	x28, [x28, _rx_err@GOTPAGEOFF]
	str	x27, [sp, #24]                  ; 8-byte Folded Spill
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	strb	w2, [x20, #2]
	sub	w8, w2, #1
	ldr	x9, [x21]
	add	x1, x9, x27
	and	w0, w8, #0xff
	bl	_outb_p
	subs	w23, w23, #1
	b.eq	LBB0_21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	add	x0, x24, x8
	bl	_inb_p
	mov	x25, x0
	ldr	x8, [x21]
	add	x0, x8, x27
	bl	_inb_p
	add	w22, w0, #1
	ldrb	w8, [x20]
	cmp	w8, w22, uxtb
	b.hi	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w22, [x20, #1]
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_netif_msg_rx_err
	cbz	x0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w3, [x20, #2]
	cmp	w3, w22, uxtb
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	tst	w22, #0xff
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	and	w8, w25, #0xff
	cmp	w8, #255
	b.eq	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	and	w2, w22, #0xff
	mov	x0, x19
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	and	w2, w22, #0xff
	cmp	w2, w25, uxtb
	b.eq	LBB0_21
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	add	x1, sp, #32
	mov	x0, x19
	bl	_ei_get_8390_hdr
	ldp	w4, w25, [sp, #32]
	sub	w8, w4, #1531
	cmn	w8, #1460
	b.hi	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x28]
	ldr	w8, [sp, #40]
	stp	x25, x8, [sp]
	mov	x0, x20
	mov	x2, x19
Lloh8:
	adrp	x3, l_.str.1@PAGE
Lloh9:
	add	x3, x3, l_.str.1@PAGEOFF
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_netif_err
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	ldr	w8, [x19, #32]
	add	w8, w8, #1
	str	w8, [x19, #32]
	b	LBB0_18
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	and	w8, w25, #0xf
Lloh10:
	adrp	x9, _ENRSR_RXOK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ENRSR_RXOK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x28, x24
	mov	x24, x21
	mov	x21, x26
	sub	w26, w4, #12
	sub	w1, w4, #10
	mov	x0, x19
	bl	_netdev_alloc_skb
	cbz	x0, LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x27, x0
	lsl	w22, w22, #8
	mov	w1, #2
	bl	_skb_reserve
	mov	x0, x27
	mov	x1, x26
	bl	_skb_put
	orr	w8, w22, #0xc
	and	w3, w8, #0xffff
	mov	x0, x19
	mov	x1, x26
	mov	x2, x27
	bl	_ei_block_input
	mov	x0, x27
	mov	x1, x19
	bl	_eth_type_trans
	str	w0, [x27]
	mov	x0, x27
	bl	_netif_rx
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
	ldr	w8, [x19, #8]
	add	w8, w8, w26
	str	w8, [x19, #8]
Lloh13:
	adrp	x8, _ENRSR_PHY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENRSR_PHY@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w25
	mov	x26, x21
	mov	x21, x24
	mov	x24, x28
	ldr	x27, [sp, #24]                  ; 8-byte Folded Reload
Lloh16:
	adrp	x28, _rx_err@GOTPAGE
Lloh17:
	ldr	x28, [x28, _rx_err@GOTPAGEOFF]
	b.eq	LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x28]
	ldr	w8, [sp, #40]
	stp	x8, x4, [sp]
	mov	x0, x20
	mov	x2, x19
Lloh18:
	adrp	x3, l_.str.3@PAGE
Lloh19:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x4, x25
	bl	_netif_err
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
Lloh20:
	adrp	x8, _ENRSR_FO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENRSR_FO@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
LBB0_18:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w2, [sp, #40]
	ldrb	w8, [x20]
	cmp	w2, w8
	b.lo	LBB0_1
; %bb.19:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_netdev_info
	ldrb	w2, [x20, #1]
	b	LBB0_1
LBB0_20:
Lloh25:
	adrp	x8, _rx_err@GOTPAGE
Lloh26:
	ldr	x8, [x8, _rx_err@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x3, l_.str.2@PAGE
Lloh29:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	mov	x4, x26
	bl	_netif_err
	ldr	w8, [x19, #28]
	add	w8, w8, #1
	str	w8, [x19, #28]
LBB0_21:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_EN1_CURPAG,8,3                 ; @EN1_CURPAG
	.comm	_EN0_BOUNDARY,8,3               ; @EN0_BOUNDARY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mismatched read page pointers %2x vs %2x\n"

	.comm	_rx_err,4,2                     ; @rx_err
l_.str.1:                               ; @.str.1
	.asciz	"bogus packet size: %d, status=%#2x nxpg=%#2x\n"

	.comm	_ENRSR_RXOK,4,2                 ; @ENRSR_RXOK
l_.str.2:                               ; @.str.2
	.asciz	"Couldn't allocate a sk_buff of size %d\n"

	.comm	_ENRSR_PHY,4,2                  ; @ENRSR_PHY
l_.str.3:                               ; @.str.3
	.asciz	"bogus packet: status=%#2x nxpg=%#2x size=%d\n"

	.comm	_ENRSR_FO,4,2                   ; @ENRSR_FO
l_.str.4:                               ; @.str.4
	.asciz	"next frame inconsistency, %#2x\n"

	.no_dead_strip	_ei_receive
.subsections_via_symbols
