	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_rx
_emac_rx:                               ## @emac_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r13
	leaq	8(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	leaq	4(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_EMAC_RX_IO_DATA_REG@GOTPCREL(%rip), %r14
	jmp	LBB0_1
LBB0_31:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r14), %rdi
	addq	8(%r13), %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_emac_inblk_32bit
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addl	%r12d, (%rsi)
	movq	%r15, %rdi
	callq	_eth_type_trans
	movq	%rax, (%r15)
	movq	%r15, %rdi
	callq	_netif_rx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
LBB0_32:                                ##   in Loop: Header=BB0_1 Depth=1
	incl	(%rcx)
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_EMAC_RX_FBC_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r13), %rdi
	callq	_readl
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_netif_msg_rx_status
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	16(%r13), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%ebx, %ebx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, (%r13)
	movq	_EMAC_INT_CTL_REG@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	8(%r13), %rdi
	callq	_readl
	orl	$271, %eax                      ## imm = 0x10F
	movq	(%rbx), %rsi
	addq	8(%r13), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	_EMAC_RX_FBC_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r13), %rdi
	callq	_readl
	testl	%eax, %eax
	je	LBB0_11
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r14), %rdi
	addq	8(%r13), %rdi
	callq	_readl
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_netif_msg_rx_status
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	16(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r13), %rdi
	movq	_EMAC_UNDOCUMENTED_MAGIC@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_8
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	addq	(%r14), %rdi
	callq	_readl
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_netif_msg_rx_status
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	16(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %edi
	callq	_EMAC_RX_IO_DATA_LEN
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_EMAC_RX_IO_DATA_STATUS
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_netif_msg_rx_status
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	16(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$63, %r12d
	jg	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_netif_msg_rx_err
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	16(%r13), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_19:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%edi, %edi
	movq	_EMAC_RX_IO_DATA_STATUS_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_27
## %bb.20:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_EMAC_RX_IO_DATA_STATUS_CRC_ERR@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_netif_msg_rx_err
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	16(%r13), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_23:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	12(%rax)
LBB0_24:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_EMAC_RX_IO_DATA_STATUS_LEN_ERR@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_1
## %bb.25:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_netif_msg_rx_err
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_32
## %bb.26:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	16(%r13), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	incl	(%rcx)
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$64, %r12d
	jl	LBB0_1
## %bb.28:                              ##   in Loop: Header=BB0_1 Depth=1
	leal	4(%r12), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netdev_alloc_skb
	testq	%rax, %rax
	je	LBB0_1
## %bb.29:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	$2, %esi
	callq	_skb_reserve
	movl	%r12d, %esi
	addl	$-4, %esi
	movq	%r15, %rdi
	callq	_skb_put
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_netif_msg_rx_status
	testq	%rax, %rax
	je	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	16(%r13), %edi
	leaq	L_.str.7(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_31
LBB0_8:
	movq	_EMAC_CTL_REG@GOTPCREL(%rip), %r15
	addq	(%r15), %rdi
	callq	_readl
	movq	_EMAC_CTL_RX_EN@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%r15), %rsi
	addq	8(%r13), %rsi
	callq	_writel
	movq	_EMAC_RX_CTL_REG@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	8(%r13), %rdi
	callq	_readl
	orl	$8, %eax
	movq	(%rbx), %rsi
	addq	8(%r13), %rsi
	movl	%eax, %edi
	callq	_writel
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	addq	8(%r13), %rdi
	callq	_readl
	testb	$8, %al
	jne	LBB0_9
## %bb.10:
	movq	(%r15), %rdi
	addq	8(%r13), %rdi
	callq	_readl
	orl	(%r14), %eax
	movq	(%r15), %rsi
	addq	8(%r13), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	_EMAC_INT_CTL_REG@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	8(%r13), %rdi
	callq	_readl
	orl	$271, %eax                      ## imm = 0x10F
	movq	(%rbx), %rsi
	addq	8(%r13), %rsi
	movl	%eax, %edi
	callq	_writel
	movl	$1, (%r13)
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EMAC_RX_FBC_REG,8,3            ## @EMAC_RX_FBC_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RXCount: %x\n"

	.comm	_EMAC_RX_CTL_REG,8,3            ## @EMAC_RX_CTL_REG
	.comm	_EMAC_RX_CTL_DMA_EN,4,2         ## @EMAC_RX_CTL_DMA_EN
	.comm	_EMAC_INT_CTL_REG,8,3           ## @EMAC_INT_CTL_REG
	.comm	_EMAC_RX_IO_DATA_REG,8,3        ## @EMAC_RX_IO_DATA_REG
L_.str.1:                               ## @.str.1
	.asciz	"receive header: %x\n"

	.comm	_EMAC_UNDOCUMENTED_MAGIC,4,2    ## @EMAC_UNDOCUMENTED_MAGIC
	.comm	_EMAC_CTL_REG,8,3               ## @EMAC_CTL_REG
	.comm	_EMAC_CTL_RX_EN,4,2             ## @EMAC_CTL_RX_EN
L_.str.2:                               ## @.str.2
	.asciz	"rxhdr: %x\n"

L_.str.3:                               ## @.str.3
	.asciz	"RX: status %02x, length %04x\n"

L_.str.4:                               ## @.str.4
	.asciz	"RX: Bad Packet (runt)\n"

	.comm	_EMAC_RX_IO_DATA_STATUS_OK,4,2  ## @EMAC_RX_IO_DATA_STATUS_OK
	.comm	_EMAC_RX_IO_DATA_STATUS_CRC_ERR,4,2 ## @EMAC_RX_IO_DATA_STATUS_CRC_ERR
L_.str.5:                               ## @.str.5
	.asciz	"crc error\n"

	.comm	_EMAC_RX_IO_DATA_STATUS_LEN_ERR,4,2 ## @EMAC_RX_IO_DATA_STATUS_LEN_ERR
L_.str.6:                               ## @.str.6
	.asciz	"length error\n"

L_.str.7:                               ## @.str.7
	.asciz	"RxLen %x\n"

	.no_dead_strip	_emac_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_rx
_emac_rx:                               ; @emac_rx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	add	x25, x20, #8
	add	x8, x20, #4
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x26, _EMAC_RX_FBC_REG@GOTPAGE
Lloh1:
	ldr	x26, [x26, _EMAC_RX_FBC_REG@GOTPAGEOFF]
	mov	w28, #1
Lloh2:
	adrp	x24, _EMAC_INT_CTL_REG@GOTPAGE
Lloh3:
	ldr	x24, [x24, _EMAC_INT_CTL_REG@GOTPAGEOFF]
Lloh4:
	adrp	x21, _EMAC_RX_IO_DATA_REG@GOTPAGE
Lloh5:
	ldr	x21, [x21, _EMAC_RX_IO_DATA_REG@GOTPAGEOFF]
Lloh6:
	adrp	x27, _EMAC_UNDOCUMENTED_MAGIC@GOTPAGE
Lloh7:
	ldr	x27, [x27, _EMAC_UNDOCUMENTED_MAGIC@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x0, x9, x8
	mov	x1, x24
	mov	x2, x22
	bl	_emac_inblk_32bit
	ldr	w8, [x20]
	add	w8, w8, w22
	str	w8, [x20]
	mov	x0, x23
	mov	x1, x20
	bl	_eth_type_trans
	str	x0, [x23]
	mov	x0, x23
	bl	_netif_rx
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	mov	x24, x28
	mov	w28, #1
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x26]
	add	x0, x9, x8
	bl	_readl
	mov	x22, x0
	mov	x0, x19
	bl	_netif_msg_rx_status
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #16]
	mov	x8, x22
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w22, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w28, [x19]
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl
	mov	w8, #271
	orr	w0, w0, w8
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
	ldr	x9, [x26]
	add	x0, x9, x8
	bl	_readl
	cbz	w0, LBB0_32
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	mov	x22, x0
	mov	x0, x19
	bl	_netif_msg_rx_status
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #16]
	mov	x8, x22
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x27]
	ldr	x8, [x19, #8]
	cmp	w9, w22
	b.ne	LBB0_29
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	mov	x23, x0
	mov	x0, x19
	bl	_netif_msg_rx_status
	cbz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #16]
	mov	x8, x23
	str	x8, [sp]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_EMAC_RX_IO_DATA_LEN
	mov	x22, x0
	mov	x0, x23
	bl	_EMAC_RX_IO_DATA_STATUS
	mov	x23, x0
	mov	x0, x19
	bl	_netif_msg_rx_status
	cbz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #16]
	stp	x23, x22, [sp]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_dbg
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w22, #63
	b.gt	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_netif_msg_rx_err
	cbz	x0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #16]
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_dbg
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh18:
	adrp	x8, _EMAC_RX_IO_DATA_STATUS_OK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EMAC_RX_IO_DATA_STATUS_OK@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w23
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_25
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh21:
	adrp	x8, _EMAC_RX_IO_DATA_STATUS_CRC_ERR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EMAC_RX_IO_DATA_STATUS_CRC_ERR@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_netif_msg_rx_err
	cbz	x0, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #16]
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_dbg
LBB0_21:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #12]
	add	w8, w8, #1
	str	w8, [x20, #12]
LBB0_22:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh26:
	adrp	x8, _EMAC_RX_IO_DATA_STATUS_LEN_ERR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EMAC_RX_IO_DATA_STATUS_LEN_ERR@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_3
; %bb.23:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_netif_msg_rx_err
	mov	x8, x25
	cbz	x0, LBB0_2
; %bb.24:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #16]
Lloh29:
	adrp	x1, l_.str.6@PAGE
Lloh30:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_dbg
	mov	x8, x25
	b	LBB0_2
LBB0_25:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w22, #64
	b.lt	LBB0_3
; %bb.26:                               ;   in Loop: Header=BB0_3 Depth=1
	add	w1, w22, #4
	mov	x0, x20
	bl	_netdev_alloc_skb
	cbz	x0, LBB0_3
; %bb.27:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x0
	mov	x28, x24
	mov	w1, #2
	bl	_skb_reserve
	sub	w1, w22, #4
	mov	x0, x23
	bl	_skb_put
	mov	x24, x0
	mov	x0, x19
	bl	_netif_msg_rx_status
	cbz	x0, LBB0_1
; %bb.28:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #16]
	mov	x8, x22
	str	x8, [sp]
Lloh31:
	adrp	x1, l_.str.7@PAGE
Lloh32:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dev_dbg
	b	LBB0_1
LBB0_29:
Lloh33:
	adrp	x20, _EMAC_CTL_REG@GOTPAGE
Lloh34:
	ldr	x20, [x20, _EMAC_CTL_REG@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh35:
	adrp	x21, _EMAC_CTL_RX_EN@GOTPAGE
Lloh36:
	ldr	x21, [x21, _EMAC_CTL_RX_EN@GOTPAGEOFF]
	ldr	w8, [x21]
	bic	w0, w0, w8
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
Lloh37:
	adrp	x22, _EMAC_RX_CTL_REG@GOTPAGE
Lloh38:
	ldr	x22, [x22, _EMAC_RX_CTL_REG@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	orr	w0, w0, #0x8
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	tbnz	w0, #3, LBB0_30
; %bb.31:
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x21]
	orr	w0, w8, w0
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl
	mov	w8, #271
	orr	w0, w0, w8
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_writel
	mov	w8, #1
	str	w8, [x19]
LBB0_32:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_EMAC_RX_FBC_REG,8,3            ; @EMAC_RX_FBC_REG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RXCount: %x\n"

	.comm	_EMAC_RX_CTL_REG,8,3            ; @EMAC_RX_CTL_REG
	.comm	_EMAC_RX_CTL_DMA_EN,4,2         ; @EMAC_RX_CTL_DMA_EN
	.comm	_EMAC_INT_CTL_REG,8,3           ; @EMAC_INT_CTL_REG
	.comm	_EMAC_RX_IO_DATA_REG,8,3        ; @EMAC_RX_IO_DATA_REG
l_.str.1:                               ; @.str.1
	.asciz	"receive header: %x\n"

	.comm	_EMAC_UNDOCUMENTED_MAGIC,4,2    ; @EMAC_UNDOCUMENTED_MAGIC
	.comm	_EMAC_CTL_REG,8,3               ; @EMAC_CTL_REG
	.comm	_EMAC_CTL_RX_EN,4,2             ; @EMAC_CTL_RX_EN
l_.str.2:                               ; @.str.2
	.asciz	"rxhdr: %x\n"

l_.str.3:                               ; @.str.3
	.asciz	"RX: status %02x, length %04x\n"

l_.str.4:                               ; @.str.4
	.asciz	"RX: Bad Packet (runt)\n"

	.comm	_EMAC_RX_IO_DATA_STATUS_OK,4,2  ; @EMAC_RX_IO_DATA_STATUS_OK
	.comm	_EMAC_RX_IO_DATA_STATUS_CRC_ERR,4,2 ; @EMAC_RX_IO_DATA_STATUS_CRC_ERR
l_.str.5:                               ; @.str.5
	.asciz	"crc error\n"

	.comm	_EMAC_RX_IO_DATA_STATUS_LEN_ERR,4,2 ; @EMAC_RX_IO_DATA_STATUS_LEN_ERR
l_.str.6:                               ; @.str.6
	.asciz	"length error\n"

l_.str.7:                               ; @.str.7
	.asciz	"RxLen %x\n"

	.no_dead_strip	_emac_rx
.subsections_via_symbols
