	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_pcm_prepare
_omap_pcm_prepare:                      ## @omap_pcm_prepare
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r13
	movq	8(%r13), %r14
	movq	8(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.1:
	movq	%rdi, %r15
	leaq	-112(%rbp), %rdi
	xorl	%esi, %esi
	movl	$72, %edx
	callq	_memset
	movq	_OMAP_DMA_DATA_TYPE_S16@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	8(%rbx), %eax
	movl	%eax, -52(%rbp)
	movl	4(%rbx), %eax
	movl	%eax, -56(%rbp)
	movq	(%r15), %rax
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_3
## %bb.2:
	movq	_OMAP_DMA_AMODE_POST_INC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_OMAP_DMA_AMODE_CONSTANT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_OMAP_DMA_DST_SYNC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	4(%r13), %esi
	movl	(%rbx), %edi
	movq	_OMAP_DMA_PORT_MPUI@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rbx
	movq	%rbx, -64(%rbp)
	jmp	LBB0_4
LBB0_3:
	movq	_OMAP_DMA_AMODE_CONSTANT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_OMAP_DMA_AMODE_POST_INC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_OMAP_DMA_SRC_SYNC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	(%rbx), %esi
	movl	4(%r13), %edi
	movq	_OMAP_DMA_PORT_MPUI@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rbx
	movq	%rbx, -104(%rbp)
LBB0_4:
	movq	%rax, -72(%rbp)
	movq	%rcx, -80(%rbp)
	movl	%edx, -88(%rbp)
	movl	%esi, -92(%rbp)
	movl	%edi, -96(%rbp)
	movq	%r15, %rdi
	callq	_snd_pcm_lib_period_bytes
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, -112(%rbp)
	movl	(%r13), %eax
	movl	%eax, -108(%rbp)
	movl	(%r14), %edi
	leaq	-112(%rbp), %rsi
	callq	_omap_set_dma_params
	xorl	%eax, %eax
	callq	_cpu_is_omap1510
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	(%r15), %rax
	cmpq	(%r12), %rax
	jne	LBB0_7
## %bb.6:
	movq	_OMAP_DMA_FRAME_IRQ@GOTPCREL(%rip), %rax
	movq	_OMAP_DMA_LAST_IRQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	(%r14), %edi
	movq	_OMAP_DMA_BLOCK_IRQ@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	jmp	LBB0_8
LBB0_7:
	movl	(%r14), %edi
	movq	_OMAP_DMA_FRAME_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_8:
	callq	_omap_enable_dma_irq
	xorl	%eax, %eax
	callq	_cpu_class_is_omap1
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movl	(%r14), %edi
	movq	_OMAP_DMA_DATA_BURST_16@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_omap_set_dma_src_burst_mode
	movl	(%r14), %edi
	movl	(%rbx), %esi
	callq	_omap_set_dma_dest_burst_mode
LBB0_10:
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OMAP_DMA_DATA_TYPE_S16,4,2     ## @OMAP_DMA_DATA_TYPE_S16
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_OMAP_DMA_AMODE_POST_INC,8,3    ## @OMAP_DMA_AMODE_POST_INC
	.comm	_OMAP_DMA_AMODE_CONSTANT,8,3    ## @OMAP_DMA_AMODE_CONSTANT
	.comm	_OMAP_DMA_DST_SYNC,4,2          ## @OMAP_DMA_DST_SYNC
	.comm	_OMAP_DMA_PORT_MPUI,8,3         ## @OMAP_DMA_PORT_MPUI
	.comm	_OMAP_DMA_SRC_SYNC,4,2          ## @OMAP_DMA_SRC_SYNC
	.comm	_OMAP_DMA_FRAME_IRQ,4,2         ## @OMAP_DMA_FRAME_IRQ
	.comm	_OMAP_DMA_LAST_IRQ,4,2          ## @OMAP_DMA_LAST_IRQ
	.comm	_OMAP_DMA_BLOCK_IRQ,4,2         ## @OMAP_DMA_BLOCK_IRQ
	.comm	_OMAP_DMA_DATA_BURST_16,4,2     ## @OMAP_DMA_DATA_BURST_16
	.no_dead_strip	_omap_pcm_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_pcm_prepare
_omap_pcm_prepare:                      ; @omap_pcm_prepare
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	ldr	x21, [x0, #8]
	ldr	x20, [x21, #8]
	ldr	x23, [x20, #8]
	cbz	x23, LBB0_10
; %bb.1:
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #72
	bl	_memset
Lloh0:
	adrp	x8, _OMAP_DMA_DATA_TYPE_S16@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OMAP_DMA_DATA_TYPE_S16@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #72]
	ldur	d0, [x23, #4]
	str	d0, [sp, #64]
	ldr	x8, [x19]
Lloh3:
	adrp	x22, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _OMAP_DMA_AMODE_POST_INC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OMAP_DMA_AMODE_POST_INC@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _OMAP_DMA_AMODE_CONSTANT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _OMAP_DMA_AMODE_CONSTANT@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _OMAP_DMA_DST_SYNC@GOTPAGE
Lloh12:
	ldr	x10, [x10, _OMAP_DMA_DST_SYNC@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	ldr	w11, [x21, #4]
	ldr	w12, [x23]
Lloh14:
	adrp	x13, _OMAP_DMA_PORT_MPUI@GOTPAGE
Lloh15:
	ldr	x13, [x13, _OMAP_DMA_PORT_MPUI@GOTPAGEOFF]
Lloh16:
	ldr	x13, [x13]
	str	x13, [sp, #56]
	b	LBB0_4
LBB0_3:
Lloh17:
	adrp	x8, _OMAP_DMA_AMODE_CONSTANT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _OMAP_DMA_AMODE_CONSTANT@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
Lloh20:
	adrp	x9, _OMAP_DMA_AMODE_POST_INC@GOTPAGE
Lloh21:
	ldr	x9, [x9, _OMAP_DMA_AMODE_POST_INC@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
Lloh23:
	adrp	x10, _OMAP_DMA_SRC_SYNC@GOTPAGE
Lloh24:
	ldr	x10, [x10, _OMAP_DMA_SRC_SYNC@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	ldr	w11, [x23]
	ldr	w12, [x21, #4]
Lloh26:
	adrp	x13, _OMAP_DMA_PORT_MPUI@GOTPAGE
Lloh27:
	ldr	x13, [x13, _OMAP_DMA_PORT_MPUI@GOTPAGEOFF]
Lloh28:
	ldr	x13, [x13]
	str	x13, [sp, #16]
LBB0_4:
	stp	x9, x8, [sp, #40]
	stp	w11, w10, [sp, #28]
	str	w12, [sp, #24]
	mov	x0, x19
	bl	_snd_pcm_lib_period_bytes
	cmp	w0, #0
	cinc	w8, w0, lt
	asr	w8, w8, #1
	str	w8, [sp, #8]
	ldr	w8, [x21]
	str	w8, [sp, #12]
	ldr	w0, [x20]
	add	x1, sp, #8
	bl	_omap_set_dma_params
	bl	_cpu_is_omap1510
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x8, [x19]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	ldr	w0, [x20]
Lloh29:
	adrp	x8, _OMAP_DMA_FRAME_IRQ@GOTPAGE
Lloh30:
	ldr	x8, [x8, _OMAP_DMA_FRAME_IRQ@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _OMAP_DMA_LAST_IRQ@GOTPAGE
Lloh33:
	ldr	x9, [x9, _OMAP_DMA_LAST_IRQ@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh35:
	adrp	x9, _OMAP_DMA_BLOCK_IRQ@GOTPAGE
Lloh36:
	ldr	x9, [x9, _OMAP_DMA_BLOCK_IRQ@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	orr	w1, w8, w9
	b	LBB0_8
LBB0_7:
	ldr	w0, [x20]
Lloh38:
	adrp	x8, _OMAP_DMA_FRAME_IRQ@GOTPAGE
Lloh39:
	ldr	x8, [x8, _OMAP_DMA_FRAME_IRQ@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
LBB0_8:
	bl	_omap_enable_dma_irq
	bl	_cpu_class_is_omap1
	cbnz	w0, LBB0_10
; %bb.9:
	ldr	w0, [x20]
Lloh41:
	adrp	x19, _OMAP_DMA_DATA_BURST_16@GOTPAGE
Lloh42:
	ldr	x19, [x19, _OMAP_DMA_DATA_BURST_16@GOTPAGEOFF]
	ldr	w1, [x19]
	bl	_omap_set_dma_src_burst_mode
	ldr	w0, [x20]
	ldr	w1, [x19]
	bl	_omap_set_dma_dest_burst_mode
LBB0_10:
	mov	w0, #0
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_OMAP_DMA_DATA_TYPE_S16,4,2     ; @OMAP_DMA_DATA_TYPE_S16
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_OMAP_DMA_AMODE_POST_INC,8,3    ; @OMAP_DMA_AMODE_POST_INC
	.comm	_OMAP_DMA_AMODE_CONSTANT,8,3    ; @OMAP_DMA_AMODE_CONSTANT
	.comm	_OMAP_DMA_DST_SYNC,4,2          ; @OMAP_DMA_DST_SYNC
	.comm	_OMAP_DMA_PORT_MPUI,8,3         ; @OMAP_DMA_PORT_MPUI
	.comm	_OMAP_DMA_SRC_SYNC,4,2          ; @OMAP_DMA_SRC_SYNC
	.comm	_OMAP_DMA_FRAME_IRQ,4,2         ; @OMAP_DMA_FRAME_IRQ
	.comm	_OMAP_DMA_LAST_IRQ,4,2          ; @OMAP_DMA_LAST_IRQ
	.comm	_OMAP_DMA_BLOCK_IRQ,4,2         ; @OMAP_DMA_BLOCK_IRQ
	.comm	_OMAP_DMA_DATA_BURST_16,4,2     ; @OMAP_DMA_DATA_BURST_16
	.no_dead_strip	_omap_pcm_prepare
.subsections_via_symbols
