	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_mcbsp_set_threshold
_omap_mcbsp_set_threshold:              ## @omap_mcbsp_set_threshold
	.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, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_to_mcbsp
	movq	%rax, %r14
	movl	(%rax), %edi
	callq	_omap_mcbsp_get_dma_op_mode
	movq	_MCBSP_DMA_MODE_THRESHOLD@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_snd_pcm_lib_period_bytes
	movl	%eax, %esi
	sarl	%esi
	decl	%esi
LBB0_2:
	movq	(%rbx), %rax
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rcx
	movl	(%r14), %edi
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_omap_mcbsp_set_tx_threshold    ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_omap_mcbsp_set_rx_threshold    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MCBSP_DMA_MODE_THRESHOLD,4,2   ## @MCBSP_DMA_MODE_THRESHOLD
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.no_dead_strip	_omap_mcbsp_set_threshold
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_mcbsp_set_threshold
_omap_mcbsp_set_threshold:              ; @omap_mcbsp_set_threshold
	.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	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_to_mcbsp
	mov	x20, x0
	ldr	w0, [x0]
	bl	_omap_mcbsp_get_dma_op_mode
Lloh0:
	adrp	x8, _MCBSP_DMA_MODE_THRESHOLD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCBSP_DMA_MODE_THRESHOLD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_snd_pcm_lib_period_bytes
	asr	w8, w0, #1
	sub	w1, w8, #1
	b	LBB0_3
LBB0_2:
	mov	w1, #0
LBB0_3:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w0, [x20]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_omap_mcbsp_set_tx_threshold
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_omap_mcbsp_set_rx_threshold
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MCBSP_DMA_MODE_THRESHOLD,4,2   ; @MCBSP_DMA_MODE_THRESHOLD
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.no_dead_strip	_omap_mcbsp_set_threshold
.subsections_via_symbols
