	.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
	movl	%esi, %r13d
	movq	%rdi, %r14
	movl	(%rdi), %ebx
	movswl	4(%rdi), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_EL3_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_inw
	movl	%eax, %r12d
	movq	_RxStatus@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	%rbx, %rdi
	callq	_inw
	movswl	%ax, %r8d
	movswl	%r12w, %ecx
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_DEBUG
	movq	(%r15), %rdi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	addq	%rbx, %rdi
	callq	_inw
	movzwl	%ax, %ecx
	testl	$32768, %ecx                    ## imm = 0x8000
	jne	LBB0_19
## %bb.1:
	testl	%r13d, %r13d
	jle	LBB0_19
## %bb.2:
	movl	%eax, %ebx
	movq	_RxDiscard@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testl	$16384, %ecx                    ## imm = 0x4000
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %r15d
	andl	$2047, %r15d                    ## imm = 0x7FF
	leal	5(%r15), %edi
	callq	_dev_alloc_skb
	movq	%rax, %r12
	movswl	%bx, %ecx
	movl	$3, %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_DEBUG
	movzwl	%r15w, %r15d
	testq	%r12, %r12
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %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	%r12, %rdi
	movl	%r15d, %esi
	callq	_skb_put
	leal	3(%r15), %edx
	shrl	$2, %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_insl
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_eth_type_trans
	movl	%eax, (%r12)
	movq	%r12, %rdi
	callq	_netif_rx
	incl	16(%r14)
	addw	%r15w, 8(%r14)
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	36(%r14)
	shrl	$11, %ebx
	andl	$7, %ebx
	cmpw	$5, %bx
	ja	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	28(%r14)
	jmp	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movswl	4(%r14), %edx
	movl	$1, %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_DEBUG
	incl	12(%r14)
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_RxDiscard@GOTPCREL(%rip), %r15
	jmp	LBB0_11
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	24(%r14)
	jmp	LBB0_11
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	32(%r14)
	jmp	LBB0_11
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	20(%r14)
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_tc574_wait_for_completion
	movq	_RxStatus@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	-48(%rbp), %rdi                 ## 8-byte Folded Reload
	callq	_inw
	movl	%eax, %ebx
	movzwl	%ax, %ecx
	leal	-1(%r13), %eax
	testl	$32768, %ecx                    ## imm = 0x8000
	jne	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$1, %r13d
	movl	%eax, %r13d
	ja	LBB0_3
	jmp	LBB0_20
LBB0_19:
	movl	%r13d, %eax
LBB0_20:
	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_8, LBB0_8-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_17
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: in rx_packet(), status %4.4x, rx_status %4.4x.\n"

	.comm	_EL3_STATUS,8,3                 ## @EL3_STATUS
	.comm	_RxStatus,8,3                   ## @RxStatus
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"

	.comm	_RxDiscard,4,2                  ## @RxDiscard
	.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, x1
	mov	x20, x0
	ldr	w26, [x0]
	ldrsh	w21, [x0, #4]
Lloh0:
	adrp	x8, _EL3_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EL3_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x0, x8, x26
	bl	_inw
	mov	x22, x0
Lloh3:
	adrp	x27, _RxStatus@GOTPAGE
Lloh4:
	ldr	x27, [x27, _RxStatus@GOTPAGEOFF]
	ldr	x8, [x27]
	add	x0, x8, x26
	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	w0, #3
	mov	x2, x21
	mov	x3, x22
	bl	_DEBUG
	ldr	x8, [x27]
	add	x0, x8, x26
	bl	_inw
	tbnz	w0, #15, LBB0_15
; %bb.1:
	cmp	w19, #1
	b.lt	LBB0_15
; %bb.2:
	mov	x24, x0
	and	w8, w0, #0xffff
Lloh7:
	adrp	x21, l_.str.1@PAGE
Lloh8:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh9:
	adrp	x22, _RxDiscard@GOTPAGE
Lloh10:
	ldr	x22, [x22, _RxDiscard@GOTPAGEOFF]
Lloh11:
	adrp	x28, lJTI0_0@PAGE
Lloh12:
	add	x28, x28, lJTI0_0@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	tbnz	w8, #14, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	and	w23, w24, #0x7ff
	add	w0, w23, #5
	bl	_dev_alloc_skb
	mov	x25, x0
	sxth	w3, w24
	mov	w0, #3
	mov	x1, x21
	mov	x2, x23
	bl	_DEBUG
	cbz	x25, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x25
	mov	w1, #2
	bl	_skb_reserve
Lloh13:
	adrp	x8, _RX_FIFO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RX_FIFO@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	add	x24, x8, x26
	mov	x0, x25
	mov	x1, x23
	bl	_skb_put
	mov	x1, x0
	add	w8, w23, #3
	lsr	w2, w8, #2
	mov	x0, x24
	bl	_insl
	mov	x0, x25
	mov	x1, x20
	bl	_eth_type_trans
	str	w0, [x25]
	mov	x0, x25
	bl	_netif_rx
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x20, #16]
	ldrh	w8, [x20, #8]
	add	w8, w8, w23
	strh	w8, [x20, #8]
	b	LBB0_13
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #36]
	add	w8, w8, #1
	str	w8, [x20, #36]
	ubfx	w8, w24, #11, #3
	cmp	w8, #5
	b.hi	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	adr	x9, LBB0_8
	ldrb	w10, [x28, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #28]
	add	w8, w8, #1
	str	w8, [x20, #28]
	b	LBB0_13
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrsh	w2, [x20, #4]
	mov	w0, #1
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x3, x23
	bl	_DEBUG
	ldr	w8, [x20, #12]
	add	w8, w8, #1
	str	w8, [x20, #12]
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #24]
	add	w8, w8, #1
	str	w8, [x20, #24]
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #32]
	add	w8, w8, #1
	str	w8, [x20, #32]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #20]
	add	w8, w8, #1
	str	w8, [x20, #20]
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x22]
	mov	x0, x20
	bl	_tc574_wait_for_completion
	ldr	x8, [x27]
	add	x0, x8, x26
	bl	_inw
	subs	w19, w19, #1
	tbnz	w0, #15, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x0
	and	w8, w0, #0xffff
	b.hi	LBB0_3
LBB0_15:
	mov	x0, x19
	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
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_12-LBB0_8)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: in rx_packet(), status %4.4x, rx_status %4.4x.\n"

	.comm	_EL3_STATUS,8,3                 ; @EL3_STATUS
	.comm	_RxStatus,8,3                   ; @RxStatus
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"

	.comm	_RxDiscard,4,2                  ; @RxDiscard
	.no_dead_strip	_el3_rx
.subsections_via_symbols
