	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8731_hw_params
_wm8731_hw_params:                      ## @wm8731_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, %r15
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	movq	(%r14), %rbx
	movq	_WM8731_IFACE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_snd_soc_read
	movl	%eax, %r12d
	andl	$65523, %r12d                   ## imm = 0xFFF3
	movl	(%rbx), %ebx
	movq	%r15, %rdi
	callq	_params_rate
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_get_coeff
	movq	_coeff_div@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	leaq	(%rax,%rax,2), %rax
	movl	(%rcx,%rax,4), %esi
	movl	4(%rcx,%rax,4), %edx
	shll	$2, %esi
	addl	%edx, %edx
	orl	%esi, %edx
	orl	8(%rcx,%rax,4), %edx
	movq	_WM8731_SRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_snd_soc_write
	movq	%r15, %rdi
	callq	_params_format
	cmpl	$128, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_4
## %bb.2:
	orl	$4, %r12d
	jmp	LBB0_4
LBB0_3:
	orl	$8, %r12d
LBB0_4:
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_snd_soc_write
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM8731_IFACE,4,2               ## @WM8731_IFACE
	.comm	_coeff_div,8,3                  ## @coeff_div
	.comm	_WM8731_SRATE,4,2               ## @WM8731_SRATE
	.no_dead_strip	_wm8731_hw_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm8731_hw_params
_wm8731_hw_params:                      ; @wm8731_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	x19, x1
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x20, [x8]
	ldr	x21, [x20]
Lloh0:
	adrp	x22, _WM8731_IFACE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _WM8731_IFACE@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_snd_soc_read
	mov	w8, #65523
	and	w23, w0, w8
	ldr	w21, [x21]
	mov	x0, x19
	bl	_params_rate
	mov	x1, x0
	mov	x0, x21
	bl	_get_coeff
Lloh2:
	adrp	x8, _coeff_div@GOTPAGE
Lloh3:
	ldr	x8, [x8, _coeff_div@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	mov	w9, #12
	smaddl	x8, w0, w9, x8
	ldp	w9, w10, [x8]
	lsl	w10, w10, #1
	orr	w9, w10, w9, lsl #2
	ldr	w8, [x8, #8]
	orr	w2, w9, w8
Lloh5:
	adrp	x8, _WM8731_SRATE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WM8731_SRATE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_snd_soc_write
	mov	x0, x19
	bl	_params_format
	orr	w8, w23, #0x8
	orr	w9, w23, #0x4
	cmp	w0, #129
	csel	w9, w23, w9, ne
	cmp	w0, #128
	csel	w2, w8, w9, eq
	ldr	w1, [x22]
	mov	x0, x20
	bl	_snd_soc_write
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_WM8731_IFACE,4,2               ; @WM8731_IFACE
	.comm	_coeff_div,8,3                  ; @coeff_div
	.comm	_WM8731_SRATE,4,2               ; @WM8731_SRATE
	.no_dead_strip	_wm8731_hw_params
.subsections_via_symbols
