	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_cs4245_dac_params
_set_cs4245_dac_params:                 ## @set_cs4245_dac_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, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_CS4245_DAC_CTRL_1@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movl	(%rax,%rcx,4), %ebx
	movq	_CS4245_DAC_FM_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%rsi, %rdi
	callq	_params_rate
	cmpl	$50001, %eax                    ## imm = 0xC351
	jge	LBB0_2
## %bb.1:
	movq	_CS4245_DAC_FM_SINGLE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	%r15, %rdi
	callq	_params_rate
	cmpl	$100001, %eax                   ## imm = 0x186A1
	jge	LBB0_3
## %bb.4:
	movq	_CS4245_DAC_FM_DOUBLE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_CS4245_DAC_FM_QUAD@GOTPCREL(%rip), %rax
LBB0_5:
	notl	%r13d
	andl	%r13d, %ebx
	orl	(%rax), %ebx
	movq	(%r12), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cs4245_write_cached            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CS4245_DAC_CTRL_1,8,3          ## @CS4245_DAC_CTRL_1
	.comm	_CS4245_DAC_FM_MASK,4,2         ## @CS4245_DAC_FM_MASK
	.comm	_CS4245_DAC_FM_SINGLE,4,2       ## @CS4245_DAC_FM_SINGLE
	.comm	_CS4245_DAC_FM_DOUBLE,4,2       ## @CS4245_DAC_FM_DOUBLE
	.comm	_CS4245_DAC_FM_QUAD,4,2         ## @CS4245_DAC_FM_QUAD
	.no_dead_strip	_set_cs4245_dac_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_cs4245_dac_params
_set_cs4245_dac_params:                 ; @set_cs4245_dac_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
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x21, _CS4245_DAC_CTRL_1@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CS4245_DAC_CTRL_1@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	w22, [x8, x9, lsl #2]
Lloh2:
	adrp	x8, _CS4245_DAC_FM_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CS4245_DAC_FM_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w23, [x8]
	mov	x0, x1
	bl	_params_rate
	mov	w8, #50001
	cmp	w0, w8
	b.ge	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _CS4245_DAC_FM_SINGLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CS4245_DAC_FM_SINGLE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_params_rate
Lloh7:
	adrp	x8, _CS4245_DAC_FM_QUAD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CS4245_DAC_FM_QUAD@GOTPAGEOFF]
Lloh9:
	adrp	x9, _CS4245_DAC_FM_DOUBLE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CS4245_DAC_FM_DOUBLE@GOTPAGEOFF]
	mov	w10, #34465
	movk	w10, #1, lsl #16
	cmp	w0, w10
	csel	x8, x9, x8, lt
LBB0_3:
	bic	w9, w22, w23
	ldr	w8, [x8]
	orr	w2, w8, w9
	ldr	x1, [x21]
	mov	x0, x19
	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
	b	_cs4245_write_cached
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CS4245_DAC_CTRL_1,8,3          ; @CS4245_DAC_CTRL_1
	.comm	_CS4245_DAC_FM_MASK,4,2         ; @CS4245_DAC_FM_MASK
	.comm	_CS4245_DAC_FM_SINGLE,4,2       ; @CS4245_DAC_FM_SINGLE
	.comm	_CS4245_DAC_FM_DOUBLE,4,2       ; @CS4245_DAC_FM_DOUBLE
	.comm	_CS4245_DAC_FM_QUAD,4,2         ; @CS4245_DAC_FM_QUAD
	.no_dead_strip	_set_cs4245_dac_params
.subsections_via_symbols
