	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmnand_dma_run
_brcmnand_dma_run:                      ## @brcmnand_dma_run
	.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, %r15d
	movq	(%rdi), %rbx
	movl	$100, %edi
	callq	_msecs_to_jiffies
	movq	%rax, %r14
	movq	_FLASH_DMA_FIRST_DESC@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	movl	%r15d, %edi
	callq	_lower_32_bits
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_flash_dma_writel
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_flash_dma_readl
	movq	_FLASH_DMA_FIRST_DESC_EXT@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	movl	%r15d, %edi
	callq	_upper_32_bits
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_flash_dma_writel
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_flash_dma_readl
	movl	$1, (%rbx)
	xorl	%eax, %eax
	callq	_mb
	movq	_FLASH_DMA_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$3, %edx
	callq	_flash_dma_writel
	leaq	8(%rbx), %rdi
	movq	%r14, %rsi
	callq	_wait_for_completion_timeout
	testq	%rax, %rax
	jg	LBB0_2
## %bb.1:
	movl	4(%rbx), %r14d
	movq	_FLASH_DMA_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_flash_dma_readl
	movl	%eax, %r15d
	movq	_FLASH_DMA_ERROR_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_flash_dma_readl
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_dev_err
LBB0_2:
	movl	$0, (%rbx)
	movl	(%r12), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_flash_dma_writel               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FLASH_DMA_FIRST_DESC,4,2       ## @FLASH_DMA_FIRST_DESC
	.comm	_FLASH_DMA_FIRST_DESC_EXT,4,2   ## @FLASH_DMA_FIRST_DESC_EXT
	.comm	_FLASH_DMA_CTRL,4,2             ## @FLASH_DMA_CTRL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timeout waiting for DMA; status %#x, error status %#x\n"

	.comm	_FLASH_DMA_STATUS,4,2           ## @FLASH_DMA_STATUS
	.comm	_FLASH_DMA_ERROR_STATUS,4,2     ## @FLASH_DMA_ERROR_STATUS
	.no_dead_strip	_brcmnand_dma_run
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmnand_dma_run
_brcmnand_dma_run:                      ; @brcmnand_dma_run
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	ldr	x19, [x0]
	mov	w0, #100
	bl	_msecs_to_jiffies
	mov	x21, x0
Lloh0:
	adrp	x23, _FLASH_DMA_FIRST_DESC@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FLASH_DMA_FIRST_DESC@GOTPAGEOFF]
	ldr	w22, [x23]
	mov	x0, x20
	bl	_lower_32_bits
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_flash_dma_writel
	ldr	w1, [x23]
	mov	x0, x19
	bl	_flash_dma_readl
Lloh2:
	adrp	x23, _FLASH_DMA_FIRST_DESC_EXT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _FLASH_DMA_FIRST_DESC_EXT@GOTPAGEOFF]
	ldr	w22, [x23]
	mov	x0, x20
	bl	_upper_32_bits
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_flash_dma_writel
	ldr	w1, [x23]
	mov	x0, x19
	bl	_flash_dma_readl
	mov	w8, #1
	mov	x20, x19
	str	w8, [x20], #8
	bl	_mb
Lloh4:
	adrp	x22, _FLASH_DMA_CTRL@GOTPAGE
Lloh5:
	ldr	x22, [x22, _FLASH_DMA_CTRL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #3
	bl	_flash_dma_writel
	mov	x0, x20
	mov	x1, x21
	bl	_wait_for_completion_timeout
	cmp	x0, #0
	b.gt	LBB0_2
; %bb.1:
	ldr	w20, [x19, #4]
Lloh6:
	adrp	x8, _FLASH_DMA_STATUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FLASH_DMA_STATUS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_flash_dma_readl
	mov	x21, x0
Lloh9:
	adrp	x8, _FLASH_DMA_ERROR_STATUS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FLASH_DMA_ERROR_STATUS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_flash_dma_readl
	mov	x3, x0
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_err
LBB0_2:
	str	wzr, [x19]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_flash_dma_writel
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FLASH_DMA_FIRST_DESC,4,2       ; @FLASH_DMA_FIRST_DESC
	.comm	_FLASH_DMA_FIRST_DESC_EXT,4,2   ; @FLASH_DMA_FIRST_DESC_EXT
	.comm	_FLASH_DMA_CTRL,4,2             ; @FLASH_DMA_CTRL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timeout waiting for DMA; status %#x, error status %#x\n"

	.comm	_FLASH_DMA_STATUS,4,2           ; @FLASH_DMA_STATUS
	.comm	_FLASH_DMA_ERROR_STATUS,4,2     ; @FLASH_DMA_ERROR_STATUS
	.no_dead_strip	_brcmnand_dma_run
.subsections_via_symbols
