	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ether3_rx
_ether3_rx:                             ## @ether3_rx
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_priv
	movl	(%rax), %r13d
	movq	%r12, %rdi
	callq	_ether3_ledon
	movl	$0, -76(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-72(%rbp), %ebx                 ## 4-byte Reload
	incl	%ebx
	movl	%r14d, %r13d
	movl	%r14d, %edi
	shrl	$8, %edi
	movq	_REG_RECVEND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ether3_outw
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	decl	%ebx
	je	LBB0_22
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_buffer_read@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_ether3_setbuffer
	movq	%r12, %rdi
	callq	_ether3_readword
	movl	%eax, %r14d
	movq	%r12, %r15
	movq	%r12, %rdi
	callq	_ether3_readword
	movl	%eax, %edx
	movq	_RXHDR_CHAINCONTINUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_RXSTAT_DONE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_RXHDR_RECEIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%eax, %ecx
	andl	%edx, %ecx
	cmpl	%eax, %ecx
	jne	LBB0_24
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r14d, %r14d
	je	LBB0_24
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	movl	%ebx, -72(%rbp)                 ## 4-byte Spill
	addl	$4, %r13d
	movl	%r14d, %edi
	callq	_ntohs
	movl	%eax, %r14d
	movq	_buffer_read@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rbx
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_ether3_setbuffer
	movq	%r15, %r12
	movq	%r15, %rdi
	leaq	-62(%rbp), %rsi
	movl	$12, %edx
	callq	_ether3_readbuffer
	movq	_RX_START@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r14d
	jb	LBB0_21
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_RX_END@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	cmpl	%ebx, %r14d
	jae	LBB0_21
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	32(%r12), %rcx
	movq	-56(%rbp), %rdx
	cmpq	%rdx, (%rcx)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	shrq	$32, %rdx
	cmpw	%dx, 16(%rcx)
	je	LBB0_1
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_RXSTAT_CRCERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_RXSTAT_OVERSIZE@GOTPCREL(%rip), %r15
	orl	(%r15), %ecx
	movq	_RXSTAT_DRIBBLEERROR@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_RXSTAT_SHORTPACKET@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	testl	%ecx, -68(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %r13d
	movl	%r14d, %edi
	shrl	$8, %edi
	movq	_REG_RECVEND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ether3_outw
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%r15)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	incl	24(%r12)
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_RXSTAT_CRCERROR@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	movl	-72(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	incl	20(%r12)
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_RXSTAT_DRIBBLEERROR@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	incl	16(%r12)
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_RXSTAT_SHORTPACKET@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	incl	12(%r12)
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	8(%r12)
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	subl	%eax, %ebx
	movq	%r12, %rdi
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
                                        ## kill: def $r14d killed $r14d def $r14
	subl	%r13d, %r14d
	movl	$0, %eax
	cmoval	%eax, %ebx
	leal	(%rbx,%r14), %esi
	addl	$2, %esi
	callq	_netdev_alloc_skb
	testq	%rax, %rax
	je	LBB0_25
## %bb.20:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r15
	addl	%ebx, %r14d
	movq	%rax, %rdi
	movl	$2, %esi
	callq	_skb_reserve
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_skb_put
	movq	%rax, %r13
	leaq	12(%rax), %rsi
	addl	$-12, %r14d
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_ether3_readbuffer
	movl	-68(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	shrl	$8, %edi
	movq	_REG_RECVEND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ether3_outw
	movzwl	-62(%rbp), %eax
	movw	%ax, (%r13)
	movq	-60(%rbp), %rax
	movq	%rax, 2(%r13)
	movq	-56(%rbp), %rax
	movq	%rax, 6(%r13)
	shrq	$32, %rax
	movw	%ax, 10(%r13)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_eth_type_trans
	movl	%eax, (%r15)
	movq	%r15, %rdi
	callq	_netif_rx
	incl	-76(%rbp)                       ## 4-byte Folded Spill
	movl	-72(%rbp), %ebx                 ## 4-byte Reload
	movl	%r14d, %r13d
	jmp	LBB0_2
LBB0_24:
	movq	%r15, %r12
	jmp	LBB0_27
LBB0_21:
	movl	40(%r15), %ebx
	movq	%r15, %rdi
	callq	_priv
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movq	%r15, %r12
	xorl	%eax, %eax
	callq	_printk
	movl	%r14d, %esi
	shrl	$8, %esi
	movzbl	%r14b, %edx
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	movzbl	%r8b, %ecx
	shrl	$8, %r8d
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
	movzbl	-62(%rbp), %esi
	leaq	L_.str.2(%rip), %rbx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printk
	movzbl	-61(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printk
	movzbl	-60(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printk
	movzbl	-59(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printk
	movzbl	-58(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printk
	movzbl	-57(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printk
	movzbl	-56(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printk
	movzbl	-55(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printk
	movzbl	-54(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printk
	movzbl	-53(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printk
	movzbl	-52(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printk
	movzbl	-51(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printk
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
	movq	%r15, %rdi
	callq	_priv
	movl	(%rax), %r13d
	jmp	LBB0_26
LBB0_22:
	xorl	%ebx, %ebx
	jmp	LBB0_27
LBB0_25:
	movl	-68(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edi
	shrl	$8, %edi
	movq	_REG_RECVEND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ether3_outw
	incl	4(%r12)
LBB0_26:
	movl	-72(%rbp), %ebx                 ## 4-byte Reload
LBB0_27:
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, (%r12)
	movq	%r12, %rdi
	callq	_priv
	movl	%r13d, (%rax)
	movq	_REG_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ether3_inw
	movq	_STAT_RXON@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_29
## %bb.28:
	incl	4(%r12)
	movq	_REG_RECVPTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_ether3_outw
	movq	%r12, %rdi
	callq	_priv
	movq	_CMD_RXON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	4(%rax), %edi
	movq	_REG_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ether3_outw
LBB0_29:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_31
## %bb.30:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_buffer_read,4,2                ## @buffer_read
	.comm	_RXSTAT_DONE,4,2                ## @RXSTAT_DONE
	.comm	_RXHDR_CHAINCONTINUE,4,2        ## @RXHDR_CHAINCONTINUE
	.comm	_RXHDR_RECEIVE,4,2              ## @RXHDR_RECEIVE
	.comm	_RX_START,4,2                   ## @RX_START
	.comm	_RX_END,4,2                     ## @RX_END
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: bad next pointer @%04X: "

L_.str.1:                               ## @.str.1
	.asciz	"%02X %02X %02X %02X "

L_.str.2:                               ## @.str.2
	.asciz	"%02X "

L_.str.3:                               ## @.str.3
	.asciz	"\n"

	.comm	_REG_RECVEND,4,2                ## @REG_RECVEND
	.comm	_RXSTAT_OVERSIZE,4,2            ## @RXSTAT_OVERSIZE
	.comm	_RXSTAT_CRCERROR,4,2            ## @RXSTAT_CRCERROR
	.comm	_RXSTAT_DRIBBLEERROR,4,2        ## @RXSTAT_DRIBBLEERROR
	.comm	_RXSTAT_SHORTPACKET,4,2         ## @RXSTAT_SHORTPACKET
	.comm	_REG_STATUS,4,2                 ## @REG_STATUS
	.comm	_STAT_RXON,4,2                  ## @STAT_RXON
	.comm	_REG_RECVPTR,4,2                ## @REG_RECVPTR
	.comm	_CMD_RXON,4,2                   ## @CMD_RXON
	.comm	_REG_COMMAND,4,2                ## @REG_COMMAND
	.no_dead_strip	_ether3_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ether3_rx
_ether3_rx:                             ; @ether3_rx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	bl	_priv
	ldr	w21, [x0]
	mov	x0, x20
	bl	_ether3_ledon
	str	wzr, [sp, #36]                  ; 4-byte Folded Spill
Lloh3:
	adrp	x27, _buffer_read@GOTPAGE
Lloh4:
	ldr	x27, [x27, _buffer_read@GOTPAGEOFF]
	add	x8, sp, #40
	add	x22, x8, #2
Lloh5:
	adrp	x25, _RXSTAT_OVERSIZE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _RXSTAT_OVERSIZE@GOTPAGEOFF]
Lloh7:
	adrp	x28, _RXSTAT_SHORTPACKET@GOTPAGE
Lloh8:
	ldr	x28, [x28, _RXSTAT_SHORTPACKET@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w19, w19, #1
	lsr	w0, w21, #8
Lloh9:
	adrp	x8, _REG_RECVEND@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_RECVEND@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_ether3_outw
	mov	x25, x26
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	subs	w19, w19, #1
	b.eq	LBB0_21
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x26, x25
	ldr	w1, [x27]
	mov	x0, x20
	mov	x2, x21
	bl	_ether3_setbuffer
	mov	x0, x20
	bl	_ether3_readword
	mov	x25, x0
	mov	x0, x20
	bl	_ether3_readword
Lloh12:
	adrp	x8, _RXSTAT_DONE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RXSTAT_DONE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _RXHDR_CHAINCONTINUE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _RXHDR_CHAINCONTINUE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh18:
	adrp	x9, _RXHDR_RECEIVE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _RXHDR_RECEIVE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w9, w8, w9
	and	w9, w9, w0
	cmp	w9, w8
	ccmp	w25, #0, #4, eq
	b.eq	LBB0_21
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x0
	add	w24, w21, #4
	mov	x0, x25
	bl	_ntohs
	mov	x21, x0
	ldr	w1, [x27]
	mov	x0, x20
	mov	x2, x24
	bl	_ether3_setbuffer
	mov	x0, x20
	mov	x1, x22
	mov	w2, #12
	bl	_ether3_readbuffer
Lloh21:
	adrp	x8, _RX_START@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RX_START@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _RX_END@GOTPAGE
Lloh25:
	ldr	x9, [x9, _RX_END@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	cmp	w21, w8
	ccmp	w21, w9, #2, hs
	b.hs	LBB0_19
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x20, #32]
	ldr	x12, [x10]
	ldr	x11, [sp, #48]
	cmp	x12, x11
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	lsr	x11, x11, #32
	ldrh	w10, [x10, #16]
	cmp	w10, w11, uxth
	b.eq	LBB0_1
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w10, [x26]
Lloh27:
	adrp	x11, _RXSTAT_CRCERROR@GOTPAGE
Lloh28:
	ldr	x11, [x11, _RXSTAT_CRCERROR@GOTPAGEOFF]
Lloh29:
	ldr	w11, [x11]
	orr	w10, w11, w10
Lloh30:
	adrp	x11, _RXSTAT_DRIBBLEERROR@GOTPAGE
Lloh31:
	ldr	x11, [x11, _RXSTAT_DRIBBLEERROR@GOTPAGEOFF]
Lloh32:
	ldr	w11, [x11]
	orr	w10, w10, w11
	ldr	w11, [x28]
	orr	w10, w10, w11
	tst	w10, w23
	b.eq	LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, x26
	lsr	w0, w21, #8
Lloh33:
	adrp	x8, _REG_RECVEND@GOTPAGE
Lloh34:
	ldr	x8, [x8, _REG_RECVEND@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	bl	_ether3_outw
	ldr	w8, [x26]
	tst	w8, w23
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #24]
	add	w8, w8, #1
	str	w8, [x20, #24]
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh36:
	adrp	x8, _RXSTAT_CRCERROR@GOTPAGE
Lloh37:
	ldr	x8, [x8, _RXSTAT_CRCERROR@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #20]
	add	w8, w8, #1
	str	w8, [x20, #20]
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh39:
	adrp	x8, _RXSTAT_DRIBBLEERROR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _RXSTAT_DRIBBLEERROR@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x20, #16]
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x28]
	tst	w8, w23
	b.eq	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #12]
	add	w8, w8, #1
	str	w8, [x20, #12]
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	b	LBB0_2
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w8, w9, w8
	subs	w9, w21, w24
	csel	w8, wzr, w8, hi
	add	w24, w8, w9
	add	w1, w24, #2
	mov	x0, x20
	bl	_netdev_alloc_skb
	cbz	x0, LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x0
	mov	w1, #2
	bl	_skb_reserve
	mov	x0, x23
	mov	x1, x24
	bl	_skb_put
	mov	x25, x0
	add	x1, x0, #12
	sub	w2, w24, #12
	mov	x0, x20
	bl	_ether3_readbuffer
	lsr	w0, w21, #8
Lloh42:
	adrp	x8, _REG_RECVEND@GOTPAGE
Lloh43:
	ldr	x8, [x8, _REG_RECVEND@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	bl	_ether3_outw
	ldrh	w8, [sp, #42]
	strh	w8, [x25]
	ldur	x8, [sp, #44]
	stur	x8, [x25, #2]
	ldr	x8, [sp, #48]
	stur	x8, [x25, #6]
	lsr	x8, x8, #32
	strh	w8, [x25, #10]
	mov	x25, x26
	mov	x0, x23
	mov	x1, x20
	bl	_eth_type_trans
	str	w0, [x23]
	mov	x0, x23
	bl	_netif_rx
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	add	w8, w8, #1
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	b	LBB0_2
LBB0_19:
	ldr	w22, [x20, #40]
	mov	x0, x20
	bl	_priv
	ldr	w8, [x0]
	stp	x22, x8, [sp]
Lloh45:
	adrp	x0, l_.str@PAGE
Lloh46:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
	lsr	w8, w21, #8
	and	w9, w21, #0xff
	and	w10, w23, #0xff
	lsr	w11, w23, #8
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh47:
	adrp	x0, l_.str.1@PAGE
Lloh48:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printk
	ldrb	w8, [sp, #42]
	str	x8, [sp]
Lloh49:
	adrp	x21, l_.str.2@PAGE
Lloh50:
	add	x21, x21, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_printk
	ldrb	w8, [sp, #43]
	str	x8, [sp]
	mov	x0, x21
	bl	_printk
	ldrb	w8, [sp, #44]
	str	x8, [sp]
	mov	x0, x21
	bl	_printk
	ldrb	w8, [sp, #45]
	str	x8, [sp]
	mov	x0, x21
	bl	_printk
	ldrb	w8, [sp, #46]
	str	x8, [sp]
	mov	x0, x21
	bl	_printk
	ldrb	w8, [sp, #47]
	str	x8, [sp]
	mov	x0, x21
	bl	_printk
	ldrb	w8, [sp, #48]
	str	x8, [sp]
	mov	x0, x21
	bl	_printk
	ldrb	w8, [sp, #49]
	str	x8, [sp]
	mov	x0, x21
	bl	_printk
	ldrb	w8, [sp, #50]
	str	x8, [sp]
	mov	x0, x21
	bl	_printk
	ldrb	w8, [sp, #51]
	str	x8, [sp]
	mov	x0, x21
	bl	_printk
	ldrb	w8, [sp, #52]
	str	x8, [sp]
	mov	x0, x21
	bl	_printk
	ldrb	w8, [sp, #53]
	str	x8, [sp]
	mov	x0, x21
	bl	_printk
Lloh51:
	adrp	x0, l_.str.3@PAGE
Lloh52:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printk
	mov	x0, x20
	bl	_priv
	ldr	w21, [x0]
	b	LBB0_21
LBB0_20:
	lsr	w0, w21, #8
Lloh53:
	adrp	x8, _REG_RECVEND@GOTPAGE
Lloh54:
	ldr	x8, [x8, _REG_RECVEND@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
	bl	_ether3_outw
	ldr	w8, [x20, #4]
	add	w8, w8, #1
	str	w8, [x20, #4]
LBB0_21:
	ldr	w9, [sp, #36]                   ; 4-byte Folded Reload
	ldr	w8, [x20]
	add	w8, w8, w9
	str	w8, [x20]
	mov	x0, x20
	bl	_priv
	str	w21, [x0]
Lloh56:
	adrp	x8, _REG_STATUS@GOTPAGE
Lloh57:
	ldr	x8, [x8, _REG_STATUS@GOTPAGEOFF]
Lloh58:
	ldr	w0, [x8]
	bl	_ether3_inw
Lloh59:
	adrp	x8, _STAT_RXON@GOTPAGE
Lloh60:
	ldr	x8, [x8, _STAT_RXON@GOTPAGEOFF]
Lloh61:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_23
; %bb.22:
	ldr	w8, [x20, #4]
	add	w8, w8, #1
	str	w8, [x20, #4]
Lloh62:
	adrp	x8, _REG_RECVPTR@GOTPAGE
Lloh63:
	ldr	x8, [x8, _REG_RECVPTR@GOTPAGEOFF]
Lloh64:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_ether3_outw
	mov	x0, x20
	bl	_priv
Lloh65:
	adrp	x8, _CMD_RXON@GOTPAGE
Lloh66:
	ldr	x8, [x8, _CMD_RXON@GOTPAGEOFF]
	ldr	w9, [x0, #4]
Lloh67:
	ldr	w8, [x8]
	orr	w0, w8, w9
Lloh68:
	adrp	x8, _REG_COMMAND@GOTPAGE
Lloh69:
	ldr	x8, [x8, _REG_COMMAND@GOTPAGEOFF]
Lloh70:
	ldr	w1, [x8]
	bl	_ether3_outw
LBB0_23:
	ldr	x8, [sp, #56]
Lloh71:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh72:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh73:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.24:
	mov	x0, x19
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.cfi_endproc
                                        ; -- End function
	.comm	_buffer_read,4,2                ; @buffer_read
	.comm	_RXSTAT_DONE,4,2                ; @RXSTAT_DONE
	.comm	_RXHDR_CHAINCONTINUE,4,2        ; @RXHDR_CHAINCONTINUE
	.comm	_RXHDR_RECEIVE,4,2              ; @RXHDR_RECEIVE
	.comm	_RX_START,4,2                   ; @RX_START
	.comm	_RX_END,4,2                     ; @RX_END
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: bad next pointer @%04X: "

l_.str.1:                               ; @.str.1
	.asciz	"%02X %02X %02X %02X "

l_.str.2:                               ; @.str.2
	.asciz	"%02X "

l_.str.3:                               ; @.str.3
	.asciz	"\n"

	.comm	_REG_RECVEND,4,2                ; @REG_RECVEND
	.comm	_RXSTAT_OVERSIZE,4,2            ; @RXSTAT_OVERSIZE
	.comm	_RXSTAT_CRCERROR,4,2            ; @RXSTAT_CRCERROR
	.comm	_RXSTAT_DRIBBLEERROR,4,2        ; @RXSTAT_DRIBBLEERROR
	.comm	_RXSTAT_SHORTPACKET,4,2         ; @RXSTAT_SHORTPACKET
	.comm	_REG_STATUS,4,2                 ; @REG_STATUS
	.comm	_STAT_RXON,4,2                  ; @STAT_RXON
	.comm	_REG_RECVPTR,4,2                ; @REG_RECVPTR
	.comm	_CMD_RXON,4,2                   ; @CMD_RXON
	.comm	_REG_COMMAND,4,2                ; @REG_COMMAND
	.no_dead_strip	_ether3_rx
.subsections_via_symbols
