	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function davinci_i2s_trigger
_davinci_i2s_trigger:                   ## @davinci_i2s_trigger
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ecx
	movq	%rdi, %rax
	movq	(%rdx), %rdi
	movq	(%rax), %rdx
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rbx
	xorl	%esi, %esi
	cmpq	(%rbx), %rdx
	sete	%r8b
	movq	_DAVINCI_MCBSP_PCR_FSXM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	xorl	%ebx, %ebx
	testl	%edx, (%rdi)
	je	LBB0_6
## %bb.1:
	addl	$-128, %ecx
	cmpl	$5, %ecx
	ja	LBB0_5
## %bb.2:
	movl	$28, %edx
	btl	%ecx, %edx
	jae	LBB0_4
## %bb.3:
	movq	%rax, %rsi
	callq	_davinci_mcbsp_start
	jmp	LBB0_6
LBB0_4:
	movb	%r8b, %sil
	callq	_davinci_mcbsp_stop
	jmp	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_DAVINCI_MCBSP_PCR_FSXM,4,2     ## @DAVINCI_MCBSP_PCR_FSXM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_davinci_i2s_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function davinci_i2s_trigger
_davinci_i2s_trigger:                   ; @davinci_i2s_trigger
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x9, x1
	mov	x8, x0
	ldr	x0, [x2]
	ldr	x10, [x8]
Lloh0:
	adrp	x11, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh1:
	ldr	x11, [x11, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	cmp	x10, x11
	cset	w1, eq
	ldr	w10, [x0]
Lloh3:
	adrp	x11, _DAVINCI_MCBSP_PCR_FSXM@GOTPAGE
Lloh4:
	ldr	x11, [x11, _DAVINCI_MCBSP_PCR_FSXM@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_5
; %bb.1:
	sub	w9, w9, #128
	cmp	w9, #5
	b.hi	LBB0_6
; %bb.2:
	mov	w10, #1
	lsl	w9, w10, w9
	tst	w9, #0x1c
	b.eq	LBB0_4
; %bb.3:
	mov	x1, x8
	bl	_davinci_mcbsp_start
	b	LBB0_5
LBB0_4:
	bl	_davinci_mcbsp_stop
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_DAVINCI_MCBSP_PCR_FSXM,4,2     ; @DAVINCI_MCBSP_PCR_FSXM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_davinci_i2s_trigger
.subsections_via_symbols
