	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function el3_rx
_el3_rx:                                ## @el3_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movslq	(%rdi), %r12
	movq	_el3_debug@GOTPCREL(%rip), %rax
	cmpl	$6, (%rax)
	jl	LBB0_2
## %bb.1:
	movq	_EL3_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r12, %rdi
	callq	_inw
	movl	%eax, %ebx
	movq	_RX_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r12, %rdi
	callq	_inw
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_2:
	movq	_RX_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r12, %rdi
	callq	_inw
	movl	%eax, %r14d
	shll	$16, %r14d
	testl	%r14d, %r14d
	jle	LBB0_23
## %bb.3:
	movl	%eax, %r15d
	movq	_EL3_STATUS@GOTPCREL(%rip), %r13
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_7 Depth=1
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_skb_reserve
	movq	_RX_FIFO@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	addq	%r12, %r14
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_skb_put
	movl	%r15d, %edx
	addl	$3, %edx
	shrl	$2, %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_insl
	movq	_RxDiscard@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EL3_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r12, %rsi
	callq	_outw
	movq	%rbx, %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_eth_type_trans
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_netif_rx
	addw	%r15w, 8(%r14)
	incl	16(%r14)
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	_RX_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r12, %rdi
	callq	_inw
	movl	%eax, %r15d
	movl	%eax, %r14d
	shll	$16, %r14d
	testl	%r14d, %r14d
	jle	LBB0_23
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_21 Depth 2
	testl	$16384, %r15d                   ## imm = 0x4000
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	andl	$2047, %r15d                    ## imm = 0x7FF
	leal	5(%r15), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netdev_alloc_skb
	movq	%rax, %rbx
	movq	_el3_debug@GOTPCREL(%rip), %rax
	cmpl	$5, (%rax)
	jl	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	shrl	$16, %r14d
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_pr_debug
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_RxDiscard@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EL3_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r12, %rsi
	callq	_outw
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	incl	36(%r14)
	shrl	$11, %r15d
	andl	$7, %r15d
	cmpl	$5, %r15d
	leaq	L_.str.3(%rip), %rbx
	ja	LBB0_20
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%r15,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	incl	28(%r14)
	jmp	LBB0_20
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_RxDiscard@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EL3_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r12, %rsi
	callq	_outw
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	incl	12(%r14)
	movq	_el3_debug@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	leaq	L_.str.3(%rip), %rbx
	je	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	4(%r14), %esi
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_pr_debug
	jmp	LBB0_20
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	incl	24(%r14)
	jmp	LBB0_20
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	incl	32(%r14)
	jmp	LBB0_20
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=1
	incl	20(%r14)
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r13), %rdi
	addq	%r12, %rdi
	callq	_inw
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13), %rdi
	addq	%r12, %rdi
	callq	_inw
	testl	$4096, %eax                     ## imm = 0x1000
	je	LBB0_6
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=2
	movq	(%r13), %rdi
	addq	%r12, %rdi
	callq	_inw
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_debug
	jmp	LBB0_21
LBB0_23:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_15
	.long	L0_0_set_16
	.long	L0_0_set_15
	.long	L0_0_set_16
	.long	L0_0_set_19
	.end_data_region
                                        ## -- End function
	.comm	_el3_debug,4,2                  ## @el3_debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"   In rx_packet(), status %4.4x, rx_status %4.4x.\n"

	.comm	_EL3_STATUS,8,3                 ## @EL3_STATUS
	.comm	_RX_STATUS,8,3                  ## @RX_STATUS
	.comm	_RxDiscard,4,2                  ## @RxDiscard
	.comm	_EL3_CMD,8,3                    ## @EL3_CMD
L_.str.1:                               ## @.str.1
	.asciz	"Receiving packet size %d status %4.4x.\n"

	.comm	_RX_FIFO,8,3                    ## @RX_FIFO
L_.str.2:                               ## @.str.2
	.asciz	"%s: Couldn't allocate a sk_buff of size %d.\n"

L_.str.3:                               ## @.str.3
	.asciz	"\tWaiting for 3c509 to discard packet, status %x.\n"

	.no_dead_strip	_el3_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function el3_rx
_el3_rx:                                ; @el3_rx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldrsw	x26, [x0]
Lloh0:
	adrp	x8, _el3_debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _el3_debug@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x28, _EL3_STATUS@GOTPAGE
Lloh4:
	ldr	x28, [x28, _EL3_STATUS@GOTPAGEOFF]
Lloh5:
	adrp	x21, _RX_STATUS@GOTPAGE
Lloh6:
	ldr	x21, [x21, _RX_STATUS@GOTPAGEOFF]
	cmp	w8, #6
	b.lt	LBB0_2
; %bb.1:
	ldr	x8, [x28]
	add	x0, x8, x26
	bl	_inw
	mov	x20, x0
	ldr	x8, [x21]
	add	x0, x8, x26
	bl	_inw
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_pr_debug
LBB0_2:
	ldr	x8, [x21]
	add	x0, x8, x26
	bl	_inw
	lsl	w25, w0, #16
	cmp	w25, #1
	b.lt	LBB0_21
; %bb.3:
	mov	x23, x0
Lloh9:
	adrp	x20, _RxDiscard@GOTPAGE
Lloh10:
	ldr	x20, [x20, _RxDiscard@GOTPAGEOFF]
Lloh11:
	adrp	x27, _EL3_CMD@GOTPAGE
Lloh12:
	ldr	x27, [x27, _EL3_CMD@GOTPAGEOFF]
Lloh13:
	adrp	x22, l_.str.3@PAGE
Lloh14:
	add	x22, x22, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	cbz	x24, LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x24
	mov	w1, #2
	bl	_skb_reserve
Lloh15:
	adrp	x8, _RX_FIFO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RX_FIFO@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	add	x25, x8, x26
	mov	x0, x24
	mov	x1, x23
	bl	_skb_put
	mov	x1, x0
	add	w8, w23, #3
	lsr	w2, w8, #2
	mov	x0, x25
	bl	_insl
	ldr	w0, [x20]
	ldr	x8, [x27]
	add	x1, x8, x26
	bl	_outw
	mov	x0, x24
	mov	x1, x19
	bl	_eth_type_trans
	str	w0, [x24]
	mov	x0, x24
	bl	_netif_rx
	ldrh	w8, [x19, #8]
	add	w8, w8, w23
	strh	w8, [x19, #8]
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x21]
	add	x0, x8, x26
	bl	_inw
	mov	x23, x0
	lsl	w25, w0, #16
	cmp	w25, #0
	b.le	LBB0_21
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
	tbnz	w23, #14, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	and	w23, w23, #0x7ff
	add	w1, w23, #5
	mov	x0, x19
	bl	_netdev_alloc_skb
	mov	x24, x0
Lloh18:
	adrp	x8, _el3_debug@GOTPAGE
Lloh19:
	ldr	x8, [x8, _el3_debug@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w8, #5
	b.lt	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	lsr	w8, w25, #16
	str	x8, [sp]
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	bl	_pr_debug
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x20]
	ldr	x8, [x27]
	add	x1, x8, x26
	bl	_outw
	ldr	w8, [x19, #36]
	add	w8, w8, #1
	str	w8, [x19, #36]
	ubfx	w8, w23, #11, #3
	cmp	w8, #5
	b.hi	LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh23:
	adrp	x11, lJTI0_0@PAGE
Lloh24:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x9, LBB0_12
	ldrb	w10, [x11, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19, #28]
	add	w8, w8, #1
	str	w8, [x19, #28]
	b	LBB0_18
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x20]
	ldr	x8, [x27]
	add	x1, x8, x26
	bl	_outw
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
Lloh25:
	adrp	x8, _el3_debug@GOTPAGE
Lloh26:
	ldr	x8, [x8, _el3_debug@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cbz	w8, LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x19, #4]
	str	x23, [sp]
Lloh28:
	adrp	x0, l_.str.2@PAGE
Lloh29:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
	b	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19, #32]
	add	w8, w8, #1
	str	w8, [x19, #32]
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x28]
	add	x0, x8, x26
	bl	_inw
LBB0_19:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x28]
	add	x0, x8, x26
	bl	_inw
	tbz	w0, #12, LBB0_6
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	ldr	x8, [x28]
	add	x0, x8, x26
	bl	_inw
	mov	x1, x0
	mov	x0, x22
	bl	_pr_debug
	b	LBB0_19
LBB0_21:
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_16-LBB0_12)>>2
	.byte	(LBB0_12-LBB0_12)>>2
	.byte	(LBB0_15-LBB0_12)>>2
	.byte	(LBB0_12-LBB0_12)>>2
	.byte	(LBB0_15-LBB0_12)>>2
	.byte	(LBB0_17-LBB0_12)>>2
                                        ; -- End function
	.comm	_el3_debug,4,2                  ; @el3_debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"   In rx_packet(), status %4.4x, rx_status %4.4x.\n"

	.comm	_EL3_STATUS,8,3                 ; @EL3_STATUS
	.comm	_RX_STATUS,8,3                  ; @RX_STATUS
	.comm	_RxDiscard,4,2                  ; @RxDiscard
	.comm	_EL3_CMD,8,3                    ; @EL3_CMD
l_.str.1:                               ; @.str.1
	.asciz	"Receiving packet size %d status %4.4x.\n"

	.comm	_RX_FIFO,8,3                    ; @RX_FIFO
l_.str.2:                               ; @.str.2
	.asciz	"%s: Couldn't allocate a sk_buff of size %d.\n"

l_.str.3:                               ; @.str.3
	.asciz	"\tWaiting for 3c509 to discard packet, status %x.\n"

	.no_dead_strip	_el3_rx
.subsections_via_symbols
