	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function au1xpsc_i2s_configure
_au1xpsc_i2s_configure:                 ## @au1xpsc_i2s_configure
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_PSC_CTRL_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	callq	_PSC_CTRL
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_au_writel
	xorl	%eax, %eax
	callq	_au_sync
	movq	$-1000000, %rax                 ## imm = 0xFFF0BDC0
	movq	_PSC_I2SSTAT_SR@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_I2S_STAT
	movl	%eax, %edi
	callq	_au_readl
	testl	%eax, (%r14)
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	1(%rbx), %rax
	testq	%rbx, %rbx
	jne	LBB0_1
LBB0_3:
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.4:
	movq	%r12, %rdi
	callq	_I2S_CFG
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_au_writel
	xorl	%eax, %eax
	callq	_au_sync
	movq	_PSC_I2SCFG_DE_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	orl	(%r12), %r14d
	movq	%r12, %rdi
	callq	_I2S_CFG
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_au_writel
	xorl	%eax, %eax
	callq	_au_sync
	movq	$-1000000, %rax                 ## imm = 0xFFF0BDC0
	movq	_PSC_I2SSTAT_DR@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_I2S_STAT
	movl	%eax, %edi
	callq	_au_readl
	testl	%eax, (%r14)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	1(%rbx), %rax
	testq	%rbx, %rbx
	jne	LBB0_5
LBB0_7:
	xorl	%r14d, %r14d
	testq	%rbx, %rbx
	jne	LBB0_9
LBB0_8:
	movq	%r12, %rdi
	callq	_I2S_CFG
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_au_writel
	movq	_PSC_CTRL_SUSPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r12, %rdi
	callq	_PSC_CTRL
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_au_writel
	xorl	%eax, %eax
	callq	_au_sync
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PSC_CTRL_ENABLE,4,2            ## @PSC_CTRL_ENABLE
	.comm	_PSC_I2SSTAT_SR,4,2             ## @PSC_I2SSTAT_SR
	.comm	_PSC_I2SCFG_DE_ENABLE,4,2       ## @PSC_I2SCFG_DE_ENABLE
	.comm	_PSC_I2SSTAT_DR,4,2             ## @PSC_I2SSTAT_DR
	.comm	_PSC_CTRL_SUSPEND,4,2           ## @PSC_CTRL_SUSPEND
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_au1xpsc_i2s_configure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function au1xpsc_i2s_configure
_au1xpsc_i2s_configure:                 ; @au1xpsc_i2s_configure
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	mov	x21, #-16960
	movk	x21, #65520, lsl #16
Lloh0:
	adrp	x8, _PSC_CTRL_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PSC_CTRL_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	bl	_PSC_CTRL
	mov	x1, x0
	mov	x0, x20
	bl	_au_writel
	bl	_au_sync
Lloh3:
	adrp	x20, _PSC_I2SSTAT_SR@GOTPAGE
Lloh4:
	ldr	x20, [x20, _PSC_I2SSTAT_SR@GOTPAGEOFF]
	mov	x8, #-16960
	movk	x8, #65520, lsl #16
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x22, x8
	mov	x0, x19
	bl	_I2S_STAT
	bl	_au_readl
	ldr	w8, [x20]
	and	w9, w8, w0
	add	x8, x22, #1
	cmp	w9, #0
	ccmp	x22, #0, #4, eq
	b.ne	LBB0_1
; %bb.2:
	cbz	x22, LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_I2S_CFG
	mov	x1, x0
	mov	w0, #0
	bl	_au_writel
	bl	_au_sync
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _PSC_I2SCFG_DE_ENABLE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PSC_I2SCFG_DE_ENABLE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w20, w9, w8
	mov	x0, x19
	bl	_I2S_CFG
	mov	x1, x0
	mov	x0, x20
	bl	_au_writel
	bl	_au_sync
Lloh8:
	adrp	x20, _PSC_I2SSTAT_DR@GOTPAGE
Lloh9:
	ldr	x20, [x20, _PSC_I2SSTAT_DR@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x22, x21
	mov	x0, x19
	bl	_I2S_STAT
	bl	_au_readl
	ldr	w8, [x20]
	and	w8, w8, w0
	add	x21, x21, #1
	cmp	w8, #0
	ccmp	x22, #0, #4, eq
	b.ne	LBB0_4
; %bb.5:
	cbz	x22, LBB0_7
; %bb.6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_I2S_CFG
	mov	x1, x0
	mov	w0, #0
	bl	_au_writel
Lloh10:
	adrp	x8, _PSC_CTRL_SUSPEND@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PSC_CTRL_SUSPEND@GOTPAGEOFF]
Lloh12:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_PSC_CTRL
	mov	x1, x0
	mov	x0, x20
	bl	_au_writel
	bl	_au_sync
Lloh13:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PSC_CTRL_ENABLE,4,2            ; @PSC_CTRL_ENABLE
	.comm	_PSC_I2SSTAT_SR,4,2             ; @PSC_I2SSTAT_SR
	.comm	_PSC_I2SCFG_DE_ENABLE,4,2       ; @PSC_I2SCFG_DE_ENABLE
	.comm	_PSC_I2SSTAT_DR,4,2             ; @PSC_I2SSTAT_DR
	.comm	_PSC_CTRL_SUSPEND,4,2           ; @PSC_CTRL_SUSPEND
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_au1xpsc_i2s_configure
.subsections_via_symbols
