	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx_ssi_trigger
_imx_ssi_trigger:                       ## @imx_ssi_trigger
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_IMX_DAI_SSI0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_IMX_DAI_SSI2@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%al
	orb	%cl, %al
	je	LBB0_1
## %bb.2:
	movq	_SSI1_SCR@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_SSI2_SCR@GOTPCREL(%rip), %rcx
LBB0_3:
	addl	$-128, %esi
	cmpl	$5, %esi
	ja	LBB0_15
## %bb.4:
	movl	(%rcx), %ecx
	movl	$28, %edx
	btl	%esi, %edx
	jae	LBB0_11
## %bb.5:
	movl	(%rdi), %edx
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	jne	LBB0_10
## %bb.6:
	movq	_SSI_SCR_TE@GOTPCREL(%rip), %rdx
	jmp	LBB0_7
LBB0_11:
	movl	(%rdi), %edx
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	jne	LBB0_14
## %bb.12:
	movq	_SSI_SCR_TE@GOTPCREL(%rip), %rdx
	jmp	LBB0_13
LBB0_10:
	movq	_SSI_SCR_RE@GOTPCREL(%rip), %rdx
LBB0_7:
	movq	_SSI_SCR_SSIEN@GOTPCREL(%rip), %rsi
	orl	(%rdx), %ecx
	orl	(%rsi), %ecx
	testb	%al, %al
	jne	LBB0_9
LBB0_16:
	movq	_SSI2_SCR@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_14:
	movq	_SSI_SCR_RE@GOTPCREL(%rip), %rdx
LBB0_13:
	movl	(%rdx), %edx
	notl	%edx
	andl	%edx, %ecx
	testb	%al, %al
	je	LBB0_16
LBB0_9:
	movq	_SSI1_SCR@GOTPCREL(%rip), %rax
LBB0_17:
	movl	%ecx, (%rax)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IMX_DAI_SSI0,8,3               ## @IMX_DAI_SSI0
	.comm	_IMX_DAI_SSI2,8,3               ## @IMX_DAI_SSI2
	.comm	_SSI1_SCR,4,2                   ## @SSI1_SCR
	.comm	_SSI2_SCR,4,2                   ## @SSI2_SCR
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,4,2  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_SSI_SCR_TE,4,2                 ## @SSI_SCR_TE
	.comm	_SSI_SCR_SSIEN,4,2              ## @SSI_SCR_SSIEN
	.comm	_SSI_SCR_RE,4,2                 ## @SSI_SCR_RE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_imx_ssi_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx_ssi_trigger
_imx_ssi_trigger:                       ; @imx_ssi_trigger
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _IMX_DAI_SSI0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IMX_DAI_SSI0@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh3:
	adrp	x9, _IMX_DAI_SSI2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IMX_DAI_SSI2@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
Lloh6:
	adrp	x8, _SSI1_SCR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSI1_SCR@GOTPAGEOFF]
	cset	w10, eq
Lloh8:
	adrp	x9, _SSI2_SCR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SSI2_SCR@GOTPAGEOFF]
	csel	x11, x8, x9, eq
	sub	w12, w1, #128
	cmp	w12, #5
	b.hi	LBB0_12
; %bb.1:
	ldr	w11, [x11]
	mov	w13, #1
	lsl	w12, w13, w12
	tst	w12, #0x1c
	b.eq	LBB0_4
; %bb.2:
	ldr	w12, [x0]
Lloh10:
	adrp	x13, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh11:
	ldr	x13, [x13, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh12:
	ldr	w13, [x13]
	cmp	w12, w13
	b.ne	LBB0_6
; %bb.3:
Lloh13:
	adrp	x12, _SSI_SCR_TE@GOTPAGE
Lloh14:
	ldr	x12, [x12, _SSI_SCR_TE@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	ldr	w12, [x0]
Lloh15:
	adrp	x13, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh16:
	ldr	x13, [x13, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh17:
	ldr	w13, [x13]
	cmp	w12, w13
	b.ne	LBB0_9
; %bb.5:
Lloh18:
	adrp	x12, _SSI_SCR_TE@GOTPAGE
Lloh19:
	ldr	x12, [x12, _SSI_SCR_TE@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
Lloh20:
	adrp	x12, _SSI_SCR_RE@GOTPAGE
Lloh21:
	ldr	x12, [x12, _SSI_SCR_RE@GOTPAGEOFF]
LBB0_7:
	ldr	w12, [x12]
Lloh22:
	adrp	x13, _SSI_SCR_SSIEN@GOTPAGE
Lloh23:
	ldr	x13, [x13, _SSI_SCR_SSIEN@GOTPAGEOFF]
Lloh24:
	ldr	w13, [x13]
	orr	w11, w12, w11
	orr	w11, w11, w13
	mov	w0, #0
	cbnz	w10, LBB0_11
LBB0_8:
	str	w11, [x9]
	ret
LBB0_9:
Lloh25:
	adrp	x12, _SSI_SCR_RE@GOTPAGE
Lloh26:
	ldr	x12, [x12, _SSI_SCR_RE@GOTPAGEOFF]
LBB0_10:
	ldr	w12, [x12]
	bic	w11, w11, w12
	mov	w0, #0
	cbz	w10, LBB0_8
LBB0_11:
	str	w11, [x8]
	ret
LBB0_12:
Lloh27:
	adrp	x8, _EINVAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_IMX_DAI_SSI0,8,3               ; @IMX_DAI_SSI0
	.comm	_IMX_DAI_SSI2,8,3               ; @IMX_DAI_SSI2
	.comm	_SSI1_SCR,4,2                   ; @SSI1_SCR
	.comm	_SSI2_SCR,4,2                   ; @SSI2_SCR
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,4,2  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_SSI_SCR_TE,4,2                 ; @SSI_SCR_TE
	.comm	_SSI_SCR_SSIEN,4,2              ; @SSI_SCR_SSIEN
	.comm	_SSI_SCR_RE,4,2                 ; @SSI_SCR_RE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_imx_ssi_trigger
.subsections_via_symbols
