	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8350_pcm_hw_params
_wm8350_pcm_hw_params:                  ## @wm8350_pcm_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	(%rdx), %r13
	movq	(%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_WM8350_AI_FORMATING@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_wm8350_codec_read
	movq	_WM8350_AIF_WL_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	%r12, %rdi
	callq	_params_format
	cmpl	$128, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$130, %eax
	jne	LBB0_6
## %bb.3:
	orl	$1024, %ebx                     ## imm = 0x400
	jmp	LBB0_6
LBB0_5:
	orl	$3072, %ebx                     ## imm = 0xC00
	jmp	LBB0_6
LBB0_4:
	orl	$2048, %ebx                     ## imm = 0x800
LBB0_6:
	movl	(%r14), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_wm8350_codec_write
	movq	(%r15), %rax
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.7:
	movq	%r12, %rdi
	callq	_params_rate
	movq	_WM8350_DAC_MUTE_VOLUME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_WM8350_DAC_SB_FILT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmpl	$23999, %eax                    ## imm = 0x5DBF
	jg	LBB0_9
## %bb.8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_wm8350_set_bits
	jmp	LBB0_10
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_wm8350_clear_bits
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM8350_AI_FORMATING,4,2        ## @WM8350_AI_FORMATING
	.comm	_WM8350_AIF_WL_MASK,4,2         ## @WM8350_AIF_WL_MASK
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_WM8350_DAC_MUTE_VOLUME,4,2     ## @WM8350_DAC_MUTE_VOLUME
	.comm	_WM8350_DAC_SB_FILT,4,2         ## @WM8350_DAC_SB_FILT
	.no_dead_strip	_wm8350_pcm_hw_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm8350_pcm_hw_params
_wm8350_pcm_hw_params:                  ; @wm8350_pcm_hw_params
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x2]
	ldr	x19, [x22]
Lloh0:
	adrp	x23, _WM8350_AI_FORMATING@GOTPAGE
Lloh1:
	ldr	x23, [x23, _WM8350_AI_FORMATING@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x22
	bl	_wm8350_codec_read
Lloh2:
	adrp	x8, _WM8350_AIF_WL_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WM8350_AIF_WL_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w24, w0, w8
	mov	x0, x20
	bl	_params_format
	orr	w8, w24, #0xc00
	orr	w9, w24, #0x800
	orr	w10, w24, #0x400
	cmp	w0, #130
	csel	w10, w24, w10, ne
	cmp	w0, #129
	csel	w9, w9, w10, eq
	cmp	w0, #128
	csel	w2, w8, w9, eq
	ldr	w1, [x23]
	mov	x0, x22
	bl	_wm8350_codec_write
	ldr	x8, [x21]
Lloh5:
	adrp	x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_params_rate
Lloh8:
	adrp	x8, _WM8350_DAC_MUTE_VOLUME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WM8350_DAC_MUTE_VOLUME@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _WM8350_DAC_SB_FILT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WM8350_DAC_SB_FILT@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	w8, #23999
	cmp	w0, w8
	b.gt	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_wm8350_set_bits
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_wm8350_clear_bits
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_WM8350_AI_FORMATING,4,2        ; @WM8350_AI_FORMATING
	.comm	_WM8350_AIF_WL_MASK,4,2         ; @WM8350_AIF_WL_MASK
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_WM8350_DAC_MUTE_VOLUME,4,2     ; @WM8350_DAC_MUTE_VOLUME
	.comm	_WM8350_DAC_SB_FILT,4,2         ; @WM8350_DAC_SB_FILT
	.no_dead_strip	_wm8350_pcm_hw_params
.subsections_via_symbols
