	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_efer
_set_efer:                              ## @set_efer
	.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	_efer_reserved_bits@GOTPCREL(%rip), %rax
	movl	$1, %r15d
	testl	%esi, (%rax)
	je	LBB0_1
LBB0_10:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_is_paging
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_EFER_LME@GOTPCREL(%rip), %rax
	movl	(%r14), %ecx
	xorl	%ebx, %ecx
	testl	%ecx, (%rax)
	jne	LBB0_10
LBB0_3:
	movq	_EFER_FFXSR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	movl	$-2147483647, %esi              ## imm = 0x80000001
	xorl	%edx, %edx
	callq	_kvm_find_cpuid_entry
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movl	(%rax), %r12d
	movq	_X86_FEATURE_FXSR_OPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bit
	testl	%r12d, %eax
	je	LBB0_10
LBB0_6:
	movq	_EFER_SVME@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_9
## %bb.7:
	movq	%r14, %rdi
	movl	$-2147483647, %esi              ## imm = 0x80000001
	xorl	%edx, %edx
	callq	_kvm_find_cpuid_entry
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movl	4(%rax), %r12d
	movq	_X86_FEATURE_SVM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bit
	testl	%r12d, %eax
	je	LBB0_10
LBB0_9:
	movq	_EFER_LMA@GOTPCREL(%rip), %rax
	movl	(%r14), %r15d
	xorl	%ebx, %r15d
	andl	(%rax), %r15d
	xorl	%ebx, %r15d
	movq	_kvm_x86_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	*(%rax)
	movl	%r15d, (%r14)
	movq	_EFER_NX@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	setne	%al
	movq	_tdp_enabled@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %eax
	movl	%eax, 4(%r14)
	movq	%r14, %rdi
	callq	_kvm_mmu_reset_context
	xorl	%r15d, %r15d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_efer_reserved_bits,4,2         ## @efer_reserved_bits
	.comm	_EFER_LME,4,2                   ## @EFER_LME
	.comm	_EFER_FFXSR,4,2                 ## @EFER_FFXSR
	.comm	_X86_FEATURE_FXSR_OPT,4,2       ## @X86_FEATURE_FXSR_OPT
	.comm	_EFER_SVME,4,2                  ## @EFER_SVME
	.comm	_X86_FEATURE_SVM,4,2            ## @X86_FEATURE_SVM
	.comm	_EFER_LMA,4,2                   ## @EFER_LMA
	.comm	_kvm_x86_ops,8,3                ## @kvm_x86_ops
	.comm	_EFER_NX,4,2                    ## @EFER_NX
	.comm	_tdp_enabled,4,2                ## @tdp_enabled
	.no_dead_strip	_set_efer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_efer
_set_efer:                              ; @set_efer
	.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
Lloh0:
	adrp	x8, _efer_reserved_bits@GOTPAGE
Lloh1:
	ldr	x8, [x8, _efer_reserved_bits@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_3
LBB0_1:
	mov	w0, #1
LBB0_2:
	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
LBB0_3:
	mov	x20, x1
	mov	x19, x0
	bl	_is_paging
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _EFER_LME@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EFER_LME@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	eor	w8, w8, w20
	tst	w8, w9
	b.ne	LBB0_1
LBB0_5:
Lloh6:
	adrp	x8, _EFER_FFXSR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EFER_FFXSR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.6:
	mov	x0, x19
	mov	w1, #-2147483647
	mov	w2, #0
	bl	_kvm_find_cpuid_entry
	cbz	x0, LBB0_1
; %bb.7:
	ldr	w21, [x0]
Lloh9:
	adrp	x8, _X86_FEATURE_FXSR_OPT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _X86_FEATURE_FXSR_OPT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_bit
	tst	w0, w21
	b.eq	LBB0_1
LBB0_8:
Lloh12:
	adrp	x8, _EFER_SVME@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EFER_SVME@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_11
; %bb.9:
	mov	x0, x19
	mov	w1, #-2147483647
	mov	w2, #0
	bl	_kvm_find_cpuid_entry
	cbz	x0, LBB0_1
; %bb.10:
	ldr	w21, [x0, #4]
Lloh15:
	adrp	x8, _X86_FEATURE_SVM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _X86_FEATURE_SVM@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_bit
	tst	w0, w21
	b.eq	LBB0_1
LBB0_11:
Lloh18:
	adrp	x8, _EFER_LMA@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EFER_LMA@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	bic	w9, w20, w8
	ldr	w10, [x19]
	and	w8, w10, w8
	orr	w20, w8, w9
Lloh21:
	adrp	x8, _kvm_x86_ops@GOTPAGE
Lloh22:
	ldr	x8, [x8, _kvm_x86_ops@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	str	w20, [x19]
Lloh24:
	adrp	x8, _EFER_NX@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EFER_NX@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w20
Lloh27:
	adrp	x8, _tdp_enabled@GOTPAGE
Lloh28:
	ldr	x8, [x8, _tdp_enabled@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ccmp	w8, #0, #0, ne
	cset	w8, eq
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_kvm_mmu_reset_context
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_efer_reserved_bits,4,2         ; @efer_reserved_bits
	.comm	_EFER_LME,4,2                   ; @EFER_LME
	.comm	_EFER_FFXSR,4,2                 ; @EFER_FFXSR
	.comm	_X86_FEATURE_FXSR_OPT,4,2       ; @X86_FEATURE_FXSR_OPT
	.comm	_EFER_SVME,4,2                  ; @EFER_SVME
	.comm	_X86_FEATURE_SVM,4,2            ; @X86_FEATURE_SVM
	.comm	_EFER_LMA,4,2                   ; @EFER_LMA
	.comm	_kvm_x86_ops,8,3                ; @kvm_x86_ops
	.comm	_EFER_NX,4,2                    ; @EFER_NX
	.comm	_tdp_enabled,4,2                ; @tdp_enabled
	.no_dead_strip	_set_efer
.subsections_via_symbols
