	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_dma_get_dst_pos
_omap_dma_get_dst_pos:                  ## @omap_dma_get_dst_pos
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_to_omap_dma_dev
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	___dma_omap15xx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_CPC@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_omap_dma_chan_read
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_2:
	movq	_CDAC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_omap_dma_chan_read_3_3
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_5:
	xorl	%eax, %eax
	callq	_dma_omap1
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_CDSA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_omap_dma_chan_read
	andl	$-65536, %eax                   ## imm = 0xFFFF0000
	orl	%eax, %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	_CDSA@GOTPCREL(%rip), %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_CPC,4,2                        ## @CPC
	.comm	_CDAC,4,2                       ## @CDAC
	.comm	_CDSA,4,2                       ## @CDSA
	.no_dead_strip	_omap_dma_get_dst_pos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_dma_get_dst_pos
_omap_dma_get_dst_pos:                  ; @omap_dma_get_dst_pos
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0]
	bl	_to_omap_dma_dev
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	___dma_omap15xx
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _CPC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CPC@GOTPAGEOFF]
LBB0_2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_omap_dma_chan_read
	mov	x20, x0
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _CDAC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CDAC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_omap_dma_chan_read_3_3
	mov	x20, x0
	cbz	w0, LBB0_7
LBB0_4:
	bl	_dma_omap1
	cbz	x0, LBB0_6
; %bb.5:
Lloh5:
	adrp	x8, _CDSA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CDSA@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_omap_dma_chan_read
	and	w8, w0, #0xffff0000
	orr	w20, w8, w20
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh8:
	adrp	x8, _CDSA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CDSA@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CPC,4,2                        ; @CPC
	.comm	_CDAC,4,2                       ; @CDAC
	.comm	_CDSA,4,2                       ; @CDSA
	.no_dead_strip	_omap_dma_get_dst_pos
.subsections_via_symbols
