	.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, %r12
	movl	(%rdi), %ebx
	movq	_EL3_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_inw
	movl	%eax, %r14d
	movq	_RX_STATUS@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	%rbx, %rdi
	callq	_inw
	movswl	%ax, %ecx
	movswl	%r14w, %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_netdev_dbg
	movq	(%r15), %rdi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	addq	%rbx, %rdi
	callq	_inw
	movswl	%ax, %r13d
	testl	$32768, %r13d                   ## imm = 0x8000
	jne	LBB0_19
## %bb.1:
	movl	%eax, %ebx
	movl	$32, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testl	$16384, %r13d                   ## imm = 0x4000
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	andl	$2047, %ebx                     ## imm = 0x7FF
	leal	5(%rbx), %esi
	movq	%r12, %rdi
	callq	_netdev_alloc_skb
	movq	%rax, %r15
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_netdev_dbg
	movzwl	%bx, %r13d
	testq	%r15, %r15
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_skb_reserve
	movq	_RX_FIFO@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	addq	-48(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_skb_put
	leal	3(%r13), %edx
	shrl	$2, %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_insl
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_eth_type_trans
	movl	%eax, (%r15)
	movq	%r15, %rdi
	callq	_netif_rx
	incl	12(%r12)
	addw	%r13w, 4(%r12)
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	32(%r12)
	shrl	$11, %ebx
	andl	$7, %ebx
	cmpw	$5, %bx
	ja	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	24(%r12)
	jmp	LBB0_10
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_netdev_dbg
	incl	8(%r12)
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_RX_STATUS@GOTPCREL(%rip), %r15
	jmp	LBB0_10
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	20(%r12)
	jmp	LBB0_10
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	28(%r12)
	jmp	LBB0_10
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	16(%r12)
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_RxDiscard@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_tc589_wait_for_completion
	movq	(%r15), %rdi
	addq	-48(%rbp), %rdi                 ## 8-byte Folded Reload
	callq	_inw
	movl	%eax, %ebx
	movswl	%ax, %r13d
	leal	-1(%r14), %eax
	testl	$32768, %r13d                   ## imm = 0x8000
	jne	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, %r14d
	movl	%eax, %r14d
	jne	LBB0_2
LBB0_17:
	testl	%eax, %eax
	jne	LBB0_19
## %bb.18:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_netdev_warn
LBB0_19:
	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_7, LBB0_7-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_16
	.end_data_region
                                        ## -- End function
	.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
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	"couldn't allocate a sk_buff of size %d.\n"

	.comm	_RxDiscard,4,2                  ## @RxDiscard
L_.str.3:                               ## @.str.3
	.asciz	"too much work in el3_rx!\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
	ldr	w25, [x0]
Lloh0:
	adrp	x8, _EL3_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EL3_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x0, x8, x25
	bl	_inw
	mov	x20, x0
Lloh3:
	adrp	x26, _RX_STATUS@GOTPAGE
Lloh4:
	ldr	x26, [x26, _RX_STATUS@GOTPAGEOFF]
	ldr	x8, [x26]
	add	x0, x8, x25
	bl	_inw
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	str	x8, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_netdev_dbg
	ldr	x8, [x26]
	add	x0, x8, x25
	bl	_inw
	tbnz	w0, #15, LBB0_16
; %bb.1:
	mov	x23, x0
	mov	w27, #32
Lloh7:
	adrp	x20, l_.str.1@PAGE
Lloh8:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh9:
	adrp	x21, _RxDiscard@GOTPAGE
Lloh10:
	ldr	x21, [x21, _RxDiscard@GOTPAGEOFF]
Lloh11:
	adrp	x28, lJTI0_0@PAGE
Lloh12:
	add	x28, x28, lJTI0_0@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	tbnz	w23, #14, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	and	w22, w23, #0x7ff
	add	w1, w22, #5
	mov	x0, x19
	bl	_netdev_alloc_skb
	mov	x24, x0
	str	x23, [sp]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_netdev_dbg
	cbz	x24, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x24
	mov	w1, #2
	bl	_skb_reserve
Lloh13:
	adrp	x8, _RX_FIFO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RX_FIFO@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	add	x23, x8, x25
	mov	x0, x24
	mov	x1, x22
	bl	_skb_put
	mov	x1, x0
	add	w8, w22, #3
	lsr	w2, w8, #2
	mov	x0, x23
	bl	_insl
	mov	x0, x24
	mov	x1, x19
	bl	_eth_type_trans
	str	w0, [x24]
	mov	x0, x24
	bl	_netif_rx
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
	ldrh	w8, [x19, #4]
	add	w8, w8, w22
	strh	w8, [x19, #4]
	b	LBB0_12
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19, #32]
	add	w8, w8, #1
	str	w8, [x19, #32]
	ubfx	w8, w23, #11, #3
	cmp	w8, #5
	b.hi	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	adr	x9, LBB0_7
	ldrb	w10, [x28, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
	b	LBB0_12
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x22
	bl	_netdev_dbg
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19, #28]
	add	w8, w8, #1
	str	w8, [x19, #28]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	bl	_tc589_wait_for_completion
	ldr	x8, [x26]
	add	x0, x8, x25
	bl	_inw
	subs	w27, w27, #1
	tbnz	w0, #15, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x23, x0
	b.ne	LBB0_2
LBB0_14:
	cbnz	w27, LBB0_16
; %bb.15:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_netdev_warn
LBB0_16:
	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 AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_11-LBB0_7)>>2
                                        ; -- End function
	.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
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	"couldn't allocate a sk_buff of size %d.\n"

	.comm	_RxDiscard,4,2                  ; @RxDiscard
l_.str.3:                               ; @.str.3
	.asciz	"too much work in el3_rx!\n"

	.no_dead_strip	_el3_rx
.subsections_via_symbols
