	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8753_pcm_hw_params
_wm8753_pcm_hw_params:                  ## @wm8753_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, %r15
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %r12
	movq	(%r12), %r13
	movq	_WM8753_PCM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_wm8753_read_reg_cache
	movl	%eax, %r14d
	andl	$499, %r14d                     ## imm = 0x1F3
	movq	_WM8753_SRATE1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_wm8753_read_reg_cache
	movl	%eax, %ebx
	movq	%r15, %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, %r14d
	jmp	LBB0_6
LBB0_5:
	orl	$12, %r14d
	jmp	LBB0_6
LBB0_4:
	orl	$8, %r14d
LBB0_6:
	andl	$383, %ebx                      ## imm = 0x17F
	movq	%r15, %rdi
	callq	_params_rate
                                        ## kill: def $eax killed $eax def $rax
	shll	$7, %eax
	leal	(%rax,%rax,2), %eax
	cmpl	(%r13), %eax
	leal	128(%rbx), %edx
	cmovnel	%ebx, %edx
	movq	_WM8753_SRATE1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_wm8753_write
	movq	_WM8753_PCM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_wm8753_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	_WM8753_PCM,4,2                 ## @WM8753_PCM
	.comm	_WM8753_SRATE1,4,2              ## @WM8753_SRATE1
	.no_dead_strip	_wm8753_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 wm8753_pcm_hw_params
_wm8753_pcm_hw_params:                  ; @wm8753_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	x19, x1
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x20, [x8]
	ldr	x23, [x20]
Lloh0:
	adrp	x24, _WM8753_PCM@GOTPAGE
Lloh1:
	ldr	x24, [x24, _WM8753_PCM@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_wm8753_read_reg_cache
	mov	w8, #499
	and	w22, w0, w8
Lloh2:
	adrp	x25, _WM8753_SRATE1@GOTPAGE
Lloh3:
	ldr	x25, [x25, _WM8753_SRATE1@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x20
	bl	_wm8753_read_reg_cache
	mov	x21, x0
	mov	x0, x19
	bl	_params_format
	orr	w8, w22, #0xc
	orr	w9, w22, #0x8
	orr	w10, w22, #0x4
	cmp	w0, #130
	csel	w10, w22, w10, ne
	cmp	w0, #129
	csel	w9, w9, w10, eq
	cmp	w0, #128
	csel	w22, w8, w9, eq
	mov	w8, #383
	and	w21, w21, w8
	mov	x0, x19
	bl	_params_rate
	add	w8, w0, w0, lsl #1
	lsl	w8, w8, #7
	ldr	w9, [x23]
	orr	w10, w21, #0x80
	cmp	w8, w9
	csel	w2, w10, w21, eq
	ldr	w1, [x25]
	mov	x0, x20
	bl	_wm8753_write
	ldr	w1, [x24]
	mov	x0, x20
	mov	x2, x22
	bl	_wm8753_write
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_WM8753_PCM,4,2                 ; @WM8753_PCM
	.comm	_WM8753_SRATE1,4,2              ; @WM8753_SRATE1
	.no_dead_strip	_wm8753_pcm_hw_params
.subsections_via_symbols
