	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_cpuid
_update_cpuid:                          ## @update_cpuid
	.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
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_kvm_find_cpuid_entry
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %rbx
	movq	_cpu_has_xsave@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.2:
	cmpl	$1, (%rbx)
	jne	LBB0_5
## %bb.3:
	movq	_X86_FEATURE_OSXSAVE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_bit
	notl	%eax
	andl	%eax, 4(%rbx)
	movq	_X86_CR4_OSXSAVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_kvm_read_cr4_bits
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%r12), %edi
	callq	_bit
	orl	%eax, 4(%rbx)
LBB0_5:
	testq	%r15, %r15
	je	LBB0_7
## %bb.6:
	movl	4(%rbx), %ebx
	movq	_X86_FEATURE_TSC_DEADLINE_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bit
	xorl	%ecx, %ecx
	testl	%ebx, %eax
	setne	%cl
	shll	$18, %ecx
	orl	$131072, %ecx                   ## imm = 0x20000
	movl	%ecx, (%r15)
LBB0_7:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kvm_pmu_cpuid_update           ## TAILCALL
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cpu_has_xsave,8,3              ## @cpu_has_xsave
	.comm	_X86_FEATURE_OSXSAVE,4,2        ## @X86_FEATURE_OSXSAVE
	.comm	_X86_CR4_OSXSAVE,4,2            ## @X86_CR4_OSXSAVE
	.comm	_X86_FEATURE_TSC_DEADLINE_TIMER,4,2 ## @X86_FEATURE_TSC_DEADLINE_TIMER
	.no_dead_strip	_update_cpuid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_cpuid
_update_cpuid:                          ; @update_cpuid
	.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, x0
	ldr	x21, [x0]
	mov	w1, #1
	mov	w2, #0
	bl	_kvm_find_cpuid_entry
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _cpu_has_xsave@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cpu_has_xsave@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	w8, [x20]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.3:
Lloh3:
	adrp	x22, _X86_FEATURE_OSXSAVE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _X86_FEATURE_OSXSAVE@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_bit
	ldr	w8, [x20, #4]
	bic	w8, w8, w0
	str	w8, [x20, #4]
Lloh5:
	adrp	x8, _X86_CR4_OSXSAVE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _X86_CR4_OSXSAVE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kvm_read_cr4_bits
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x22]
	bl	_bit
	ldr	w8, [x20, #4]
	orr	w8, w8, w0
	str	w8, [x20, #4]
LBB0_5:
	cbz	x21, LBB0_7
; %bb.6:
	ldr	w20, [x20, #4]
Lloh8:
	adrp	x8, _X86_FEATURE_TSC_DEADLINE_TIMER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _X86_FEATURE_TSC_DEADLINE_TIMER@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_bit
	tst	w0, w20
	mov	w8, #393216
	mov	w9, #131072
	csel	w8, w9, w8, eq
	str	w8, [x21]
LBB0_7:
	mov	x0, x19
	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
	b	_kvm_pmu_cpuid_update
LBB0_8:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_cpu_has_xsave,8,3              ; @cpu_has_xsave
	.comm	_X86_FEATURE_OSXSAVE,4,2        ; @X86_FEATURE_OSXSAVE
	.comm	_X86_CR4_OSXSAVE,4,2            ; @X86_CR4_OSXSAVE
	.comm	_X86_FEATURE_TSC_DEADLINE_TIMER,4,2 ; @X86_FEATURE_TSC_DEADLINE_TIMER
	.no_dead_strip	_update_cpuid
.subsections_via_symbols
