	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vx_change_frequency            ## -- Begin function vx_change_frequency
	.p2align	4, 0x90
_vx_change_frequency:                   ## @vx_change_frequency
	.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	_VX_STAT_IS_STALE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r14d, %r14d
	testl	%eax, (%rdi)
	jne	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	_INTERNAL_QUARTZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.2:
	leaq	20(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_vx_read_uer_status
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	cmpl	$32000, %eax                    ## imm = 0x7D00
	je	LBB0_7
## %bb.5:
	cmpl	$48000, %eax                    ## imm = 0xBB80
	je	LBB0_7
## %bb.6:
	cmpl	$44100, %eax                    ## imm = 0xAC44
	jne	LBB0_8
LBB0_7:
	movl	%eax, 16(%rbx)
	jmp	LBB0_8
LBB0_3:
	movl	%eax, %r14d
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VX_STAT_IS_STALE,4,2           ## @VX_STAT_IS_STALE
	.comm	_INTERNAL_QUARTZ,8,3            ## @INTERNAL_QUARTZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vx_change_frequency            ; -- Begin function vx_change_frequency
	.p2align	2
_vx_change_frequency:                   ; @vx_change_frequency
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _VX_STAT_IS_STALE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VX_STAT_IS_STALE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x9, _INTERNAL_QUARTZ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INTERNAL_QUARTZ@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.2:
	add	x1, x19, #20
	mov	x0, x19
	bl	_vx_read_uer_status
	tbnz	w0, #31, LBB0_8
; %bb.3:
	mov	w8, #32000
	cmp	w0, w8
	b.eq	LBB0_6
; %bb.4:
	mov	w8, #48000
	cmp	w0, w8
	b.eq	LBB0_6
; %bb.5:
	mov	w8, #44100
	cmp	w0, w8
	b.ne	LBB0_7
LBB0_6:
	str	w0, [x19, #16]
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VX_STAT_IS_STALE,4,2           ; @VX_STAT_IS_STALE
	.comm	_INTERNAL_QUARTZ,8,3            ; @INTERNAL_QUARTZ
.subsections_via_symbols
