	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxa2xx_i2s_shutdown
_pxa2xx_i2s_shutdown:                   ## @pxa2xx_i2s_shutdown
	.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
	movq	%rsi, %rbx
	movq	(%rdi), %rax
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_SACR1_DRPL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_SACR1@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	orl	%ecx, %eax
	movl	%eax, (%rdx)
	movq	_SAIMR_TFS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	movq	_SAIMR@GOTPCREL(%rip), %rsi
	andl	(%rsi), %edx
	movq	_SACR1_DREC@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	jmp	LBB0_3
LBB0_2:
	movq	_SACR1_DREC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SACR1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	orl	%esi, %eax
	movl	%eax, (%rcx)
	movq	_SAIMR_RFS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	movq	_SAIMR@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	movq	_SACR1_DRPL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_3:
	orl	%esi, %ecx
	movq	_SAIMR@GOTPCREL(%rip), %rsi
	movl	%edx, (%rsi)
	notl	%eax
	testl	%eax, %ecx
	jne	LBB0_6
## %bb.4:
	movq	_SACR0_ENB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	_SACR0@GOTPCREL(%rip), %rcx
	andl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_pxa_i2s_wait
	cmpq	$0, (%rbx)
	je	LBB0_6
## %bb.5:
	movq	_clk_i2s@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_clk_disable
	movq	$0, (%rbx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_SACR1_DRPL,4,2                 ## @SACR1_DRPL
	.comm	_SACR1,4,2                      ## @SACR1
	.comm	_SAIMR_TFS,4,2                  ## @SAIMR_TFS
	.comm	_SAIMR,4,2                      ## @SAIMR
	.comm	_SACR1_DREC,4,2                 ## @SACR1_DREC
	.comm	_SAIMR_RFS,4,2                  ## @SAIMR_RFS
	.comm	_SACR0_ENB,4,2                  ## @SACR0_ENB
	.comm	_SACR0,4,2                      ## @SACR0
	.comm	_clk_i2s,4,2                    ## @clk_i2s
	.no_dead_strip	_pxa2xx_i2s_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pxa2xx_i2s_shutdown
_pxa2xx_i2s_shutdown:                   ; @pxa2xx_i2s_shutdown
	.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, x1
	ldr	x9, [x0]
Lloh0:
	adrp	x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
Lloh3:
	adrp	x8, _SAIMR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SAIMR@GOTPAGEOFF]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x9, _SACR1_DRPL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SACR1_DRPL@GOTPAGEOFF]
Lloh7:
	adrp	x11, _SACR1@GOTPAGE
Lloh8:
	ldr	x11, [x11, _SACR1@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x9]
	ldr	w9, [x11]
	orr	w9, w9, w10
	str	w9, [x11]
Lloh10:
	adrp	x11, _SAIMR_TFS@GOTPAGE
Lloh11:
	ldr	x11, [x11, _SAIMR_TFS@GOTPAGEOFF]
Lloh12:
	ldr	w11, [x11]
	ldr	w12, [x8]
	bic	w12, w12, w11
Lloh13:
	adrp	x11, _SACR1_DREC@GOTPAGE
Lloh14:
	ldr	x11, [x11, _SACR1_DREC@GOTPAGEOFF]
Lloh15:
	ldr	w11, [x11]
	b	LBB0_3
LBB0_2:
Lloh16:
	adrp	x9, _SACR1_DREC@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SACR1_DREC@GOTPAGEOFF]
Lloh18:
	adrp	x10, _SACR1@GOTPAGE
Lloh19:
	ldr	x10, [x10, _SACR1@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x9]
	ldr	w9, [x10]
	orr	w9, w9, w11
	str	w9, [x10]
Lloh21:
	adrp	x10, _SAIMR_RFS@GOTPAGE
Lloh22:
	ldr	x10, [x10, _SAIMR_RFS@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	ldr	w12, [x8]
	bic	w12, w12, w10
Lloh24:
	adrp	x10, _SACR1_DRPL@GOTPAGE
Lloh25:
	ldr	x10, [x10, _SACR1_DRPL@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
LBB0_3:
	str	w12, [x8]
	orr	w8, w10, w11
	bics	wzr, w8, w9
	b.ne	LBB0_6
; %bb.4:
Lloh27:
	adrp	x8, _SACR0_ENB@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SACR0_ENB@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _SACR0@GOTPAGE
Lloh31:
	ldr	x9, [x9, _SACR0@GOTPAGEOFF]
	ldr	w10, [x9]
	bic	w8, w10, w8
	str	w8, [x9]
	bl	_pxa_i2s_wait
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.5:
Lloh32:
	adrp	x8, _clk_i2s@GOTPAGE
Lloh33:
	ldr	x8, [x8, _clk_i2s@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_clk_disable
	str	xzr, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_SACR1_DRPL,4,2                 ; @SACR1_DRPL
	.comm	_SACR1,4,2                      ; @SACR1
	.comm	_SAIMR_TFS,4,2                  ; @SAIMR_TFS
	.comm	_SAIMR,4,2                      ; @SAIMR
	.comm	_SACR1_DREC,4,2                 ; @SACR1_DREC
	.comm	_SAIMR_RFS,4,2                  ; @SAIMR_RFS
	.comm	_SACR0_ENB,4,2                  ; @SACR0_ENB
	.comm	_SACR0,4,2                      ; @SACR0
	.comm	_clk_i2s,4,2                    ; @clk_i2s
	.no_dead_strip	_pxa2xx_i2s_shutdown
.subsections_via_symbols
