	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_via
_init_via:                              ## @init_via
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	leaq	-32(%rbp), %rsi
	movl	$-1073741824, %edi              ## imm = 0xC0000000
	callq	_do_cpuid
	cmpl	$-1073741823, -32(%rbp)         ## imm = 0xC0000001
	jb	LBB0_14
## %bb.1:
	leaq	-32(%rbp), %rsi
	movl	$-1073741823, %edi              ## imm = 0xC0000001
	callq	_do_cpuid
	movl	-20(%rbp), %ebx
	movq	_VIA_CPUID_HAS_RNG@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_VIA_HAS_RNG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_via_feature_rng@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$4363, %edi                     ## imm = 0x110B
	callq	_rdmsr
	movq	_VIA_CPUID_DO_RNG@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	$4363, %edi                     ## imm = 0x110B
	movl	%eax, %esi
	callq	_wrmsr
LBB0_3:
	movq	_VIA_CPUID_HAS_ACE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_VIA_HAS_AES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_via_feature_xcrypt@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
LBB0_5:
	movq	_VIA_CPUID_HAS_ACE2@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_VIA_HAS_AESCTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_via_feature_xcrypt@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
LBB0_7:
	movq	_VIA_CPUID_HAS_PHE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_9
## %bb.8:
	movq	_VIA_HAS_SHA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_via_feature_xcrypt@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
LBB0_9:
	movq	_VIA_CPUID_HAS_PMM@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_11
## %bb.10:
	movq	_VIA_HAS_MM@GOTPCREL(%rip), %rcx
	movq	_via_feature_xcrypt@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	orl	(%rcx), %eax
	movl	%eax, (%rdx)
	testl	%eax, %eax
	je	LBB0_14
LBB0_13:
	movl	$4359, %edi                     ## imm = 0x1107
	callq	_rdmsr
	orl	$268435456, %eax                ## imm = 0x10000000
	movl	$4359, %edi                     ## imm = 0x1107
	movl	%eax, %esi
	callq	_wrmsr
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_11:
	movq	_via_feature_xcrypt@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	LBB0_13
	jmp	LBB0_14
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_VIA_CPUID_HAS_RNG,4,2          ## @VIA_CPUID_HAS_RNG
	.comm	_VIA_HAS_RNG,4,2                ## @VIA_HAS_RNG
	.comm	_via_feature_rng,4,2            ## @via_feature_rng
	.comm	_VIA_CPUID_DO_RNG,4,2           ## @VIA_CPUID_DO_RNG
	.comm	_VIA_CPUID_HAS_ACE,4,2          ## @VIA_CPUID_HAS_ACE
	.comm	_VIA_HAS_AES,4,2                ## @VIA_HAS_AES
	.comm	_via_feature_xcrypt,4,2         ## @via_feature_xcrypt
	.comm	_VIA_CPUID_HAS_ACE2,4,2         ## @VIA_CPUID_HAS_ACE2
	.comm	_VIA_HAS_AESCTR,4,2             ## @VIA_HAS_AESCTR
	.comm	_VIA_CPUID_HAS_PHE,4,2          ## @VIA_CPUID_HAS_PHE
	.comm	_VIA_HAS_SHA,4,2                ## @VIA_HAS_SHA
	.comm	_VIA_CPUID_HAS_PMM,4,2          ## @VIA_CPUID_HAS_PMM
	.comm	_VIA_HAS_MM,4,2                 ## @VIA_HAS_MM
	.no_dead_strip	_init_via
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_via
_init_via:                              ; @init_via
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	add	x1, sp, #8
	mov	w0, #-1073741824
	bl	_do_cpuid
	ldr	w8, [sp, #8]
	mov	w9, #-1073741823
	cmp	w8, w9
	b.lo	LBB0_12
; %bb.1:
	add	x1, sp, #8
	mov	w0, #-1073741823
	bl	_do_cpuid
	ldr	w19, [sp, #20]
Lloh3:
	adrp	x8, _VIA_CPUID_HAS_RNG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VIA_CPUID_HAS_RNG@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _VIA_HAS_RNG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VIA_HAS_RNG@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _via_feature_rng@GOTPAGE
Lloh10:
	ldr	x9, [x9, _via_feature_rng@GOTPAGEOFF]
Lloh11:
	str	w8, [x9]
	mov	w0, #4363
	bl	_rdmsr
Lloh12:
	adrp	x8, _VIA_CPUID_DO_RNG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VIA_CPUID_DO_RNG@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	w0, #4363
	bl	_wrmsr
LBB0_3:
Lloh15:
	adrp	x8, _VIA_CPUID_HAS_ACE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VIA_CPUID_HAS_ACE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x8]
Lloh18:
	adrp	x8, _via_feature_xcrypt@GOTPAGE
Lloh19:
	ldr	x8, [x8, _via_feature_xcrypt@GOTPAGEOFF]
	tst	w9, w19
	b.eq	LBB0_5
; %bb.4:
Lloh20:
	adrp	x9, _VIA_HAS_AES@GOTPAGE
Lloh21:
	ldr	x9, [x9, _VIA_HAS_AES@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	ldr	w10, [x8]
	orr	w9, w10, w9
	str	w9, [x8]
LBB0_5:
Lloh23:
	adrp	x9, _VIA_CPUID_HAS_ACE2@GOTPAGE
Lloh24:
	ldr	x9, [x9, _VIA_CPUID_HAS_ACE2@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w19
	b.eq	LBB0_7
; %bb.6:
Lloh26:
	adrp	x9, _VIA_HAS_AESCTR@GOTPAGE
Lloh27:
	ldr	x9, [x9, _VIA_HAS_AESCTR@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	ldr	w10, [x8]
	orr	w9, w10, w9
	str	w9, [x8]
LBB0_7:
Lloh29:
	adrp	x9, _VIA_CPUID_HAS_PHE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _VIA_CPUID_HAS_PHE@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	tst	w9, w19
	b.eq	LBB0_9
; %bb.8:
Lloh32:
	adrp	x9, _VIA_HAS_SHA@GOTPAGE
Lloh33:
	ldr	x9, [x9, _VIA_HAS_SHA@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	ldr	w10, [x8]
	orr	w9, w10, w9
	str	w9, [x8]
LBB0_9:
Lloh35:
	adrp	x9, _VIA_CPUID_HAS_PMM@GOTPAGE
Lloh36:
	ldr	x9, [x9, _VIA_CPUID_HAS_PMM@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	tst	w9, w19
	b.eq	LBB0_14
; %bb.10:
Lloh38:
	adrp	x9, _VIA_HAS_MM@GOTPAGE
Lloh39:
	ldr	x9, [x9, _VIA_HAS_MM@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	ldr	w10, [x8]
	orr	w9, w10, w9
	str	w9, [x8]
	cbz	w9, LBB0_12
LBB0_11:
	mov	w0, #4359
	bl	_rdmsr
	orr	w1, w0, #0x10000000
	mov	w0, #4359
	bl	_wrmsr
LBB0_12:
	ldr	x8, [sp, #24]
Lloh41:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh42:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_14:
	ldr	w9, [x8]
	cbnz	w9, LBB0_11
	b	LBB0_12
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_VIA_CPUID_HAS_RNG,4,2          ; @VIA_CPUID_HAS_RNG
	.comm	_VIA_HAS_RNG,4,2                ; @VIA_HAS_RNG
	.comm	_via_feature_rng,4,2            ; @via_feature_rng
	.comm	_VIA_CPUID_DO_RNG,4,2           ; @VIA_CPUID_DO_RNG
	.comm	_VIA_CPUID_HAS_ACE,4,2          ; @VIA_CPUID_HAS_ACE
	.comm	_VIA_HAS_AES,4,2                ; @VIA_HAS_AES
	.comm	_via_feature_xcrypt,4,2         ; @via_feature_xcrypt
	.comm	_VIA_CPUID_HAS_ACE2,4,2         ; @VIA_CPUID_HAS_ACE2
	.comm	_VIA_HAS_AESCTR,4,2             ; @VIA_HAS_AESCTR
	.comm	_VIA_CPUID_HAS_PHE,4,2          ; @VIA_CPUID_HAS_PHE
	.comm	_VIA_HAS_SHA,4,2                ; @VIA_HAS_SHA
	.comm	_VIA_CPUID_HAS_PMM,4,2          ; @VIA_CPUID_HAS_PMM
	.comm	_VIA_HAS_MM,4,2                 ; @VIA_HAS_MM
	.no_dead_strip	_init_via
.subsections_via_symbols
