	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_dma_start
_omap_dma_start:                        ## @omap_dma_start
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_to_omap_dma_dev
	movq	%rax, %r12
	movl	(%r14), %r15d
	movq	8(%rax), %rax
	movl	(%rax), %edi
	callq	___dma_omap15xx
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_CDAC@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_CPC@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_omap_dma_chan_write
	movq	%rbx, %rdi
	callq	_omap_dma_clear_csr
	cmpq	$0, 32(%r14)
	je	LBB0_5
## %bb.4:
	movq	_CDP_TMODE_LLIST@GOTPCREL(%rip), %rax
	movq	_CDP_NTYPE_TYPE2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_CDP_FAST@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	8(%r14), %rax
	movq	_DMA_DEV_TO_MEM@GOTPCREL(%rip), %r8
	movq	_CDP_DST_VALID_RELOAD@GOTPCREL(%rip), %rdi
	movq	_CDP_DST_VALID_REUSE@GOTPCREL(%rip), %r9
	movq	_CDP_SRC_VALID_REUSE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movq	_CDP_SRC_VALID_RELOAD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rdi), %esi
	orl	(%r9), %edx
	cmpq	(%r8), %rax
	cmovel	%esi, %edx
	orl	%ecx, %edx
	movq	_CDP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_omap_dma_chan_write
	movq	_CNDP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	24(%r14), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_omap_dma_chan_write
	movq	_CCDN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_omap_dma_chan_write
	movq	_CCFN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_omap_dma_chan_write
	movq	_CCEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$16777215, %edx                 ## imm = 0xFFFFFF
	callq	_omap_dma_chan_write
	movq	_CICR_BLOCK_IE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r15d
	jmp	LBB0_7
LBB0_5:
	cmpq	$0, (%r12)
	je	LBB0_7
## %bb.6:
	movq	_CDP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_omap_dma_chan_write
LBB0_7:
	movq	_CICR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_omap_dma_chan_write
	movq	_CCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CCR_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	16(%r14), %edx
	movq	%rbx, %rdi
	callq	_omap_dma_chan_write
	movl	$1, (%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CPC,4,2                        ## @CPC
	.comm	_CDAC,4,2                       ## @CDAC
	.comm	_CDP_TMODE_LLIST,4,2            ## @CDP_TMODE_LLIST
	.comm	_CDP_NTYPE_TYPE2,4,2            ## @CDP_NTYPE_TYPE2
	.comm	_CDP_FAST,4,2                   ## @CDP_FAST
	.comm	_DMA_DEV_TO_MEM,8,3             ## @DMA_DEV_TO_MEM
	.comm	_CDP_DST_VALID_RELOAD,4,2       ## @CDP_DST_VALID_RELOAD
	.comm	_CDP_SRC_VALID_REUSE,4,2        ## @CDP_SRC_VALID_REUSE
	.comm	_CDP_DST_VALID_REUSE,4,2        ## @CDP_DST_VALID_REUSE
	.comm	_CDP_SRC_VALID_RELOAD,4,2       ## @CDP_SRC_VALID_RELOAD
	.comm	_CDP,4,2                        ## @CDP
	.comm	_CNDP,4,2                       ## @CNDP
	.comm	_CCDN,4,2                       ## @CCDN
	.comm	_CCFN,4,2                       ## @CCFN
	.comm	_CCEN,4,2                       ## @CCEN
	.comm	_CICR_BLOCK_IE,4,2              ## @CICR_BLOCK_IE
	.comm	_CICR,4,2                       ## @CICR
	.comm	_CCR,4,2                        ## @CCR
	.comm	_CCR_ENABLE,4,2                 ## @CCR_ENABLE
	.no_dead_strip	_omap_dma_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_dma_start
_omap_dma_start:                        ; @omap_dma_start
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_to_omap_dma_dev
	mov	x22, x0
	ldr	w21, [x20]
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
	bl	___dma_omap15xx
Lloh0:
	adrp	x8, _CDAC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CDAC@GOTPAGEOFF]
Lloh2:
	adrp	x9, _CPC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CPC@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_omap_dma_chan_write
	mov	x0, x19
	bl	_omap_dma_clear_csr
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _CDP_TMODE_LLIST@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CDP_TMODE_LLIST@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _CDP_NTYPE_TYPE2@GOTPAGE
Lloh8:
	ldr	x9, [x9, _CDP_NTYPE_TYPE2@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh10:
	adrp	x9, _CDP_FAST@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CDP_FAST@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	x9, [x20, #8]
Lloh13:
	adrp	x10, _DMA_DEV_TO_MEM@GOTPAGE
Lloh14:
	ldr	x10, [x10, _DMA_DEV_TO_MEM@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
Lloh16:
	adrp	x11, _CDP_DST_VALID_RELOAD@GOTPAGE
Lloh17:
	ldr	x11, [x11, _CDP_DST_VALID_RELOAD@GOTPAGEOFF]
Lloh18:
	ldr	w11, [x11]
Lloh19:
	adrp	x12, _CDP_DST_VALID_REUSE@GOTPAGE
Lloh20:
	ldr	x12, [x12, _CDP_DST_VALID_REUSE@GOTPAGEOFF]
Lloh21:
	ldr	w12, [x12]
Lloh22:
	adrp	x13, _CDP_SRC_VALID_REUSE@GOTPAGE
Lloh23:
	ldr	x13, [x13, _CDP_SRC_VALID_REUSE@GOTPAGEOFF]
Lloh24:
	ldr	w13, [x13]
Lloh25:
	adrp	x14, _CDP_SRC_VALID_RELOAD@GOTPAGE
Lloh26:
	ldr	x14, [x14, _CDP_SRC_VALID_RELOAD@GOTPAGEOFF]
Lloh27:
	ldr	w14, [x14]
	orr	w11, w13, w11
	orr	w12, w14, w12
	cmp	x9, x10
	csel	w9, w11, w12, eq
	orr	w2, w8, w9
Lloh28:
	adrp	x8, _CDP@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CDP@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_omap_dma_chan_write
Lloh31:
	adrp	x8, _CNDP@GOTPAGE
Lloh32:
	ldr	x8, [x8, _CNDP@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	ldr	x8, [x20, #24]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_omap_dma_chan_write
Lloh34:
	adrp	x8, _CCDN@GOTPAGE
Lloh35:
	ldr	x8, [x8, _CCDN@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_omap_dma_chan_write
Lloh37:
	adrp	x8, _CCFN@GOTPAGE
Lloh38:
	ldr	x8, [x8, _CCFN@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #65535
	bl	_omap_dma_chan_write
Lloh40:
	adrp	x8, _CCEN@GOTPAGE
Lloh41:
	ldr	x8, [x8, _CCEN@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #16777215
	bl	_omap_dma_chan_write
Lloh43:
	adrp	x8, _CICR_BLOCK_IE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _CICR_BLOCK_IE@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	bic	w21, w21, w8
	b	LBB0_4
LBB0_2:
	ldr	x8, [x22]
	cbz	x8, LBB0_4
; %bb.3:
Lloh46:
	adrp	x8, _CDP@GOTPAGE
Lloh47:
	ldr	x8, [x8, _CDP@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_omap_dma_chan_write
LBB0_4:
Lloh49:
	adrp	x8, _CICR@GOTPAGE
Lloh50:
	ldr	x8, [x8, _CICR@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_omap_dma_chan_write
Lloh52:
	adrp	x8, _CCR@GOTPAGE
Lloh53:
	ldr	x8, [x8, _CCR@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
	ldr	w8, [x20, #16]
Lloh55:
	adrp	x9, _CCR_ENABLE@GOTPAGE
Lloh56:
	ldr	x9, [x9, _CCR_ENABLE@GOTPAGEOFF]
Lloh57:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_omap_dma_chan_write
	mov	w8, #1
	str	w8, [x19]
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_CPC,4,2                        ; @CPC
	.comm	_CDAC,4,2                       ; @CDAC
	.comm	_CDP_TMODE_LLIST,4,2            ; @CDP_TMODE_LLIST
	.comm	_CDP_NTYPE_TYPE2,4,2            ; @CDP_NTYPE_TYPE2
	.comm	_CDP_FAST,4,2                   ; @CDP_FAST
	.comm	_DMA_DEV_TO_MEM,8,3             ; @DMA_DEV_TO_MEM
	.comm	_CDP_DST_VALID_RELOAD,4,2       ; @CDP_DST_VALID_RELOAD
	.comm	_CDP_SRC_VALID_REUSE,4,2        ; @CDP_SRC_VALID_REUSE
	.comm	_CDP_DST_VALID_REUSE,4,2        ; @CDP_DST_VALID_REUSE
	.comm	_CDP_SRC_VALID_RELOAD,4,2       ; @CDP_SRC_VALID_RELOAD
	.comm	_CDP,4,2                        ; @CDP
	.comm	_CNDP,4,2                       ; @CNDP
	.comm	_CCDN,4,2                       ; @CCDN
	.comm	_CCFN,4,2                       ; @CCFN
	.comm	_CCEN,4,2                       ; @CCEN
	.comm	_CICR_BLOCK_IE,4,2              ; @CICR_BLOCK_IE
	.comm	_CICR,4,2                       ; @CICR
	.comm	_CCR,4,2                        ; @CCR
	.comm	_CCR_ENABLE,4,2                 ; @CCR_ENABLE
	.no_dead_strip	_omap_dma_start
.subsections_via_symbols
