	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vx_read_uer_status
_vx_read_uer_status:                    ## @vx_read_uer_status
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_vx_is_pcmcia
	movq	_CSUER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	callq	_vx_inb
	testl	%eax, %eax
	js	LBB0_4
LBB0_5:
	movq	_VX_SUER_CLOCK_PRESENT_MASK@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.6:
	movq	_VX_SUER_FREQ_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	addl	$-128, %ecx
	cmpl	$2, %ecx
	ja	LBB0_8
## %bb.7:
	movslq	%ecx, %rcx
	leaq	l_switch.table.vx_read_uer_status(%rip), %rdx
	movl	(%rdx,%rcx,4), %r15d
LBB0_8:
	movq	_VX_SUER_DATA_PRESENT_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.9:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_vx_read_one_cbit
	testq	%rax, %rax
	jne	LBB0_10
## %bb.11:
	movq	_VX_UER_MODE_CONSUMER@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_2:
	callq	_vx_inl
	testl	%eax, %eax
	jns	LBB0_5
LBB0_4:
	movl	%eax, %r15d
	jmp	LBB0_14
LBB0_12:
	movq	_VX_UER_MODE_NOT_PRESENT@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_10:
	movq	_VX_UER_MODE_PROFESSIONAL@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_14:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CSUER,4,2                      ## @CSUER
	.comm	_VX_SUER_CLOCK_PRESENT_MASK,4,2 ## @VX_SUER_CLOCK_PRESENT_MASK
	.comm	_VX_SUER_FREQ_MASK,4,2          ## @VX_SUER_FREQ_MASK
	.comm	_VX_SUER_DATA_PRESENT_MASK,4,2  ## @VX_SUER_DATA_PRESENT_MASK
	.comm	_VX_UER_MODE_PROFESSIONAL,4,2   ## @VX_UER_MODE_PROFESSIONAL
	.comm	_VX_UER_MODE_CONSUMER,4,2       ## @VX_UER_MODE_CONSUMER
	.comm	_VX_UER_MODE_NOT_PRESENT,4,2    ## @VX_UER_MODE_NOT_PRESENT
	.no_dead_strip	_vx_read_uer_status
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.vx_read_uer_status
l_switch.table.vx_read_uer_status:
	.long	48000                           ## 0xbb80
	.long	44100                           ## 0xac44
	.long	32000                           ## 0x7d00

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vx_read_uer_status
_vx_read_uer_status:                    ; @vx_read_uer_status
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_vx_is_pcmcia
Lloh0:
	adrp	x8, _CSUER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CSUER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	cbz	x0, LBB0_8
; %bb.1:
	mov	x0, x20
	bl	_vx_inb
	tbnz	w0, #31, LBB0_9
LBB0_2:
Lloh3:
	adrp	x8, _VX_SUER_CLOCK_PRESENT_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VX_SUER_CLOCK_PRESENT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _VX_SUER_FREQ_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VX_SUER_FREQ_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w0
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_5
; %bb.4:
Lloh9:
	adrp	x9, l_switch.table.vx_read_uer_status@PAGE
Lloh10:
	add	x9, x9, l_switch.table.vx_read_uer_status@PAGEOFF
	ldr	w21, [x9, w8, sxtw #2]
	b	LBB0_6
LBB0_5:
	mov	w21, #0
LBB0_6:
Lloh11:
	adrp	x8, _VX_SUER_DATA_PRESENT_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VX_SUER_DATA_PRESENT_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_10
; %bb.7:
	mov	x0, x20
	mov	w1, #0
	bl	_vx_read_one_cbit
Lloh14:
	adrp	x8, _VX_UER_MODE_PROFESSIONAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VX_UER_MODE_PROFESSIONAL@GOTPAGEOFF]
Lloh16:
	adrp	x9, _VX_UER_MODE_CONSUMER@GOTPAGE
Lloh17:
	ldr	x9, [x9, _VX_UER_MODE_CONSUMER@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	b	LBB0_11
LBB0_8:
	mov	x0, x20
	bl	_vx_inl
	tbz	w0, #31, LBB0_2
LBB0_9:
	mov	x21, x0
	b	LBB0_12
LBB0_10:
Lloh18:
	adrp	x8, _VX_UER_MODE_NOT_PRESENT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VX_UER_MODE_NOT_PRESENT@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_CSUER,4,2                      ; @CSUER
	.comm	_VX_SUER_CLOCK_PRESENT_MASK,4,2 ; @VX_SUER_CLOCK_PRESENT_MASK
	.comm	_VX_SUER_FREQ_MASK,4,2          ; @VX_SUER_FREQ_MASK
	.comm	_VX_SUER_DATA_PRESENT_MASK,4,2  ; @VX_SUER_DATA_PRESENT_MASK
	.comm	_VX_UER_MODE_PROFESSIONAL,4,2   ; @VX_UER_MODE_PROFESSIONAL
	.comm	_VX_UER_MODE_CONSUMER,4,2       ; @VX_UER_MODE_CONSUMER
	.comm	_VX_UER_MODE_NOT_PRESENT,4,2    ; @VX_UER_MODE_NOT_PRESENT
	.no_dead_strip	_vx_read_uer_status
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.vx_read_uer_status
l_switch.table.vx_read_uer_status:
	.long	48000                           ; 0xbb80
	.long	44100                           ; 0xac44
	.long	32000                           ; 0x7d00

.subsections_via_symbols
