	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gem_rxmac_reset
_gem_rxmac_reset:                       ## @gem_rxmac_reset
	.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, %r13
	movq	64(%rdi), %r12
	movq	_MAC_RXRST_CMD@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_MAC_RXRST@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	addq	16(%r13), %rsi
	callq	_writel
	movl	$5000, %ebx                     ## imm = 0x1388
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	16(%r13), %rdi
	callq	_readl
	testl	%eax, (%r14)
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$10, %edi
	callq	_udelay
	decl	%ebx
	jne	LBB0_1
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	jmp	LBB0_23
LBB0_4:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	_MAC_RXCFG_ENAB@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	notl	%edi
	andl	(%r13), %edi
	movq	_MAC_RXCFG@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	16(%r13), %rsi
	callq	_writel
	movl	$5000, %ebx                     ## imm = 0x1388
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	addq	16(%r13), %rdi
	callq	_readl
	testl	%eax, (%r14)
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$10, %edi
	callq	_udelay
	decl	%ebx
	jne	LBB0_5
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_22
LBB0_8:
	movq	_RXDMA_CFG@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	16(%r13), %rsi
	xorl	%edi, %edi
	callq	_writel
	movl	$5000, %ebx                     ## imm = 0x1388
	movq	_RXDMA_CFG_ENABLE@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	addq	16(%r13), %rdi
	callq	_readl
	testl	%eax, (%r15)
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	$10, %edi
	callq	_udelay
	decl	%ebx
	jne	LBB0_9
## %bb.11:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_22
LBB0_12:
	movl	$5, %edi
	callq	_mdelay
	movq	_GREG_SWRST_RXRST@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	orl	4(%r13), %edi
	movq	_GREG_SWRST@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	16(%r13), %rsi
	callq	_writel
	movl	$5000, %r15d                    ## imm = 0x1388
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	addq	16(%r13), %rdi
	callq	_readl
	testl	%eax, (%r14)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	$10, %edi
	callq	_udelay
	decl	%r15d
	jne	LBB0_13
	jmp	LBB0_21
LBB0_15:
	testl	%r15d, %r15d
	je	LBB0_21
## %bb.16:
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movq	_RXDMA_CFG_ENABLE@GOTPCREL(%rip), %r15
	jle	LBB0_20
## %bb.17:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	48(%r13), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_25
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	56(%r13), %rax
	movq	(%rax), %r14
	movq	%r13, %rdi
	callq	_RXDCTRL_FRESH
	movl	%eax, %edi
	callq	_cpu_to_le64
	movl	%eax, (%r14,%rbx,4)
	incq	%rbx
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_18
LBB0_20:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%r13)
	movq	_INIT_BLOCK_TX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	shll	$2, %r14d
	addl	24(%r13), %r14d
	movq	_RXDMA_DBHI@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r13), %rsi
	callq	_writel
	movq	_RXDMA_DBLOW@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r13), %rsi
	movl	%r14d, %edi
	callq	_writel
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	$-4, %edi
	movq	_RXDMA_KICK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r13), %rsi
	callq	_writel
	movq	_RXDMA_CFG_BASE@GOTPCREL(%rip), %rax
	movq	_RX_OFFSET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$10, %ecx
	orl	(%rax), %ecx
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$13, %edi
	orl	%ecx, %edi
	movq	_RXDMA_CFG_FTHRESH_128@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_RXDMA_CFG@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	16(%r13), %rsi
	callq	_writel
	movq	_GREG_BIFCFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r13), %rdi
	callq	_readl
	movq	_GREG_BIFCFG_M66EN@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	andl	(%rcx), %eax
	setne	%dil
	movq	_RXDMA_BLANK_IPKTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	$5, %eax
	movq	_RXDMA_BLANK_ITIME@GOTPCREL(%rip), %rcx
	shll	$14, %edi
	addl	$16384, %edi                    ## imm = 0x4000
	andl	(%rcx), %edi
	orl	%eax, %edi
	movq	_RXDMA_BLANK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r13), %rsi
	callq	_writel
	movl	8(%r13), %eax
	movl	12(%r13), %ecx
	leal	63(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$6, %edx
	movq	_RXDMA_PTHRESH_OFF@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	leal	63(%rcx), %edi
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edi
	shll	$6, %edi
	movq	_RXDMA_PTHRESH_ON@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	andl	$-4096, %edi                    ## imm = 0xF000
	orl	%edx, %edi
	movq	_RXDMA_PTHRESH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r13), %rsi
	callq	_writel
	movq	(%rbx), %rdi
	addq	16(%r13), %rdi
	callq	_readl
	orl	(%r15), %eax
	movq	(%rbx), %rsi
	addq	16(%r13), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	_MAC_RXSTAT_RCV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MAC_RXMASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r13), %rsi
	callq	_writel
	movq	(%r12), %rdi
	addq	16(%r13), %rdi
	callq	_readl
	movq	_MAC_RXCFG_ENAB@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%r12), %rsi
	addq	16(%r13), %rsi
	movl	%eax, %edi
	callq	_writel
	xorl	%eax, %eax
	jmp	LBB0_24
LBB0_21:
	leaq	L_.str.3(%rip), %rsi
LBB0_22:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_23:
	callq	_netdev_err
	movl	$1, %eax
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_RXRST_CMD,4,2              ## @MAC_RXRST_CMD
	.comm	_MAC_RXRST,8,3                  ## @MAC_RXRST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RX MAC will not reset, resetting whole chip\n"

	.comm	_MAC_RXCFG_ENAB,4,2             ## @MAC_RXCFG_ENAB
	.comm	_MAC_RXCFG,8,3                  ## @MAC_RXCFG
L_.str.1:                               ## @.str.1
	.asciz	"RX MAC will not disable, resetting whole chip\n"

	.comm	_RXDMA_CFG,8,3                  ## @RXDMA_CFG
	.comm	_RXDMA_CFG_ENABLE,4,2           ## @RXDMA_CFG_ENABLE
L_.str.2:                               ## @.str.2
	.asciz	"RX DMA will not disable, resetting whole chip\n"

	.comm	_GREG_SWRST_RXRST,4,2           ## @GREG_SWRST_RXRST
	.comm	_GREG_SWRST,8,3                 ## @GREG_SWRST
L_.str.3:                               ## @.str.3
	.asciz	"RX reset command will not execute, resetting whole chip\n"

	.comm	_RX_RING_SIZE,4,2               ## @RX_RING_SIZE
L_.str.4:                               ## @.str.4
	.asciz	"Parts of RX ring empty, resetting whole chip\n"

	.comm	_INIT_BLOCK_TX_RING_SIZE,4,2    ## @INIT_BLOCK_TX_RING_SIZE
	.comm	_RXDMA_DBHI,8,3                 ## @RXDMA_DBHI
	.comm	_RXDMA_DBLOW,8,3                ## @RXDMA_DBLOW
	.comm	_RXDMA_KICK,8,3                 ## @RXDMA_KICK
	.comm	_RXDMA_CFG_BASE,4,2             ## @RXDMA_CFG_BASE
	.comm	_RX_OFFSET,4,2                  ## @RX_OFFSET
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_RXDMA_CFG_FTHRESH_128,4,2      ## @RXDMA_CFG_FTHRESH_128
	.comm	_GREG_BIFCFG,8,3                ## @GREG_BIFCFG
	.comm	_GREG_BIFCFG_M66EN,4,2          ## @GREG_BIFCFG_M66EN
	.comm	_RXDMA_BLANK_IPKTS,4,2          ## @RXDMA_BLANK_IPKTS
	.comm	_RXDMA_BLANK_ITIME,4,2          ## @RXDMA_BLANK_ITIME
	.comm	_RXDMA_BLANK,8,3                ## @RXDMA_BLANK
	.comm	_RXDMA_PTHRESH_OFF,4,2          ## @RXDMA_PTHRESH_OFF
	.comm	_RXDMA_PTHRESH_ON,4,2           ## @RXDMA_PTHRESH_ON
	.comm	_RXDMA_PTHRESH,8,3              ## @RXDMA_PTHRESH
	.comm	_MAC_RXSTAT_RCV,4,2             ## @MAC_RXSTAT_RCV
	.comm	_MAC_RXMASK,8,3                 ## @MAC_RXMASK
	.no_dead_strip	_gem_rxmac_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gem_rxmac_reset
_gem_rxmac_reset:                       ; @gem_rxmac_reset
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, [x0, #64]
Lloh0:
	adrp	x21, _MAC_RXRST_CMD@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MAC_RXRST_CMD@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	x8, [x19, #16]
Lloh2:
	adrp	x22, _MAC_RXRST@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MAC_RXRST@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	mov	w23, #5000
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #10
	bl	_udelay
	subs	w23, w23, #1
	b.ne	LBB0_1
; %bb.3:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_22
LBB0_4:
	ldr	w8, [x19]
Lloh6:
	adrp	x21, _MAC_RXCFG_ENAB@GOTPAGE
Lloh7:
	ldr	x21, [x21, _MAC_RXCFG_ENAB@GOTPAGEOFF]
	ldr	w9, [x21]
	bic	w0, w8, w9
	ldr	x8, [x19, #16]
Lloh8:
	adrp	x22, _MAC_RXCFG@GOTPAGE
Lloh9:
	ldr	x22, [x22, _MAC_RXCFG@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	mov	w23, #5000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #10
	bl	_udelay
	subs	w23, w23, #1
	b.ne	LBB0_5
; %bb.7:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_22
LBB0_8:
	ldr	x8, [x19, #16]
Lloh12:
	adrp	x23, _RXDMA_CFG@GOTPAGE
Lloh13:
	ldr	x23, [x23, _RXDMA_CFG@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	mov	w25, #5000
Lloh14:
	adrp	x24, _RXDMA_CFG_ENABLE@GOTPAGE
Lloh15:
	ldr	x24, [x24, _RXDMA_CFG_ENABLE@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w0, #10
	bl	_udelay
	subs	w25, w25, #1
	b.ne	LBB0_9
; %bb.11:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_22
LBB0_12:
	mov	w0, #5
	bl	_mdelay
	ldr	w8, [x19, #4]
Lloh18:
	adrp	x25, _GREG_SWRST_RXRST@GOTPAGE
Lloh19:
	ldr	x25, [x25, _GREG_SWRST_RXRST@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w0, w9, w8
	ldr	x8, [x19, #16]
Lloh20:
	adrp	x26, _GREG_SWRST@GOTPAGE
Lloh21:
	ldr	x26, [x26, _GREG_SWRST@GOTPAGEOFF]
	ldr	x9, [x26]
	add	x1, x9, x8
	bl	_writel
	mov	w27, #5000
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x9, [x26]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	w0, #10
	bl	_udelay
	subs	w27, w27, #1
	b.ne	LBB0_13
	b	LBB0_21
LBB0_15:
	cbz	w27, LBB0_21
; %bb.16:
Lloh22:
	adrp	x25, _RX_RING_SIZE@GOTPAGE
Lloh23:
	ldr	x25, [x25, _RX_RING_SIZE@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.17:
	mov	x26, #0
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #48]
	ldr	x8, [x8, x26, lsl #3]
	cbz	x8, LBB0_24
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x19, #56]
	ldr	x27, [x8]
	mov	x0, x19
	bl	_RXDCTRL_FRESH
	bl	_cpu_to_le64
	str	w0, [x27, x26, lsl #2]
	add	x26, x26, #1
	ldrsw	x8, [x25]
	cmp	x26, x8
	b.lt	LBB0_18
LBB0_20:
	stp	xzr, xzr, [x19, #32]
	ldr	w8, [x19, #24]
Lloh24:
	adrp	x9, _INIT_BLOCK_TX_RING_SIZE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _INIT_BLOCK_TX_RING_SIZE@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	add	w20, w8, w9, lsl #2
	ldr	x8, [x19, #16]
Lloh27:
	adrp	x9, _RXDMA_DBHI@GOTPAGE
Lloh28:
	ldr	x9, [x9, _RXDMA_DBHI@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #16]
Lloh30:
	adrp	x9, _RXDMA_DBLOW@GOTPAGE
Lloh31:
	ldr	x9, [x9, _RXDMA_DBLOW@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
	ldr	w8, [x25]
	sub	w0, w8, #4
	ldr	x8, [x19, #16]
Lloh33:
	adrp	x9, _RXDMA_KICK@GOTPAGE
Lloh34:
	ldr	x9, [x9, _RXDMA_KICK@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh36:
	adrp	x8, _RXDMA_CFG_BASE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _RXDMA_CFG_BASE@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	adrp	x9, _RX_OFFSET@GOTPAGE
Lloh40:
	ldr	x9, [x9, _RX_OFFSET@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	orr	w8, w8, w9, lsl #10
Lloh42:
	adrp	x9, _ETH_HLEN@GOTPAGE
Lloh43:
	ldr	x9, [x9, _ETH_HLEN@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
Lloh45:
	adrp	x10, _RXDMA_CFG_FTHRESH_128@GOTPAGE
Lloh46:
	ldr	x10, [x10, _RXDMA_CFG_FTHRESH_128@GOTPAGEOFF]
	orr	w8, w8, w9, lsl #13
Lloh47:
	ldr	w9, [x10]
	orr	w0, w8, w9
	ldr	x8, [x19, #16]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #16]
Lloh48:
	adrp	x9, _GREG_BIFCFG@GOTPAGE
Lloh49:
	ldr	x9, [x9, _GREG_BIFCFG@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh51:
	adrp	x8, _GREG_BIFCFG_M66EN@GOTPAGE
Lloh52:
	ldr	x8, [x8, _GREG_BIFCFG_M66EN@GOTPAGEOFF]
Lloh53:
	adrp	x9, _RXDMA_BLANK_IPKTS@GOTPAGE
Lloh54:
	ldr	x9, [x9, _RXDMA_BLANK_IPKTS@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
Lloh56:
	ldr	w9, [x9]
	mov	w10, #5
	and	w9, w9, w10
Lloh57:
	adrp	x10, _RXDMA_BLANK_ITIME@GOTPAGE
Lloh58:
	ldr	x10, [x10, _RXDMA_BLANK_ITIME@GOTPAGEOFF]
Lloh59:
	ldr	w10, [x10]
	tst	w8, w0
	mov	w8, #32768
	mov	w11, #16384
	csel	w8, w11, w8, eq
	and	w8, w10, w8
	orr	w0, w8, w9
	ldr	x8, [x19, #16]
Lloh60:
	adrp	x9, _RXDMA_BLANK@GOTPAGE
Lloh61:
	ldr	x9, [x9, _RXDMA_BLANK@GOTPAGEOFF]
Lloh62:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldp	w8, w9, [x19, #8]
	add	w10, w8, #63
	cmp	w8, #0
	csel	w8, w10, w8, lt
Lloh63:
	adrp	x10, _RXDMA_PTHRESH_OFF@GOTPAGE
Lloh64:
	ldr	x10, [x10, _RXDMA_PTHRESH_OFF@GOTPAGEOFF]
Lloh65:
	ldr	w10, [x10]
	and	w8, w10, w8, asr #6
	add	w10, w9, #63
	cmp	w9, #0
	csel	w9, w10, w9, lt
Lloh66:
	adrp	x10, _RXDMA_PTHRESH_ON@GOTPAGE
Lloh67:
	ldr	x10, [x10, _RXDMA_PTHRESH_ON@GOTPAGEOFF]
Lloh68:
	ldr	w10, [x10]
	and	w9, w10, w9, lsl #6
	and	w9, w9, #0xfffff000
	orr	w0, w9, w8
	ldr	x8, [x19, #16]
Lloh69:
	adrp	x9, _RXDMA_PTHRESH@GOTPAGE
Lloh70:
	ldr	x9, [x9, _RXDMA_PTHRESH@GOTPAGEOFF]
Lloh71:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #16]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x24]
	orr	w0, w8, w0
	ldr	x8, [x19, #16]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_writel
Lloh72:
	adrp	x8, _MAC_RXSTAT_RCV@GOTPAGE
Lloh73:
	ldr	x8, [x8, _MAC_RXSTAT_RCV@GOTPAGEOFF]
Lloh74:
	ldr	w0, [x8]
	ldr	x8, [x19, #16]
Lloh75:
	adrp	x9, _MAC_RXMASK@GOTPAGE
Lloh76:
	ldr	x9, [x9, _MAC_RXMASK@GOTPAGEOFF]
Lloh77:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #16]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x21]
	orr	w0, w8, w0
	ldr	x8, [x19, #16]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #0
	b	LBB0_23
LBB0_21:
Lloh78:
	adrp	x1, l_.str.3@PAGE
Lloh79:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_22:
	mov	x0, x20
	bl	_netdev_err
	mov	w0, #1
LBB0_23:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_24:
Lloh80:
	adrp	x1, l_.str.4@PAGE
Lloh81:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_22
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh55
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpAdd	Lloh80, Lloh81
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_RXRST_CMD,4,2              ; @MAC_RXRST_CMD
	.comm	_MAC_RXRST,8,3                  ; @MAC_RXRST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RX MAC will not reset, resetting whole chip\n"

	.comm	_MAC_RXCFG_ENAB,4,2             ; @MAC_RXCFG_ENAB
	.comm	_MAC_RXCFG,8,3                  ; @MAC_RXCFG
l_.str.1:                               ; @.str.1
	.asciz	"RX MAC will not disable, resetting whole chip\n"

	.comm	_RXDMA_CFG,8,3                  ; @RXDMA_CFG
	.comm	_RXDMA_CFG_ENABLE,4,2           ; @RXDMA_CFG_ENABLE
l_.str.2:                               ; @.str.2
	.asciz	"RX DMA will not disable, resetting whole chip\n"

	.comm	_GREG_SWRST_RXRST,4,2           ; @GREG_SWRST_RXRST
	.comm	_GREG_SWRST,8,3                 ; @GREG_SWRST
l_.str.3:                               ; @.str.3
	.asciz	"RX reset command will not execute, resetting whole chip\n"

	.comm	_RX_RING_SIZE,4,2               ; @RX_RING_SIZE
l_.str.4:                               ; @.str.4
	.asciz	"Parts of RX ring empty, resetting whole chip\n"

	.comm	_INIT_BLOCK_TX_RING_SIZE,4,2    ; @INIT_BLOCK_TX_RING_SIZE
	.comm	_RXDMA_DBHI,8,3                 ; @RXDMA_DBHI
	.comm	_RXDMA_DBLOW,8,3                ; @RXDMA_DBLOW
	.comm	_RXDMA_KICK,8,3                 ; @RXDMA_KICK
	.comm	_RXDMA_CFG_BASE,4,2             ; @RXDMA_CFG_BASE
	.comm	_RX_OFFSET,4,2                  ; @RX_OFFSET
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_RXDMA_CFG_FTHRESH_128,4,2      ; @RXDMA_CFG_FTHRESH_128
	.comm	_GREG_BIFCFG,8,3                ; @GREG_BIFCFG
	.comm	_GREG_BIFCFG_M66EN,4,2          ; @GREG_BIFCFG_M66EN
	.comm	_RXDMA_BLANK_IPKTS,4,2          ; @RXDMA_BLANK_IPKTS
	.comm	_RXDMA_BLANK_ITIME,4,2          ; @RXDMA_BLANK_ITIME
	.comm	_RXDMA_BLANK,8,3                ; @RXDMA_BLANK
	.comm	_RXDMA_PTHRESH_OFF,4,2          ; @RXDMA_PTHRESH_OFF
	.comm	_RXDMA_PTHRESH_ON,4,2           ; @RXDMA_PTHRESH_ON
	.comm	_RXDMA_PTHRESH,8,3              ; @RXDMA_PTHRESH
	.comm	_MAC_RXSTAT_RCV,4,2             ; @MAC_RXSTAT_RCV
	.comm	_MAC_RXMASK,8,3                 ; @MAC_RXMASK
	.no_dead_strip	_gem_rxmac_reset
.subsections_via_symbols
