	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stac9460_set_rate_val
_stac9460_set_rate_val:                 ## @stac9460_set_rate_val
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%esi, %esi
	je	LBB0_17
## %bb.1:
	movq	%rdi, %r14
	cmpl	$96001, %esi                    ## imm = 0x17701
	movb	$18, %al
	sbbb	$0, %al
	movq	(%rdi), %rbx
	cmpl	$48001, %esi                    ## imm = 0xBB81
	movzbl	%al, %eax
	movl	$8, %r12d
	cmovael	%eax, %r12d
	movq	_STAC946X_MASTER_CLOCKING@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_stac9460_get
	cmpb	%r12b, %al
	jne	LBB0_2
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_STAC946X_MASTER_VOLUME@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_stac9460_dac_mute
	movl	%eax, %ebx
	movq	(%r15), %rsi
	incq	%rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_stac9460_dac_mute
	movb	%al, -41(%rbp)                  ## 1-byte Spill
	movq	(%r15), %rsi
	addq	$2, %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_stac9460_dac_mute
	movb	%al, -42(%rbp)                  ## 1-byte Spill
	movq	(%r15), %rsi
	addq	$3, %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_stac9460_dac_mute
	movb	%al, -43(%rbp)                  ## 1-byte Spill
	movq	(%r15), %rsi
	addq	$4, %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_stac9460_dac_mute
	movb	%al, -44(%rbp)                  ## 1-byte Spill
	movq	(%r15), %rsi
	addq	$5, %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_stac9460_dac_mute
	movb	%al, -45(%rbp)                  ## 1-byte Spill
	movq	(%r15), %rsi
	addq	$6, %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_stac9460_dac_mute
	movb	%al, -46(%rbp)                  ## 1-byte Spill
	movl	(%r13), %esi
	movzbl	%r12b, %edx
	movq	%r14, %rdi
	callq	_stac9460_put
	movl	$10, %edi
	callq	_udelay
	testb	%bl, %bl
	je	LBB0_4
## %bb.3:
	movq	(%r15), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_stac9460_dac_mute
LBB0_4:
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_6
## %bb.5:
	movq	(%r15), %rsi
	incq	%rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_stac9460_dac_mute
LBB0_6:
	cmpb	$0, -42(%rbp)                   ## 1-byte Folded Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_8
## %bb.7:
	movq	(%r15), %rsi
	addq	$2, %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_stac9460_dac_mute
LBB0_8:
	cmpb	$0, -43(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_10
## %bb.9:
	movq	(%r15), %rsi
	addq	$3, %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_stac9460_dac_mute
LBB0_10:
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_12
## %bb.11:
	movq	(%r15), %rsi
	addq	$4, %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_stac9460_dac_mute
LBB0_12:
	cmpb	$0, -45(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_14
## %bb.13:
	movq	(%r15), %rsi
	addq	$5, %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_stac9460_dac_mute
LBB0_14:
	cmpb	$0, -46(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_16
## %bb.15:
	movq	(%r15), %rsi
	addq	$6, %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_stac9460_dac_mute
LBB0_16:
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STAC946X_MASTER_CLOCKING,4,2   ## @STAC946X_MASTER_CLOCKING
	.comm	_STAC946X_MASTER_VOLUME,8,3     ## @STAC946X_MASTER_VOLUME
	.no_dead_strip	_stac9460_set_rate_val
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stac9460_set_rate_val
_stac9460_set_rate_val:                 ; @stac9460_set_rate_val
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	w1, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	x19, [x0]
	mov	w8, #30465
	movk	w8, #1, lsl #16
	cmp	w1, w8
	mov	w8, #17
	cinc	w8, w8, hs
	mov	w9, #48001
	mov	w10, #8
	cmp	w1, w9
	csel	w21, w10, w8, lo
Lloh0:
	adrp	x22, _STAC946X_MASTER_CLOCKING@GOTPAGE
Lloh1:
	ldr	x22, [x22, _STAC946X_MASTER_CLOCKING@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_stac9460_get
	cmp	w0, w21
	b.ne	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_3:
	mov	x0, x19
	bl	_mutex_lock
Lloh2:
	adrp	x28, _STAC946X_MASTER_VOLUME@GOTPAGE
Lloh3:
	ldr	x28, [x28, _STAC946X_MASTER_VOLUME@GOTPAGEOFF]
	ldr	x1, [x28]
	mov	x0, x20
	mov	w2, #0
	bl	_stac9460_dac_mute
	mov	x27, x0
	ldr	x8, [x28]
	add	x1, x8, #1
	mov	x0, x20
	mov	w2, #0
	bl	_stac9460_dac_mute
	mov	x26, x0
	ldr	x8, [x28]
	add	x1, x8, #2
	mov	x0, x20
	mov	w2, #0
	bl	_stac9460_dac_mute
	mov	x25, x0
	ldr	x8, [x28]
	add	x1, x8, #3
	mov	x0, x20
	mov	w2, #0
	bl	_stac9460_dac_mute
	mov	x24, x0
	ldr	x8, [x28]
	add	x1, x8, #4
	mov	x0, x20
	mov	w2, #0
	bl	_stac9460_dac_mute
	mov	x23, x0
	ldr	x8, [x28]
	add	x1, x8, #5
	mov	x0, x20
	mov	w2, #0
	bl	_stac9460_dac_mute
	str	w0, [sp, #8]                    ; 4-byte Folded Spill
	ldr	x8, [x28]
	add	x1, x8, #6
	mov	x0, x20
	mov	w2, #0
	bl	_stac9460_dac_mute
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	ldr	w1, [x22]
	and	w2, w21, #0xff
	mov	x0, x20
	bl	_stac9460_put
	mov	w0, #10
	bl	_udelay
	cbz	w27, LBB0_5
; %bb.4:
	ldr	x1, [x28]
	mov	x0, x20
	mov	w2, #1
	bl	_stac9460_dac_mute
LBB0_5:
	cbz	w26, LBB0_7
; %bb.6:
	ldr	x8, [x28]
	add	x1, x8, #1
	mov	x0, x20
	mov	w2, #1
	bl	_stac9460_dac_mute
LBB0_7:
	cbz	w25, LBB0_9
; %bb.8:
	ldr	x8, [x28]
	add	x1, x8, #2
	mov	x0, x20
	mov	w2, #1
	bl	_stac9460_dac_mute
LBB0_9:
	cbz	w24, LBB0_11
; %bb.10:
	ldr	x8, [x28]
	add	x1, x8, #3
	mov	x0, x20
	mov	w2, #1
	bl	_stac9460_dac_mute
LBB0_11:
	cbz	w23, LBB0_13
; %bb.12:
	ldr	x8, [x28]
	add	x1, x8, #4
	mov	x0, x20
	mov	w2, #1
	bl	_stac9460_dac_mute
LBB0_13:
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	cbz	w8, LBB0_15
; %bb.14:
	ldr	x8, [x28]
	add	x1, x8, #5
	mov	x0, x20
	mov	w2, #1
	bl	_stac9460_dac_mute
LBB0_15:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_17
; %bb.16:
	ldr	x8, [x28]
	add	x1, x8, #6
	mov	x0, x20
	mov	w2, #1
	bl	_stac9460_dac_mute
LBB0_17:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_mutex_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_STAC946X_MASTER_CLOCKING,4,2   ; @STAC946X_MASTER_CLOCKING
	.comm	_STAC946X_MASTER_VOLUME,8,3     ; @STAC946X_MASTER_VOLUME
	.no_dead_strip	_stac9460_set_rate_val
.subsections_via_symbols
