	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vx442_ak4524_set_rate_val
_vx442_ak4524_set_rate_val:             ## @vx442_ak4524_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	xorl	%eax, %eax
	cmpl	$48001, %esi                    ## imm = 0xBB81
	setae	%al
	leal	(%rax,%rax,4), %r14d
	addl	$96, %r14d
	xorl	%esi, %esi
	movl	$2, %edx
	callq	_snd_akm4xxx_get
	cmpb	%r14b, %al
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$2, %edx
	callq	_snd_akm4xxx_get
	cmpb	%r14b, %al
	jne	LBB0_3
## %bb.2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_snd_akm4xxx_reset
	movzbl	%r14b, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	movl	%r14d, %ecx
	callq	_snd_akm4xxx_write
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$2, %edx
	movl	%r14d, %ecx
	callq	_snd_akm4xxx_write
	movq	%rbx, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_snd_akm4xxx_reset              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vx442_ak4524_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 vx442_ak4524_set_rate_val
_vx442_ak4524_set_rate_val:             ; @vx442_ak4524_set_rate_val
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w8, #48000
	mov	w9, #96
	mov	w10, #101
	cmp	w1, w8
	csel	w20, w10, w9, hi
	mov	w1, #0
	mov	w2, #2
	bl	_snd_akm4xxx_get
	cmp	w0, w20
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	mov	w2, #2
	bl	_snd_akm4xxx_get
	cmp	w0, w20
	b.ne	LBB0_3
; %bb.2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, x19
	mov	w1, #1
	bl	_snd_akm4xxx_reset
	mov	x0, x19
	mov	w1, #0
	mov	w2, #2
	mov	x3, x20
	bl	_snd_akm4xxx_write
	mov	x0, x19
	mov	w1, #1
	mov	w2, #2
	mov	x3, x20
	bl	_snd_akm4xxx_write
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_snd_akm4xxx_reset
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vx442_ak4524_set_rate_val
.subsections_via_symbols
