	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8971_pcm_hw_params
_wm8971_pcm_hw_params:                  ## @wm8971_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, %r13
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %r15
	movq	(%r15), %r12
	movq	_WM8971_IFACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_snd_soc_read
	movl	%eax, %ebx
	andl	$499, %ebx                      ## imm = 0x1F3
	movq	_WM8971_SRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_snd_soc_read
	movl	%eax, %r14d
	movl	(%r12), %r12d
	movq	%r13, %rdi
	callq	_params_rate
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_get_coeff
	movl	%eax, %r12d
	movq	%r13, %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	$4, %ebx
	jmp	LBB0_6
LBB0_5:
	orl	$12, %ebx
	jmp	LBB0_6
LBB0_4:
	orl	$8, %ebx
LBB0_6:
	movq	_WM8971_IFACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_snd_soc_write
	testl	%r12d, %r12d
	js	LBB0_8
## %bb.7:
	andl	$448, %r14d                     ## imm = 0x1C0
	movq	_WM8971_SRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_coeff_div@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r12d, %ecx
	movl	(%rax,%rcx,8), %edx
	addl	%edx, %edx
	orl	%r14d, %edx
	orl	4(%rax,%rcx,8), %edx
	movq	%r15, %rdi
	callq	_snd_soc_write
LBB0_8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM8971_IFACE,4,2               ## @WM8971_IFACE
	.comm	_WM8971_SRATE,4,2               ## @WM8971_SRATE
	.comm	_coeff_div,8,3                  ## @coeff_div
	.no_dead_strip	_wm8971_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 wm8971_pcm_hw_params
_wm8971_pcm_hw_params:                  ; @wm8971_pcm_hw_params
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x1
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x19, [x8]
	ldr	x21, [x19]
Lloh0:
	adrp	x24, _WM8971_IFACE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _WM8971_IFACE@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_snd_soc_read
	mov	w8, #499
	and	w25, w0, w8
Lloh2:
	adrp	x23, _WM8971_SRATE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _WM8971_SRATE@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_snd_soc_read
	mov	x20, x0
	ldr	w21, [x21]
	mov	x0, x22
	bl	_params_rate
	mov	x1, x0
	mov	x0, x21
	bl	_get_coeff
	mov	x21, x0
	mov	x0, x22
	bl	_params_format
	orr	w8, w25, #0xc
	orr	w9, w25, #0x8
	orr	w10, w25, #0x4
	cmp	w0, #130
	csel	w10, w25, w10, ne
	cmp	w0, #129
	csel	w9, w9, w10, eq
	cmp	w0, #128
	csel	w2, w8, w9, eq
	ldr	w1, [x24]
	mov	x0, x19
	bl	_snd_soc_write
	tbnz	w21, #31, LBB0_2
; %bb.1:
	and	w8, w20, #0x1c0
	ldr	w1, [x23]
Lloh4:
	adrp	x9, _coeff_div@GOTPAGE
Lloh5:
	ldr	x9, [x9, _coeff_div@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	add	x9, x9, w21, uxtw #3
	ldp	w10, w9, [x9]
	orr	w8, w8, w10, lsl #1
	orr	w2, w8, w9
	mov	x0, x19
	bl	_snd_soc_write
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_WM8971_IFACE,4,2               ; @WM8971_IFACE
	.comm	_WM8971_SRATE,4,2               ; @WM8971_SRATE
	.comm	_coeff_div,8,3                  ; @coeff_div
	.no_dead_strip	_wm8971_pcm_hw_params
.subsections_via_symbols
