	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function revo_set_rate_val
_revo_set_rate_val:                     ## @revo_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movq	%rdi, %r15
	xorl	%eax, %eax
	cmpl	$48001, %esi                    ## imm = 0xBB81
	setae	%al
	cmpl	$96001, %esi                    ## imm = 0x17701
	movl	$2, %r12d
	cmovbl	%eax, %r12d
	movq	(%rdi), %rax
	movq	_SND_AK4355@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_SND_AK4358@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %ebx
	leal	1(%rbx), %r14d
	addl	$3, %ebx
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_snd_akm4xxx_get
	movzbl	%al, %eax
	movl	%ebx, %ecx
	shrl	%cl, %eax
	andl	$3, %eax
	cmpl	%r12d, %eax
	jne	LBB0_3
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_snd_akm4xxx_reset
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_snd_akm4xxx_get
	movl	$3, %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	shll	%cl, %r12d
	notb	%dl
	andb	%al, %dl
	orb	%dl, %r12b
	movzbl	%r12b, %ecx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_snd_akm4xxx_set
	movq	%r15, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_akm4xxx_reset              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SND_AK4355,8,3                 ## @SND_AK4355
	.comm	_SND_AK4358,8,3                 ## @SND_AK4358
	.no_dead_strip	_revo_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 revo_set_rate_val
_revo_set_rate_val:                     ; @revo_set_rate_val
	.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
	cbz	w1, LBB0_2
; %bb.1:
	mov	x19, x0
	mov	w8, #48000
	cmp	w1, w8
	cset	w8, hi
	mov	w9, #30464
	movk	w9, #1, lsl #16
	mov	w10, #2
	cmp	w1, w9
	csel	w21, w10, w8, hi
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SND_AK4355@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SND_AK4355@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh3:
	adrp	x9, _SND_AK4358@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SND_AK4358@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	mov	w8, #1
	cinc	w20, w8, eq
	mov	w23, #3
	cinc	w22, w23, eq
	mov	w1, #0
	mov	x2, x20
	bl	_snd_akm4xxx_get
	lsr	w8, w0, w22
	and	w8, w8, #0x3
	cmp	w8, w21
	b.ne	LBB0_3
LBB0_2:
	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
LBB0_3:
	mov	x0, x19
	mov	w1, #1
	bl	_snd_akm4xxx_reset
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_snd_akm4xxx_get
	lsl	w8, w23, w22
	bic	w8, w0, w8
	lsl	w9, w21, w22
	orr	w8, w8, w9
	and	w3, w8, #0xff
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_snd_akm4xxx_set
	mov	x0, x19
	mov	w1, #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
	b	_snd_akm4xxx_reset
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SND_AK4355,8,3                 ; @SND_AK4355
	.comm	_SND_AK4358,8,3                 ; @SND_AK4358
	.no_dead_strip	_revo_set_rate_val
.subsections_via_symbols
