	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxamci_setup_data
_pxamci_setup_data:                     ## @pxamci_setup_data
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	(%rsi), %edi
	movq	%rsi, 64(%r12)
	movq	_MMC_NOB@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	56(%r12), %rsi
	callq	_writel
	movl	4(%r14), %edi
	movq	_MMC_BLKLEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	56(%r12), %rsi
	callq	_writel
	movq	(%r12), %rbx
	imulq	24(%r14), %rbx
	movl	$1000000000, %esi               ## imm = 0x3B9ACA00
	movq	%rbx, %rdi
	callq	_do_div
	movl	8(%r14), %eax
	movb	8(%r12), %cl
	shll	%cl, %eax
	leal	(%rbx,%rax), %edi
	addl	$255, %edi
	shrl	$8, %edi
	movq	_MMC_RDTO@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	56(%r12), %rsi
	callq	_writel
	leaq	-88(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	_DMA_SLAVE_BUSWIDTH_1_BYTE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rax, -56(%rbp)
	movq	48(%r12), %rax
	movq	(%rax), %rax
	movq	_MMC_RXFIFO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%rax, %rcx
	movq	%rcx, -64(%rbp)
	movq	_MMC_TXFIFO@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, -72(%rbp)
	movabsq	$137438953504, %rax             ## imm = 0x2000000020
	movq	%rax, -88(%rbp)
	movq	_MMC_DATA_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	12(%r14), %eax
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	cmoveq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	_DMA_DEV_TO_MEM@GOTPCREL(%rip), %rax
	cmoveq	_DMA_MEM_TO_DEV@GOTPCREL(%rip), %rax
	setne	%cl
	movl	(%rax), %r13d
	movq	32(%r12,%rcx,8), %r15
	movl	%r13d, -80(%rbp)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_dmaengine_slave_config
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movq	(%r15), %rax
	movl	(%rax), %edi
	movl	16(%r14), %esi
	movl	20(%r14), %edx
	movl	24(%r12), %ecx
	callq	_dma_map_sg
	movl	%eax, 20(%r12)
	movl	16(%r14), %esi
	movq	_DMA_PREP_INTERRUPT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	%r15, %rdi
	movl	%eax, %edx
	movl	%r13d, %ecx
	callq	_dmaengine_prep_slave_sg
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	_MMC_DATA_READ@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	testl	%ecx, 12(%r14)
	jne	LBB0_7
## %bb.6:
	movq	_pxamci_dma_irq@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	%r12, (%rax)
LBB0_7:
	movq	%rax, %rdi
	callq	_dmaengine_submit
	movl	%eax, 12(%r12)
	xorl	%eax, %eax
	callq	_cpu_is_pxa27x
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	(%rbx), %eax
	testl	%eax, 12(%r14)
	je	LBB0_10
LBB0_9:
	movq	%r15, %rdi
	callq	_dma_async_issue_pending
	jmp	LBB0_10
LBB0_1:
	movl	16(%r12), %edi
	callq	_mmc_dev
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movl	16(%r12), %edi
	callq	_mmc_dev
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movl	%eax, %edi
	callq	_dev_err
LBB0_10:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_NOB,8,3                    ## @MMC_NOB
	.comm	_MMC_BLKLEN,8,3                 ## @MMC_BLKLEN
	.comm	_MMC_RDTO,8,3                   ## @MMC_RDTO
	.comm	_DMA_SLAVE_BUSWIDTH_1_BYTE,8,3  ## @DMA_SLAVE_BUSWIDTH_1_BYTE
	.comm	_MMC_RXFIFO,8,3                 ## @MMC_RXFIFO
	.comm	_MMC_TXFIFO,8,3                 ## @MMC_TXFIFO
	.comm	_MMC_DATA_READ,4,2              ## @MMC_DATA_READ
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_DMA_DEV_TO_MEM,4,2             ## @DMA_DEV_TO_MEM
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_DMA_MEM_TO_DEV,4,2             ## @DMA_MEM_TO_DEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dma slave config failed\n"

	.comm	_DMA_PREP_INTERRUPT,4,2         ## @DMA_PREP_INTERRUPT
L_.str.1:                               ## @.str.1
	.asciz	"prep_slave_sg() failed\n"

	.comm	_pxamci_dma_irq,4,2             ## @pxamci_dma_irq
	.no_dead_strip	_pxamci_setup_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pxamci_setup_data
_pxamci_setup_data:                     ; @pxamci_setup_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x1
	mov	x20, x0
	ldr	w0, [x1]
	str	x1, [x20, #64]
	ldr	x8, [x20, #56]
Lloh0:
	adrp	x9, _MMC_NOB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMC_NOB@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x19, #4]
	ldr	x8, [x20, #56]
Lloh3:
	adrp	x9, _MMC_BLKLEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MMC_BLKLEN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #24]
	ldr	x9, [x20]
	mul	x21, x9, x8
	mov	x0, x21
	mov	w1, #51712
	movk	w1, #15258, lsl #16
	bl	_do_div
	ldr	w8, [x19, #8]
	ldr	w9, [x20, #8]
	lsl	w8, w8, w9
	add	w8, w21, w8
	add	w8, w8, #255
	lsr	w0, w8, #8
	ldr	x8, [x20, #56]
Lloh6:
	adrp	x9, _MMC_RDTO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MMC_RDTO@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	x0, sp
	mov	w1, #0
	mov	w2, #48
	bl	_memset
Lloh9:
	adrp	x8, _DMA_SLAVE_BUSWIDTH_1_BYTE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DMA_SLAVE_BUSWIDTH_1_BYTE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	stp	x8, x8, [sp, #32]
	ldr	x8, [x20, #48]
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _MMC_RXFIFO@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MMC_RXFIFO@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x9, x9, x8
Lloh15:
	adrp	x10, _MMC_TXFIFO@GOTPAGE
Lloh16:
	ldr	x10, [x10, _MMC_TXFIFO@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	add	x8, x10, x8
	stp	x8, x9, [sp, #16]
	movi.2s	v0, #32
	str	d0, [sp]
	ldr	w8, [x19, #12]
Lloh18:
	adrp	x23, _MMC_DATA_READ@GOTPAGE
Lloh19:
	ldr	x23, [x23, _MMC_DATA_READ@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	mov	w8, #40
	mov	w9, #32
	csel	x8, x9, x8, eq
Lloh20:
	adrp	x9, _DMA_TO_DEVICE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh22:
	adrp	x10, _DMA_FROM_DEVICE@GOTPAGE
Lloh23:
	ldr	x10, [x10, _DMA_FROM_DEVICE@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _DMA_MEM_TO_DEV@GOTPAGE
Lloh25:
	ldr	x10, [x10, _DMA_MEM_TO_DEV@GOTPAGEOFF]
Lloh26:
	adrp	x11, _DMA_DEV_TO_MEM@GOTPAGE
Lloh27:
	ldr	x11, [x11, _DMA_DEV_TO_MEM@GOTPAGEOFF]
	str	w9, [x20, #24]
	csel	x9, x10, x11, eq
	ldr	w22, [x9]
	ldr	x21, [x20, x8]
	str	w22, [sp, #8]
	mov	x1, sp
	mov	x0, x21
	bl	_dmaengine_slave_config
	tbnz	w0, #31, LBB0_7
; %bb.1:
	ldr	x8, [x21]
	ldr	w0, [x8]
	ldp	w1, w2, [x19, #16]
	ldr	w3, [x20, #24]
	bl	_dma_map_sg
	mov	x2, x0
	str	w0, [x20, #20]
	ldr	w1, [x19, #16]
Lloh28:
	adrp	x8, _DMA_PREP_INTERRUPT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DMA_PREP_INTERRUPT@GOTPAGEOFF]
Lloh30:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x3, x22
	bl	_dmaengine_prep_slave_sg
	cbz	x0, LBB0_8
; %bb.2:
	ldr	w8, [x19, #12]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.3:
Lloh31:
	adrp	x8, _pxamci_dma_irq@GOTPAGE
Lloh32:
	ldr	x8, [x8, _pxamci_dma_irq@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	str	x20, [x0]
LBB0_4:
	bl	_dmaengine_submit
	str	w0, [x20, #12]
	bl	_cpu_is_pxa27x
	cbz	w0, LBB0_6
; %bb.5:
	ldr	w8, [x19, #12]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_10
LBB0_6:
	mov	x0, x21
	bl	_dma_async_issue_pending
	b	LBB0_10
LBB0_7:
	ldr	w0, [x20, #16]
	bl	_mmc_dev
Lloh34:
	adrp	x1, l_.str@PAGE
Lloh35:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_8:
	ldr	w0, [x20, #16]
	bl	_mmc_dev
Lloh36:
	adrp	x1, l_.str.1@PAGE
Lloh37:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	bl	_dev_err
LBB0_10:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_NOB,8,3                    ; @MMC_NOB
	.comm	_MMC_BLKLEN,8,3                 ; @MMC_BLKLEN
	.comm	_MMC_RDTO,8,3                   ; @MMC_RDTO
	.comm	_DMA_SLAVE_BUSWIDTH_1_BYTE,8,3  ; @DMA_SLAVE_BUSWIDTH_1_BYTE
	.comm	_MMC_RXFIFO,8,3                 ; @MMC_RXFIFO
	.comm	_MMC_TXFIFO,8,3                 ; @MMC_TXFIFO
	.comm	_MMC_DATA_READ,4,2              ; @MMC_DATA_READ
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_DMA_DEV_TO_MEM,4,2             ; @DMA_DEV_TO_MEM
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_DMA_MEM_TO_DEV,4,2             ; @DMA_MEM_TO_DEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dma slave config failed\n"

	.comm	_DMA_PREP_INTERRUPT,4,2         ; @DMA_PREP_INTERRUPT
l_.str.1:                               ; @.str.1
	.asciz	"prep_slave_sg() failed\n"

	.comm	_pxamci_dma_irq,4,2             ; @pxamci_dma_irq
	.no_dead_strip	_pxamci_setup_data
.subsections_via_symbols
