	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvm_init_msr_list
_kvm_init_msr_list:                     ## @kvm_init_msr_list
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_KVM_SAVE_MSRS_BEGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_msrs_to_save@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r13d
	jae	LBB0_7
## %bb.1:
	leaq	-52(%rbp), %r14
	leaq	-56(%rbp), %r15
	movq	%r13, %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jae	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_rdmsr_safe
	testq	%rax, %rax
	js	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %eax
	cmpq	%rax, %rbx
	jbe	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rcx
	movl	(%rcx,%rbx,4), %edx
	movl	%edx, (%rcx,%rax,4)
	jmp	LBB0_5
LBB0_7:
	movq	_num_msrs_to_save@GOTPCREL(%rip), %rax
	movl	%r13d, (%rax)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_KVM_SAVE_MSRS_BEGIN,4,2        ## @KVM_SAVE_MSRS_BEGIN
	.comm	_msrs_to_save,8,3               ## @msrs_to_save
	.comm	_num_msrs_to_save,4,2           ## @num_msrs_to_save
	.no_dead_strip	_kvm_init_msr_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kvm_init_msr_list
_kvm_init_msr_list:                     ; @kvm_init_msr_list
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh3:
	adrp	x8, _KVM_SAVE_MSRS_BEGIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KVM_SAVE_MSRS_BEGIN@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
Lloh6:
	adrp	x21, _msrs_to_save@GOTPAGE
Lloh7:
	ldr	x21, [x21, _msrs_to_save@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w20, w0
	b.hs	LBB0_7
; %bb.1:
	mov	x8, sp
	add	x19, x8, #4
	mov	x22, x20
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w20, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	x22, w0, uxtw
	b.hs	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8, x22, lsl #2]
	mov	x1, sp
	mov	x2, x19
	bl	_rdmsr_safe
	tbnz	x0, #63, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, w20
	cmp	x22, x8
	b.ls	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x21]
	ldr	w10, [x9, x22, lsl #2]
	str	w10, [x9, x8, lsl #2]
	b	LBB0_2
LBB0_7:
Lloh8:
	adrp	x8, _num_msrs_to_save@GOTPAGE
Lloh9:
	ldr	x8, [x8, _num_msrs_to_save@GOTPAGEOFF]
Lloh10:
	str	w20, [x8]
	ldr	x8, [sp, #8]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_KVM_SAVE_MSRS_BEGIN,4,2        ; @KVM_SAVE_MSRS_BEGIN
	.comm	_msrs_to_save,8,3               ; @msrs_to_save
	.comm	_num_msrs_to_save,4,2           ; @num_msrs_to_save
	.no_dead_strip	_kvm_init_msr_list
.subsections_via_symbols
