	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx_ssi_shutdown
_imx_ssi_shutdown:                      ## @imx_ssi_shutdown
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	cmpl	$0, 8(%rax)
	je	LBB0_1
LBB0_8:
	popq	%rbp
	retq
LBB0_1:
	movq	(%rax), %rcx
	movq	_IMX_DAI_SSI0@GOTPCREL(%rip), %rdx
	movq	_ssi_active@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%rdx), %rcx
	je	LBB0_3
## %bb.2:
	movq	_IMX_DAI_SSI2@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_3
## %bb.5:
	movq	_SSI2_PORT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	decl	(%rax,%rcx,4)
	jne	LBB0_8
## %bb.6:
	movq	_ssi_clk1@GOTPCREL(%rip), %rax
	movq	_SSI2_SCR@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_3:
	movq	_SSI1_PORT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edx
	leal	-1(%rdx), %esi
	movl	%esi, (%rax,%rcx,4)
	cmpl	$2, %edx
	jg	LBB0_8
## %bb.4:
	movq	_ssi_clk0@GOTPCREL(%rip), %rax
	movq	_SSI1_SCR@GOTPCREL(%rip), %rcx
LBB0_7:
	movq	$0, (%rcx)
	movl	(%rax), %edi
	popq	%rbp
	jmp	_clk_disable                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IMX_DAI_SSI0,8,3               ## @IMX_DAI_SSI0
	.comm	_IMX_DAI_SSI2,8,3               ## @IMX_DAI_SSI2
	.comm	_ssi_active,8,3                 ## @ssi_active
	.comm	_SSI1_PORT,8,3                  ## @SSI1_PORT
	.comm	_SSI1_SCR,8,3                   ## @SSI1_SCR
	.comm	_ssi_clk0,4,2                   ## @ssi_clk0
	.comm	_SSI2_PORT,8,3                  ## @SSI2_PORT
	.comm	_SSI2_SCR,8,3                   ## @SSI2_SCR
	.comm	_ssi_clk1,4,2                   ## @ssi_clk1
	.no_dead_strip	_imx_ssi_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx_ssi_shutdown
_imx_ssi_shutdown:                      ; @imx_ssi_shutdown
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_2
LBB0_1:
	ret
LBB0_2:
	ldr	x9, [x8]
Lloh0:
	adrp	x8, _IMX_DAI_SSI0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IMX_DAI_SSI0@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
Lloh3:
	adrp	x8, _IMX_DAI_SSI2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IMX_DAI_SSI2@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x8]
Lloh6:
	adrp	x8, _ssi_active@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ssi_active@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_5
; %bb.3:
Lloh9:
	adrp	x9, _SSI1_PORT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SSI1_PORT@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	sub	w11, w10, #1
	str	w11, [x8, x9]
	cmp	w10, #2
	b.gt	LBB0_1
; %bb.4:
Lloh12:
	adrp	x8, _ssi_clk0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ssi_clk0@GOTPAGEOFF]
Lloh14:
	adrp	x9, _SSI1_SCR@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SSI1_SCR@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh16:
	adrp	x9, _SSI2_PORT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SSI2_PORT@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	subs	w10, w10, #1
	str	w10, [x8, x9]
	b.ne	LBB0_1
; %bb.6:
Lloh19:
	adrp	x8, _ssi_clk1@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ssi_clk1@GOTPAGEOFF]
Lloh21:
	adrp	x9, _SSI2_SCR@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SSI2_SCR@GOTPAGEOFF]
LBB0_7:
	str	xzr, [x9]
	ldr	w0, [x8]
	b	_clk_disable
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IMX_DAI_SSI0,8,3               ; @IMX_DAI_SSI0
	.comm	_IMX_DAI_SSI2,8,3               ; @IMX_DAI_SSI2
	.comm	_ssi_active,8,3                 ; @ssi_active
	.comm	_SSI1_PORT,8,3                  ; @SSI1_PORT
	.comm	_SSI1_SCR,8,3                   ; @SSI1_SCR
	.comm	_ssi_clk0,4,2                   ; @ssi_clk0
	.comm	_SSI2_PORT,8,3                  ; @SSI2_PORT
	.comm	_SSI2_SCR,8,3                   ; @SSI2_SCR
	.comm	_ssi_clk1,4,2                   ; @ssi_clk1
	.no_dead_strip	_imx_ssi_shutdown
.subsections_via_symbols
