	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function et131x_rx_dma_enable
_et131x_rx_dma_enable:                  ## @et131x_rx_dma_enable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_ET_RXDMA_CSR_FBR1_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%rbx), %rax
	movq	8(%rax), %rcx
	movl	(%rcx), %ecx
	cmpl	$16384, %ecx                    ## imm = 0x4000
	je	LBB0_4
## %bb.1:
	cmpl	$8192, %ecx                     ## imm = 0x2000
	je	LBB0_5
## %bb.2:
	cmpl	$4096, %ecx                     ## imm = 0x1000
	jne	LBB0_7
## %bb.3:
	movq	_ET_RXDMA_CSR_FBR1_SIZE_LO@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_4:
	movq	_ET_RXDMA_CSR_FBR1_SIZE_LO@GOTPCREL(%rip), %rcx
	movq	_ET_RXDMA_CSR_FBR1_SIZE_HI@GOTPCREL(%rip), %rdx
	orl	(%rcx), %edi
	orl	(%rdx), %edi
	jmp	LBB0_7
LBB0_5:
	movq	_ET_RXDMA_CSR_FBR1_SIZE_HI@GOTPCREL(%rip), %rcx
LBB0_6:
	orl	(%rcx), %edi
LBB0_7:
	movq	_ET_RXDMA_CSR_FBR0_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpl	$1024, %eax                     ## imm = 0x400
	je	LBB0_11
## %bb.8:
	cmpl	$512, %eax                      ## imm = 0x200
	je	LBB0_12
## %bb.9:
	cmpl	$256, %eax                      ## imm = 0x100
	jne	LBB0_14
## %bb.10:
	movq	_ET_RXDMA_CSR_FBR0_SIZE_LO@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	_ET_RXDMA_CSR_FBR0_SIZE_LO@GOTPCREL(%rip), %rax
	movq	_ET_RXDMA_CSR_FBR0_SIZE_HI@GOTPCREL(%rip), %rcx
	orl	(%rax), %edi
	orl	(%rcx), %edi
	jmp	LBB0_14
LBB0_12:
	movq	_ET_RXDMA_CSR_FBR0_SIZE_HI@GOTPCREL(%rip), %rax
LBB0_13:
	orl	(%rax), %edi
LBB0_14:
	movq	8(%rbx), %rsi
	callq	_writel
	movq	8(%rbx), %rdi
	callq	_readl
	movq	_ET_RXDMA_CSR_HALT_STATUS@GOTPCREL(%rip), %r14
	testl	%eax, (%r14)
	je	LBB0_17
## %bb.15:
	movl	$5, %edi
	callq	_udelay
	movq	8(%rbx), %rdi
	callq	_readl
	testl	%eax, (%r14)
	je	LBB0_17
## %bb.16:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_17:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ET_RXDMA_CSR_FBR1_ENABLE,4,2   ## @ET_RXDMA_CSR_FBR1_ENABLE
	.comm	_ET_RXDMA_CSR_FBR1_SIZE_LO,4,2  ## @ET_RXDMA_CSR_FBR1_SIZE_LO
	.comm	_ET_RXDMA_CSR_FBR1_SIZE_HI,4,2  ## @ET_RXDMA_CSR_FBR1_SIZE_HI
	.comm	_ET_RXDMA_CSR_FBR0_ENABLE,4,2   ## @ET_RXDMA_CSR_FBR0_ENABLE
	.comm	_ET_RXDMA_CSR_FBR0_SIZE_LO,4,2  ## @ET_RXDMA_CSR_FBR0_SIZE_LO
	.comm	_ET_RXDMA_CSR_FBR0_SIZE_HI,4,2  ## @ET_RXDMA_CSR_FBR0_SIZE_HI
	.comm	_ET_RXDMA_CSR_HALT_STATUS,4,2   ## @ET_RXDMA_CSR_HALT_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RX Dma failed to exit halt state. CSR 0x%08x\n"

	.no_dead_strip	_et131x_rx_dma_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function et131x_rx_dma_enable
_et131x_rx_dma_enable:                  ; @et131x_rx_dma_enable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _ET_RXDMA_CSR_FBR1_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ET_RXDMA_CSR_FBR1_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	ldr	x8, [x0, #16]
	ldr	x10, [x8, #8]
	ldr	w10, [x10]
	cmp	w10, #4, lsl #12                ; =16384
	b.eq	LBB0_4
; %bb.1:
	cmp	w10, #2, lsl #12                ; =8192
	b.eq	LBB0_5
; %bb.2:
	cmp	w10, #1, lsl #12                ; =4096
	b.ne	LBB0_7
; %bb.3:
Lloh3:
	adrp	x10, _ET_RXDMA_CSR_FBR1_SIZE_LO@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ET_RXDMA_CSR_FBR1_SIZE_LO@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x10, _ET_RXDMA_CSR_FBR1_SIZE_LO@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ET_RXDMA_CSR_FBR1_SIZE_LO@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
Lloh8:
	adrp	x11, _ET_RXDMA_CSR_FBR1_SIZE_HI@GOTPAGE
Lloh9:
	ldr	x11, [x11, _ET_RXDMA_CSR_FBR1_SIZE_HI@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	orr	w9, w10, w9
	orr	w9, w9, w11
	b	LBB0_7
LBB0_5:
Lloh11:
	adrp	x10, _ET_RXDMA_CSR_FBR1_SIZE_HI@GOTPAGE
Lloh12:
	ldr	x10, [x10, _ET_RXDMA_CSR_FBR1_SIZE_HI@GOTPAGEOFF]
LBB0_6:
	ldr	w10, [x10]
	orr	w9, w10, w9
LBB0_7:
Lloh13:
	adrp	x10, _ET_RXDMA_CSR_FBR0_ENABLE@GOTPAGE
Lloh14:
	ldr	x10, [x10, _ET_RXDMA_CSR_FBR0_ENABLE@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	orr	w0, w10, w9
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w8, #1024
	b.eq	LBB0_11
; %bb.8:
	cmp	w8, #512
	b.eq	LBB0_12
; %bb.9:
	cmp	w8, #256
	b.ne	LBB0_14
; %bb.10:
Lloh16:
	adrp	x8, _ET_RXDMA_CSR_FBR0_SIZE_LO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ET_RXDMA_CSR_FBR0_SIZE_LO@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
Lloh18:
	adrp	x8, _ET_RXDMA_CSR_FBR0_SIZE_LO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ET_RXDMA_CSR_FBR0_SIZE_LO@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _ET_RXDMA_CSR_FBR0_SIZE_HI@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ET_RXDMA_CSR_FBR0_SIZE_HI@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w0, w8, w9
	b	LBB0_14
LBB0_12:
Lloh24:
	adrp	x8, _ET_RXDMA_CSR_FBR0_SIZE_HI@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ET_RXDMA_CSR_FBR0_SIZE_HI@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	orr	w0, w8, w0
LBB0_14:
	ldr	x1, [x19, #8]
	bl	_writel
	ldr	x0, [x19, #8]
	bl	_readl
Lloh26:
	adrp	x20, _ET_RXDMA_CSR_HALT_STATUS@GOTPAGE
Lloh27:
	ldr	x20, [x20, _ET_RXDMA_CSR_HALT_STATUS@GOTPAGEOFF]
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_17
; %bb.15:
	mov	w0, #5
	bl	_udelay
	ldr	x0, [x19, #8]
	bl	_readl
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_17
; %bb.16:
	mov	x2, x0
	ldr	x0, [x19]
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_err
LBB0_17:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ET_RXDMA_CSR_FBR1_ENABLE,4,2   ; @ET_RXDMA_CSR_FBR1_ENABLE
	.comm	_ET_RXDMA_CSR_FBR1_SIZE_LO,4,2  ; @ET_RXDMA_CSR_FBR1_SIZE_LO
	.comm	_ET_RXDMA_CSR_FBR1_SIZE_HI,4,2  ; @ET_RXDMA_CSR_FBR1_SIZE_HI
	.comm	_ET_RXDMA_CSR_FBR0_ENABLE,4,2   ; @ET_RXDMA_CSR_FBR0_ENABLE
	.comm	_ET_RXDMA_CSR_FBR0_SIZE_LO,4,2  ; @ET_RXDMA_CSR_FBR0_SIZE_LO
	.comm	_ET_RXDMA_CSR_FBR0_SIZE_HI,4,2  ; @ET_RXDMA_CSR_FBR0_SIZE_HI
	.comm	_ET_RXDMA_CSR_HALT_STATUS,4,2   ; @ET_RXDMA_CSR_HALT_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RX Dma failed to exit halt state. CSR 0x%08x\n"

	.no_dead_strip	_et131x_rx_dma_enable
.subsections_via_symbols
