	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8974_pcm_hw_params
_wm8974_pcm_hw_params:                  ## @wm8974_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	(%rdx), %r14
	movq	_WM8974_IFACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_snd_soc_read
	movl	%eax, %r15d
	andl	$415, %r15d                     ## imm = 0x19F
	movq	_WM8974_ADD@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_snd_soc_read
	movl	%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	$32, %r15d
	jmp	LBB0_6
LBB0_4:
	orl	$64, %r15d
	jmp	LBB0_6
LBB0_5:
	orl	$96, %r15d
LBB0_6:
	andl	$497, %ebx                      ## imm = 0x1F1
	movq	%r12, %rdi
	callq	_params_rate
	cmpl	$15999, %eax                    ## imm = 0x3E7F
	jle	LBB0_7
## %bb.10:
	cmpl	$16000, %eax                    ## imm = 0x3E80
	je	LBB0_15
## %bb.11:
	cmpl	$22050, %eax                    ## imm = 0x5622
	je	LBB0_16
## %bb.12:
	cmpl	$32000, %eax                    ## imm = 0x7D00
	jne	LBB0_17
## %bb.13:
	orl	$2, %ebx
	jmp	LBB0_17
LBB0_7:
	cmpl	$8000, %eax                     ## imm = 0x1F40
	je	LBB0_14
## %bb.8:
	cmpl	$11025, %eax                    ## imm = 0x2B11
	jne	LBB0_17
## %bb.9:
	orl	$8, %ebx
	jmp	LBB0_17
LBB0_15:
	orl	$6, %ebx
	jmp	LBB0_17
LBB0_16:
	orl	$4, %ebx
	jmp	LBB0_17
LBB0_14:
	orl	$10, %ebx
LBB0_17:
	movq	_WM8974_IFACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_snd_soc_write
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	%ebx, %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	_WM8974_IFACE,4,2               ## @WM8974_IFACE
	.comm	_WM8974_ADD,4,2                 ## @WM8974_ADD
	.no_dead_strip	_wm8974_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 wm8974_pcm_hw_params
_wm8974_pcm_hw_params:                  ; @wm8974_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
	ldr	x19, [x2]
Lloh0:
	adrp	x22, _WM8974_IFACE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _WM8974_IFACE@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_snd_soc_read
	mov	w8, #415
	and	w21, w0, w8
Lloh2:
	adrp	x23, _WM8974_ADD@GOTPAGE
Lloh3:
	ldr	x23, [x23, _WM8974_ADD@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_snd_soc_read
	mov	w8, #497
	and	w24, w0, w8
	mov	x0, x20
	bl	_params_format
	orr	w8, w21, #0x60
	orr	w9, w21, #0x40
	orr	w10, w21, #0x20
	cmp	w0, #130
	csel	w10, w21, w10, ne
	cmp	w0, #129
	csel	w9, w9, w10, eq
	cmp	w0, #128
	csel	w21, w8, w9, eq
	mov	x0, x20
	bl	_params_rate
	mov	w8, #15999
	mov	w9, #16000
	orr	w10, w24, #0x6
	mov	w11, #22050
	orr	w12, w24, #0x4
	mov	w13, #32000
	orr	w14, w24, #0x2
	cmp	w0, w13
	csel	w13, w14, w24, eq
	cmp	w0, w11
	csel	w11, w12, w13, eq
	cmp	w0, w9
	csel	w9, w10, w11, eq
	mov	w10, #8000
	mov	w11, #10
	orr	w11, w24, w11
	mov	w12, #11025
	orr	w13, w24, #0x8
	cmp	w0, w12
	csel	w12, w13, w24, eq
	cmp	w0, w10
	csel	w10, w11, w12, eq
	ldr	w1, [x22]
	cmp	w0, w8
	csel	w20, w9, w10, gt
	mov	x0, x19
	mov	x2, x21
	bl	_snd_soc_write
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, 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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_WM8974_IFACE,4,2               ; @WM8974_IFACE
	.comm	_WM8974_ADD,4,2                 ; @WM8974_ADD
	.no_dead_strip	_wm8974_pcm_hw_params
.subsections_via_symbols
