	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_mcbsp_dai_startup
_omap_mcbsp_dai_startup:                ## @omap_mcbsp_dai_startup
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movl	4(%rbx), %edi
	callq	_to_mcbsp
	movl	(%rax), %r13d
	xorl	%r14d, %r14d
	cmpl	$0, (%rbx)
	jne	LBB0_2
## %bb.1:
	movl	%r13d, %edi
	callq	_omap_mcbsp_request
	movl	%eax, %r14d
LBB0_2:
	xorl	%eax, %eax
	callq	_cpu_is_omap343x
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movl	%r13d, %edi
	callq	_omap_mcbsp_get_dma_op_mode
	movl	%eax, %r12d
	cmpl	$1, %r13d
	jne	LBB0_5
## %bb.4:
	movl	8(%r15), %edi
	movq	_SNDRV_PCM_HW_PARAM_BUFFER_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_snd_pcm_hw_constraint_minmax
LBB0_5:
	movq	(%r15), %rax
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movl	%r13d, %edi
	callq	_omap_mcbsp_get_max_tx_threshold
	jmp	LBB0_8
LBB0_7:
	movl	%r13d, %edi
	callq	_omap_mcbsp_get_max_rx_threshold
LBB0_8:
                                        ## kill: def $eax killed $eax def $rax
	movq	_MCBSP_DMA_MODE_THRESHOLD@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r12d
	jne	LBB0_10
## %bb.9:
	leal	(%rax,%rax), %ecx
	addl	$2, %ecx
	movl	8(%r15), %edi
	movq	_SNDRV_PCM_HW_PARAM_PERIOD_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edx
	callq	_snd_pcm_hw_constraint_minmax
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_PCM_HW_PARAM_BUFFER_BYTES,4,2 ## @SNDRV_PCM_HW_PARAM_BUFFER_BYTES
	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_MCBSP_DMA_MODE_THRESHOLD,4,2   ## @MCBSP_DMA_MODE_THRESHOLD
	.comm	_SNDRV_PCM_HW_PARAM_PERIOD_BYTES,4,2 ## @SNDRV_PCM_HW_PARAM_PERIOD_BYTES
	.no_dead_strip	_omap_mcbsp_dai_startup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_mcbsp_dai_startup
_omap_mcbsp_dai_startup:                ; @omap_mcbsp_dai_startup
	.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	x19, x0
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	ldr	x20, [x8]
	ldr	w0, [x20, #4]
	bl	_to_mcbsp
	ldr	w21, [x0]
	ldr	w8, [x20]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w20, #0
	bl	_cpu_is_omap343x
	cbnz	x0, LBB0_3
	b	LBB0_10
LBB0_2:
	mov	x0, x21
	bl	_omap_mcbsp_request
	mov	x20, x0
	bl	_cpu_is_omap343x
	cbz	x0, LBB0_10
LBB0_3:
	mov	x0, x21
	bl	_omap_mcbsp_get_dma_op_mode
	mov	x22, x0
	cmp	w21, #1
	b.ne	LBB0_5
; %bb.4:
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x8, _SNDRV_PCM_HW_PARAM_BUFFER_BYTES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_BUFFER_BYTES@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	w2, #4096
	bl	_snd_pcm_hw_constraint_minmax
LBB0_5:
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	mov	x0, x21
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	bl	_omap_mcbsp_get_max_tx_threshold
	b	LBB0_8
LBB0_7:
	bl	_omap_mcbsp_get_max_rx_threshold
LBB0_8:
Lloh9:
	adrp	x8, _MCBSP_DMA_MODE_THRESHOLD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MCBSP_DMA_MODE_THRESHOLD@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_10
; %bb.9:
	lsl	w8, w0, #1
	add	w3, w8, #2
	ldr	w0, [x19, #8]
Lloh12:
	adrp	x8, _SNDRV_PCM_HW_PARAM_PERIOD_BYTES@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_PERIOD_BYTES@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	w2, #32
	bl	_snd_pcm_hw_constraint_minmax
LBB0_10:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_PCM_HW_PARAM_BUFFER_BYTES,4,2 ; @SNDRV_PCM_HW_PARAM_BUFFER_BYTES
	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_MCBSP_DMA_MODE_THRESHOLD,4,2   ; @MCBSP_DMA_MODE_THRESHOLD
	.comm	_SNDRV_PCM_HW_PARAM_PERIOD_BYTES,4,2 ; @SNDRV_PCM_HW_PARAM_PERIOD_BYTES
	.no_dead_strip	_omap_mcbsp_dai_startup
.subsections_via_symbols
