	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_hsmmc_config_dma_params
_omap_hsmmc_config_dma_params:          ## @omap_hsmmc_config_dma_params
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rdi, %r14
	movl	(%rdi), %ebx
	movq	_MMC_DATA_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_OMAP_HSMMC_DATA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	16(%rdi), %rcx
	movq	_OMAP_DMA_AMODE_CONSTANT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	testl	%eax, (%rsi)
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	je	LBB0_2
## %bb.1:
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_omap_set_dma_dest_params
	movq	_OMAP_DMA_AMODE_POST_INC@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r12, %rdi
	callq	_sg_dma_address
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%r13d, %edx
	movq	%rax, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_omap_set_dma_src_params
	jmp	LBB0_3
LBB0_2:
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_omap_set_dma_src_params
	movq	_OMAP_DMA_AMODE_POST_INC@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r12, %rdi
	callq	_sg_dma_address
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%r13d, %edx
	movq	%rax, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_omap_set_dma_dest_params
LBB0_3:
	movq	8(%r14), %rax
	movl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_sg_dma_len
	cltd
	idivl	%ebx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_OMAP_DMA_DATA_TYPE_S32@GOTPCREL(%rip), %rax
	leal	3(%rbx), %r15d
	testl	%ebx, %ebx
	cmovnsl	%ebx, %r15d
	movl	(%rax), %r13d
	sarl	$2, %r15d
	movq	_OMAP_DMA_SYNC_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r14, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_omap_hsmmc_get_dma_sync_dev
	movq	_MMC_DATA_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	andl	(%rbx), %ecx
	sete	%dl
	movl	%edx, (%rsp)
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movl	%r13d, %esi
	movl	%r15d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r12d, %r8d
	movl	%eax, %r9d
	callq	_omap_set_dma_transfer_params
	movl	%ebx, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_omap_start_dma                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_DATA_WRITE,4,2             ## @MMC_DATA_WRITE
	.comm	_OMAP_DMA_AMODE_CONSTANT,4,2    ## @OMAP_DMA_AMODE_CONSTANT
	.comm	_OMAP_HSMMC_DATA,8,3            ## @OMAP_HSMMC_DATA
	.comm	_OMAP_DMA_AMODE_POST_INC,4,2    ## @OMAP_DMA_AMODE_POST_INC
	.comm	_OMAP_DMA_DATA_TYPE_S32,4,2     ## @OMAP_DMA_DATA_TYPE_S32
	.comm	_OMAP_DMA_SYNC_FRAME,4,2        ## @OMAP_DMA_SYNC_FRAME
	.no_dead_strip	_omap_hsmmc_config_dma_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_hsmmc_config_dma_params
_omap_hsmmc_config_dma_params:          ; @omap_hsmmc_config_dma_params
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w19, [x0]
	ldr	w8, [x1]
Lloh0:
	adrp	x26, _MMC_DATA_WRITE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _MMC_DATA_WRITE@GOTPAGEOFF]
	ldr	w9, [x26]
Lloh2:
	adrp	x10, _OMAP_DMA_AMODE_CONSTANT@GOTPAGE
Lloh3:
	ldr	x10, [x10, _OMAP_DMA_AMODE_CONSTANT@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x10]
	ldr	x10, [x0, #16]
Lloh5:
	adrp	x11, _OMAP_HSMMC_DATA@GOTPAGE
Lloh6:
	ldr	x11, [x11, _OMAP_HSMMC_DATA@GOTPAGEOFF]
Lloh7:
	ldr	x11, [x11]
	add	x3, x11, x10
	mov	x0, x19
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w1, #0
	mov	w4, #0
	mov	w5, #0
	bl	_omap_set_dma_dest_params
Lloh8:
	adrp	x8, _OMAP_DMA_AMODE_POST_INC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OMAP_DMA_AMODE_POST_INC@GOTPAGEOFF]
Lloh10:
	ldr	w23, [x8]
	mov	x0, x22
	bl	_sg_dma_address
	mov	x3, x0
	mov	x0, x19
	mov	w1, #0
	mov	x2, x23
	mov	w4, #0
	mov	w5, #0
	bl	_omap_set_dma_src_params
	b	LBB0_3
LBB0_2:
	mov	w1, #0
	mov	w4, #0
	mov	w5, #0
	bl	_omap_set_dma_src_params
Lloh11:
	adrp	x8, _OMAP_DMA_AMODE_POST_INC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OMAP_DMA_AMODE_POST_INC@GOTPAGEOFF]
Lloh13:
	ldr	w23, [x8]
	mov	x0, x22
	bl	_sg_dma_address
	mov	x3, x0
	mov	x0, x19
	mov	w1, #0
	mov	x2, x23
	mov	w4, #0
	mov	w5, #0
	bl	_omap_set_dma_dest_params
LBB0_3:
	ldr	x8, [x21, #8]
	ldr	w25, [x8]
	mov	x0, x22
	bl	_sg_dma_len
Lloh14:
	adrp	x8, _OMAP_DMA_DATA_TYPE_S32@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OMAP_DMA_DATA_TYPE_S32@GOTPAGEOFF]
Lloh16:
	ldr	w22, [x8]
	add	w8, w25, #3
	cmp	w25, #0
	csel	w8, w8, w25, lt
	asr	w23, w8, #2
Lloh17:
	adrp	x8, _OMAP_DMA_SYNC_FRAME@GOTPAGE
Lloh18:
	ldr	x8, [x8, _OMAP_DMA_SYNC_FRAME@GOTPAGEOFF]
Lloh19:
	ldr	w24, [x8]
	sdiv	w25, w0, w25
	mov	x0, x21
	mov	x1, x20
	bl	_omap_hsmmc_get_dma_sync_dev
	mov	x5, x0
	ldr	w8, [x20]
	ldr	w9, [x26]
	tst	w9, w8
	cset	w6, eq
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	mov	x3, x25
	mov	x4, x24
	bl	_omap_set_dma_transfer_params
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_omap_start_dma
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_DATA_WRITE,4,2             ; @MMC_DATA_WRITE
	.comm	_OMAP_DMA_AMODE_CONSTANT,4,2    ; @OMAP_DMA_AMODE_CONSTANT
	.comm	_OMAP_HSMMC_DATA,8,3            ; @OMAP_HSMMC_DATA
	.comm	_OMAP_DMA_AMODE_POST_INC,4,2    ; @OMAP_DMA_AMODE_POST_INC
	.comm	_OMAP_DMA_DATA_TYPE_S32,4,2     ; @OMAP_DMA_DATA_TYPE_S32
	.comm	_OMAP_DMA_SYNC_FRAME,4,2        ; @OMAP_DMA_SYNC_FRAME
	.no_dead_strip	_omap_hsmmc_config_dma_params
.subsections_via_symbols
