	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_dma_prep_dma_memcpy
_omap_dma_prep_dma_memcpy:              ## @omap_dma_prep_dma_memcpy
	.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	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	callq	_to_omap_dma_chan
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$88, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %rbx
	movq	%r15, %rdi
	orq	%r12, %rdi
	orq	%r14, %rdi
	callq	___ffs
	movq	_CSDP_DATA_TYPE_32@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r13
	cmpq	%r13, %rax
	cmovlq	%rax, %r13
	movq	_DMA_MEM_TO_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movq	%r15, (%rbx)
	movq	$0, 48(%rbx)
	movq	%r13, 40(%rbx)
	movq	%r13, %rdi
	callq	_BIT
	movq	%rax, %rcx
	orq	%r14, %rax
	shrq	$32, %rax
	je	LBB0_2
## %bb.3:
	movq	%r14, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_4
LBB0_11:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_4:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	32(%rbx), %rcx
	movq	%rax, (%rcx)
	movl	$1, 8(%rcx)
	movq	%r12, 16(%rcx)
	movl	$1, 8(%rbx)
	movq	_CCR_DST_AMODE_POSTINC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_CCR_SRC_AMODE_POSTINC@GOTPCREL(%rip), %rcx
	orl	(%r15), %eax
	orl	(%rcx), %eax
	movl	%eax, 12(%rbx)
	movq	_DMA_PREP_INTERRUPT@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_CICR_FRAME_IE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rbx)
	jmp	LBB0_7
LBB0_6:
	movl	$1, 20(%rbx)
LBB0_7:
	movl	%r13d, 24(%rbx)
	xorl	%eax, %eax
	callq	_dma_omap1
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_CICR_TOUT_IE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rbx)
	movq	_CSDP_DST_PORT_EMIFF@GOTPCREL(%rip), %rcx
	movq	_CSDP_SRC_PORT_EMIFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	orl	24(%rbx), %eax
	jmp	LBB0_10
LBB0_9:
	movq	_CSDP_DST_PACKED@GOTPCREL(%rip), %rcx
	movq	_CSDP_SRC_PACKED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	orl	24(%rbx), %eax
	movq	_CICR_MISALIGNED_ERR_IE@GOTPCREL(%rip), %rcx
	movq	_CICR_TRANS_ERR_IE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	orl	%edx, 16(%rbx)
	movq	_CSDP_DST_BURST_64@GOTPCREL(%rip), %rcx
	movq	_CSDP_SRC_BURST_64@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
LBB0_10:
	movl	%eax, 24(%rbx)
	addq	$4, %r15
	addq	$28, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vchan_tx_prep                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_CSDP_DATA_TYPE_32,8,3          ## @CSDP_DATA_TYPE_32
	.comm	_DMA_MEM_TO_MEM,4,2             ## @DMA_MEM_TO_MEM
	.comm	_CCR_DST_AMODE_POSTINC,4,2      ## @CCR_DST_AMODE_POSTINC
	.comm	_CCR_SRC_AMODE_POSTINC,4,2      ## @CCR_SRC_AMODE_POSTINC
	.comm	_DMA_PREP_INTERRUPT,8,3         ## @DMA_PREP_INTERRUPT
	.comm	_CICR_FRAME_IE,4,2              ## @CICR_FRAME_IE
	.comm	_CICR_TOUT_IE,4,2               ## @CICR_TOUT_IE
	.comm	_CSDP_DST_PORT_EMIFF,4,2        ## @CSDP_DST_PORT_EMIFF
	.comm	_CSDP_SRC_PORT_EMIFF,4,2        ## @CSDP_SRC_PORT_EMIFF
	.comm	_CSDP_DST_PACKED,4,2            ## @CSDP_DST_PACKED
	.comm	_CSDP_SRC_PACKED,4,2            ## @CSDP_SRC_PACKED
	.comm	_CICR_MISALIGNED_ERR_IE,4,2     ## @CICR_MISALIGNED_ERR_IE
	.comm	_CICR_TRANS_ERR_IE,4,2          ## @CICR_TRANS_ERR_IE
	.comm	_CSDP_DST_BURST_64,4,2          ## @CSDP_DST_BURST_64
	.comm	_CSDP_SRC_BURST_64,4,2          ## @CSDP_SRC_BURST_64
	.no_dead_strip	_omap_dma_prep_dma_memcpy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_dma_prep_dma_memcpy
_omap_dma_prep_dma_memcpy:              ; @omap_dma_prep_dma_memcpy
	.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	x19, x4
	mov	x23, x3
	mov	x25, x2
	mov	x22, x1
	bl	_to_omap_dma_chan
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #88
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	orr	x8, x25, x22
	orr	x0, x8, x23
	bl	___ffs
Lloh3:
	adrp	x8, _CSDP_DATA_TYPE_32@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CSDP_DATA_TYPE_32@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _DMA_MEM_TO_MEM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DMA_MEM_TO_MEM@GOTPAGEOFF]
	cmp	x0, x8
	csel	x24, x0, x8, lt
Lloh8:
	ldr	w8, [x9]
	str	w8, [x21, #56]
	str	x25, [x21]
	stp	x24, xzr, [x21, #40]
	mov	x0, x24
	bl	_BIT
	udiv	x8, x23, x0
	ldr	x9, [x21, #32]
	str	x8, [x9]
	mov	w8, #1
	str	w8, [x9, #8]
	str	x22, [x9, #16]
	ldr	w9, [x20]
Lloh9:
	adrp	x10, _CCR_DST_AMODE_POSTINC@GOTPAGE
Lloh10:
	ldr	x10, [x10, _CCR_DST_AMODE_POSTINC@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	adrp	x11, _CCR_SRC_AMODE_POSTINC@GOTPAGE
Lloh13:
	ldr	x11, [x11, _CCR_SRC_AMODE_POSTINC@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	orr	w9, w10, w9
	orr	w9, w9, w11
	stp	w8, w9, [x21, #8]
Lloh15:
	adrp	x9, _DMA_PREP_INTERRUPT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DMA_PREP_INTERRUPT@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	tst	x9, x19
	b.eq	LBB0_4
; %bb.2:
Lloh18:
	adrp	x8, _CICR_FRAME_IE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CICR_FRAME_IE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	w9, [x21, #16]
	orr	w8, w9, w8
	str	w8, [x21, #16]
	b	LBB0_5
LBB0_3:
	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
	ret
LBB0_4:
	str	w8, [x21, #20]
LBB0_5:
	str	w24, [x21, #24]
	bl	_dma_omap1
	cbz	x0, LBB0_7
; %bb.6:
Lloh21:
	adrp	x8, _CICR_TOUT_IE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CICR_TOUT_IE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [x21, #16]
	orr	w8, w9, w8
	str	w8, [x21, #16]
Lloh24:
	adrp	x8, _CSDP_DST_PORT_EMIFF@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CSDP_DST_PORT_EMIFF@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _CSDP_SRC_PORT_EMIFF@GOTPAGE
Lloh28:
	ldr	x9, [x9, _CSDP_SRC_PORT_EMIFF@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x21, #24]
	orr	w8, w8, w9
	b	LBB0_8
LBB0_7:
Lloh30:
	adrp	x8, _CSDP_DST_PACKED@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CSDP_DST_PACKED@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _CSDP_SRC_PACKED@GOTPAGE
Lloh34:
	ldr	x9, [x9, _CSDP_SRC_PACKED@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x21, #24]
	orr	w8, w8, w9
Lloh36:
	adrp	x9, _CICR_MISALIGNED_ERR_IE@GOTPAGE
Lloh37:
	ldr	x9, [x9, _CICR_MISALIGNED_ERR_IE@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
Lloh39:
	adrp	x10, _CICR_TRANS_ERR_IE@GOTPAGE
Lloh40:
	ldr	x10, [x10, _CICR_TRANS_ERR_IE@GOTPAGEOFF]
Lloh41:
	ldr	w10, [x10]
	orr	w9, w10, w9
	ldr	w10, [x21, #16]
	orr	w9, w9, w10
	str	w9, [x21, #16]
Lloh42:
	adrp	x9, _CSDP_DST_BURST_64@GOTPAGE
Lloh43:
	ldr	x9, [x9, _CSDP_DST_BURST_64@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
Lloh45:
	adrp	x10, _CSDP_SRC_BURST_64@GOTPAGE
Lloh46:
	ldr	x10, [x10, _CSDP_SRC_BURST_64@GOTPAGEOFF]
Lloh47:
	ldr	w10, [x10]
	orr	w8, w9, w8
	orr	w8, w8, w10
LBB0_8:
	str	w8, [x21, #24]
	add	x0, x20, #4
	add	x1, x21, #28
	mov	x2, 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	_vchan_tx_prep
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_CSDP_DATA_TYPE_32,8,3          ; @CSDP_DATA_TYPE_32
	.comm	_DMA_MEM_TO_MEM,4,2             ; @DMA_MEM_TO_MEM
	.comm	_CCR_DST_AMODE_POSTINC,4,2      ; @CCR_DST_AMODE_POSTINC
	.comm	_CCR_SRC_AMODE_POSTINC,4,2      ; @CCR_SRC_AMODE_POSTINC
	.comm	_DMA_PREP_INTERRUPT,8,3         ; @DMA_PREP_INTERRUPT
	.comm	_CICR_FRAME_IE,4,2              ; @CICR_FRAME_IE
	.comm	_CICR_TOUT_IE,4,2               ; @CICR_TOUT_IE
	.comm	_CSDP_DST_PORT_EMIFF,4,2        ; @CSDP_DST_PORT_EMIFF
	.comm	_CSDP_SRC_PORT_EMIFF,4,2        ; @CSDP_SRC_PORT_EMIFF
	.comm	_CSDP_DST_PACKED,4,2            ; @CSDP_DST_PACKED
	.comm	_CSDP_SRC_PACKED,4,2            ; @CSDP_SRC_PACKED
	.comm	_CICR_MISALIGNED_ERR_IE,4,2     ; @CICR_MISALIGNED_ERR_IE
	.comm	_CICR_TRANS_ERR_IE,4,2          ; @CICR_TRANS_ERR_IE
	.comm	_CSDP_DST_BURST_64,4,2          ; @CSDP_DST_BURST_64
	.comm	_CSDP_SRC_BURST_64,4,2          ; @CSDP_SRC_BURST_64
	.no_dead_strip	_omap_dma_prep_dma_memcpy
.subsections_via_symbols
