	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _dma_rxenable
__dma_rxenable:                         ## @_dma_rxenable
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	12(%rdi), %r15d
	movl	4(%rdi), %edi
	movl	8(%r14), %edx
	leaq	L_.str(%rip), %rsi
	callq	_brcms_dbg_dma
	movq	_D64_RC_RE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	4(%r14), %ebx
	movq	%r14, %rdi
	callq	_DMA64RXREGOFFS
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_bcma_read32
	movl	%eax, %ebx
	movq	_D64_RC_AE@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	orl	%r12d, %ebx
	movq	_DMA_CTRL_PEN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	movl	(%rcx), %ecx
	andl	%r15d, %ecx
	jne	LBB0_2
## %bb.1:
	movq	_D64_RC_PD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	orl	%eax, %ebx
	movq	_DMA_CTRL_ROC@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	je	LBB0_4
## %bb.3:
	movq	_D64_RC_OC@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_4:
	orl	%r15d, %ebx
	movl	4(%r14), %r15d
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_DMA64RXREGOFFS
	movl	(%r14), %edx
	movq	_D64_RC_RO_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	orl	%ebx, %edx
	movl	%r15d, %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bcma_write32                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s:\n"

	.comm	_D64_RC_RE,4,2                  ## @D64_RC_RE
	.comm	_D64_RC_AE,4,2                  ## @D64_RC_AE
	.comm	_DMA_CTRL_PEN,4,2               ## @DMA_CTRL_PEN
	.comm	_D64_RC_PD,4,2                  ## @D64_RC_PD
	.comm	_DMA_CTRL_ROC,4,2               ## @DMA_CTRL_ROC
	.comm	_D64_RC_OC,4,2                  ## @D64_RC_OC
	.comm	_D64_RC_RO_SHIFT,4,2            ## @D64_RC_RO_SHIFT
	.no_dead_strip	__dma_rxenable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _dma_rxenable
__dma_rxenable:                         ; @_dma_rxenable
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	w21, [x0, #12]
	ldr	w0, [x0, #4]
	ldr	w2, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcms_dbg_dma
Lloh2:
	adrp	x8, _D64_RC_RE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _D64_RC_RE@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
	ldr	w20, [x19, #4]
	mov	x0, x19
	bl	_DMA64RXREGOFFS
	mov	x1, x0
	mov	x0, x20
	bl	_bcma_read32
Lloh5:
	adrp	x8, _D64_RC_AE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _D64_RC_AE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh8:
	adrp	x9, _DMA_CTRL_PEN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DMA_CTRL_PEN@GOTPAGEOFF]
	orr	w8, w8, w22
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _D64_RC_PD@GOTPAGE
Lloh12:
	ldr	x10, [x10, _D64_RC_PD@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	tst	w9, w21
	csel	w9, w10, wzr, eq
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _DMA_CTRL_ROC@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DMA_CTRL_ROC@GOTPAGEOFF]
Lloh16:
	adrp	x10, _D64_RC_OC@GOTPAGE
Lloh17:
	ldr	x10, [x10, _D64_RC_OC@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
Lloh19:
	ldr	w10, [x10]
	tst	w9, w21
	csel	w9, wzr, w10, eq
	orr	w20, w8, w9
	ldr	w21, [x19, #4]
	mov	x0, x19
	mov	x1, x20
	bl	_DMA64RXREGOFFS
	mov	x1, x0
	ldr	w8, [x19]
Lloh20:
	adrp	x9, _D64_RC_RO_SHIFT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _D64_RC_RO_SHIFT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	orr	w2, w8, w20
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_bcma_write32
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s:\n"

	.comm	_D64_RC_RE,4,2                  ; @D64_RC_RE
	.comm	_D64_RC_AE,4,2                  ; @D64_RC_AE
	.comm	_DMA_CTRL_PEN,4,2               ; @DMA_CTRL_PEN
	.comm	_D64_RC_PD,4,2                  ; @D64_RC_PD
	.comm	_DMA_CTRL_ROC,4,2               ; @DMA_CTRL_ROC
	.comm	_D64_RC_OC,4,2                  ; @D64_RC_OC
	.comm	_D64_RC_RO_SHIFT,4,2            ; @D64_RC_RO_SHIFT
	.no_dead_strip	__dma_rxenable
.subsections_via_symbols
