	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function au1xpsc_i2s_hw_params
_au1xpsc_i2s_hw_params:                 ## @au1xpsc_i2s_hw_params
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	_au1xpsc_i2s_workdata@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_I2S_STAT
	movl	%eax, %edi
	callq	_au_readl
	movq	_PSC_I2SSTAT_TB@GOTPCREL(%rip), %rcx
	movq	_PSC_I2SSTAT_RB@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	orq	(%rcx), %rdx
	testq	%rax, %rdx
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_I2S_CFG
	movl	%eax, %edi
	callq	_au_readl
	movl	%eax, %edi
	callq	_PSC_I2SCFG_GET_LEN
	cmpq	(%r14), %rax
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_params_rate
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	(%rbx), %rcx
	je	LBB0_5
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_4:
	andl	$-497, 8(%rbx)                  ## imm = 0xFE0F
	movq	(%r14), %rdi
	callq	_PSC_I2SCFG_SET_LEN
	orl	%eax, 8(%rbx)
	movq	%r14, %rdi
	callq	_params_rate
	movq	%rax, (%rbx)
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_au1xpsc_i2s_workdata,8,3       ## @au1xpsc_i2s_workdata
	.comm	_PSC_I2SSTAT_TB,8,3             ## @PSC_I2SSTAT_TB
	.comm	_PSC_I2SSTAT_RB,8,3             ## @PSC_I2SSTAT_RB
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_au1xpsc_i2s_hw_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function au1xpsc_i2s_hw_params
_au1xpsc_i2s_hw_params:                 ; @au1xpsc_i2s_hw_params
	.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	x20, x1
Lloh0:
	adrp	x8, _au1xpsc_i2s_workdata@GOTPAGE
Lloh1:
	ldr	x8, [x8, _au1xpsc_i2s_workdata@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	mov	x0, x19
	bl	_I2S_STAT
	bl	_au_readl
Lloh3:
	adrp	x8, _PSC_I2SSTAT_TB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PSC_I2SSTAT_TB@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _PSC_I2SSTAT_RB@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PSC_I2SSTAT_RB@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	orr	x8, x9, x8
	tst	x8, x0
	b.eq	LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_I2S_CFG
	bl	_au_readl
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_PSC_I2SCFG_GET_LEN
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_params_rate
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	ldr	w8, [x19, #8]
	and	w8, w8, #0xfffffe0f
	str	w8, [x19, #8]
	ldr	x0, [x20]
	bl	_PSC_I2SCFG_SET_LEN
	ldr	w8, [x19, #8]
	orr	w8, w8, w0
	str	w8, [x19, #8]
	mov	x0, x20
	bl	_params_rate
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_au1xpsc_i2s_workdata,8,3       ; @au1xpsc_i2s_workdata
	.comm	_PSC_I2SSTAT_TB,8,3             ; @PSC_I2SSTAT_TB
	.comm	_PSC_I2SSTAT_RB,8,3             ; @PSC_I2SSTAT_RB
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_au1xpsc_i2s_hw_params
.subsections_via_symbols
