	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_cs43xx_params
_set_cs43xx_params:                     ## @set_cs43xx_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, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	%rsi, %rdi
	callq	_params_rate
	cmpl	$50001, %eax                    ## imm = 0xC351
	jge	LBB0_2
## %bb.1:
	movq	_CS4362A_FM_SINGLE@GOTPCREL(%rip), %rcx
	movq	_CS4398_FM_SINGLE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_params_rate
	cmpl	$100001, %eax                   ## imm = 0x186A1
	movq	_CS4398_FM_QUAD@GOTPCREL(%rip), %rax
	cmovlq	_CS4398_FM_DOUBLE@GOTPCREL(%rip), %rax
	movq	_CS4362A_FM_QUAD@GOTPCREL(%rip), %rcx
	cmovlq	_CS4362A_FM_DOUBLE@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %r12d
	movq	_CS4398_DEM_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_CS4398_DIF_LJUST@GOTPCREL(%rip), %rcx
	orl	(%rax), %edx
	orl	(%rcx), %edx
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_cs4398_write_cached
	movq	(%r15), %rax
	movq	_CS4362A_FM_MASK@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	notl	%ebx
	andl	24(%rax), %ebx
	orl	%r12d, %ebx
	movq	%r14, %rdi
	movl	$6, %esi
	movl	%ebx, %edx
	callq	_cs4362a_write_cached
	movq	%r14, %rdi
	movl	$12, %esi
	movl	%ebx, %edx
	callq	_cs4362a_write_cached
	movq	(%r15), %rax
	movl	36(%rax), %eax
	xorl	%eax, %ebx
	andl	(%r13), %ebx
	xorl	%eax, %ebx
	movq	%r14, %rdi
	movl	$9, %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cs4362a_write_cached           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CS4398_FM_SINGLE,4,2           ## @CS4398_FM_SINGLE
	.comm	_CS4362A_FM_SINGLE,4,2          ## @CS4362A_FM_SINGLE
	.comm	_CS4398_FM_DOUBLE,4,2           ## @CS4398_FM_DOUBLE
	.comm	_CS4362A_FM_DOUBLE,4,2          ## @CS4362A_FM_DOUBLE
	.comm	_CS4398_FM_QUAD,4,2             ## @CS4398_FM_QUAD
	.comm	_CS4362A_FM_QUAD,4,2            ## @CS4362A_FM_QUAD
	.comm	_CS4398_DEM_NONE,4,2            ## @CS4398_DEM_NONE
	.comm	_CS4398_DIF_LJUST,4,2           ## @CS4398_DIF_LJUST
	.comm	_CS4362A_FM_MASK,4,2            ## @CS4362A_FM_MASK
	.no_dead_strip	_set_cs43xx_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_cs43xx_params
_set_cs43xx_params:                     ; @set_cs43xx_params
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0]
	mov	x0, x1
	bl	_params_rate
	mov	w8, #50001
	cmp	w0, w8
	b.ge	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, _CS4362A_FM_SINGLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CS4362A_FM_SINGLE@GOTPAGEOFF]
Lloh2:
	adrp	x8, _CS4398_FM_SINGLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CS4398_FM_SINGLE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_params_rate
Lloh4:
	adrp	x8, _CS4398_FM_QUAD@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CS4398_FM_QUAD@GOTPAGEOFF]
Lloh6:
	adrp	x9, _CS4398_FM_DOUBLE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CS4398_FM_DOUBLE@GOTPAGEOFF]
	mov	w10, #34465
	movk	w10, #1, lsl #16
	cmp	w0, w10
	csel	x8, x9, x8, lt
Lloh8:
	adrp	x9, _CS4362A_FM_QUAD@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CS4362A_FM_QUAD@GOTPAGEOFF]
Lloh10:
	adrp	x10, _CS4362A_FM_DOUBLE@GOTPAGE
Lloh11:
	ldr	x10, [x10, _CS4362A_FM_DOUBLE@GOTPAGEOFF]
	csel	x9, x10, x9, lt
LBB0_3:
	ldr	w20, [x9]
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _CS4398_DEM_NONE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CS4398_DEM_NONE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _CS4398_DIF_LJUST@GOTPAGE
Lloh16:
	ldr	x10, [x10, _CS4398_DIF_LJUST@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	orr	w8, w9, w8
	orr	w2, w8, w10
	mov	x0, x19
	mov	w1, #2
	bl	_cs4398_write_cached
	ldr	x8, [x21]
	ldr	w8, [x8, #24]
Lloh18:
	adrp	x22, _CS4362A_FM_MASK@GOTPAGE
Lloh19:
	ldr	x22, [x22, _CS4362A_FM_MASK@GOTPAGEOFF]
	ldr	w9, [x22]
	bic	w8, w8, w9
	orr	w20, w8, w20
	mov	x0, x19
	mov	w1, #6
	mov	x2, x20
	bl	_cs4362a_write_cached
	mov	x0, x19
	mov	w1, #12
	mov	x2, x20
	bl	_cs4362a_write_cached
	ldr	w8, [x22]
	and	w9, w8, w20
	ldr	x10, [x21]
	ldr	w10, [x10, #36]
	bic	w8, w10, w8
	orr	w2, w8, w9
	mov	x0, x19
	mov	w1, #9
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_cs4362a_write_cached
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CS4398_FM_SINGLE,4,2           ; @CS4398_FM_SINGLE
	.comm	_CS4362A_FM_SINGLE,4,2          ; @CS4362A_FM_SINGLE
	.comm	_CS4398_FM_DOUBLE,4,2           ; @CS4398_FM_DOUBLE
	.comm	_CS4362A_FM_DOUBLE,4,2          ; @CS4362A_FM_DOUBLE
	.comm	_CS4398_FM_QUAD,4,2             ; @CS4398_FM_QUAD
	.comm	_CS4362A_FM_QUAD,4,2            ; @CS4362A_FM_QUAD
	.comm	_CS4398_DEM_NONE,4,2            ; @CS4398_DEM_NONE
	.comm	_CS4398_DIF_LJUST,4,2           ; @CS4398_DIF_LJUST
	.comm	_CS4362A_FM_MASK,4,2            ; @CS4362A_FM_MASK
	.no_dead_strip	_set_cs43xx_params
.subsections_via_symbols
