	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cb_setmsr
_cb_setmsr:                             ## @cb_setmsr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %r14d
	movq	_VM_REG_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ebx
	cmpl	$128, %esi
	jne	LBB0_2
## %bb.1:
	movq	_VM_REG_GUEST_EFER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_2:
	cmpl	%eax, %ebx
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_printf
	movq	_USERBOOT_EXIT_QUIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_cb_exit
LBB0_4:
	movq	_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BSP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	callq	_vm_set_register
	testl	%eax, %eax
	jne	LBB0_5
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	callq	_cb_setmsr.cold.1
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function cb_setmsr.cold.1
_cb_setmsr.cold.1:                      ## @cb_setmsr.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
	movq	_USERBOOT_EXIT_QUIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	popq	%rbp
	jmp	_cb_exit                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_REG_LAST,4,2                ## @VM_REG_LAST
	.comm	_VM_REG_GUEST_EFER,4,2          ## @VM_REG_GUEST_EFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"test_setmsr(%d): not implemented\n"

	.comm	_USERBOOT_EXIT_QUIT,4,2         ## @USERBOOT_EXIT_QUIT
	.comm	_ctx,4,2                        ## @ctx
	.comm	_BSP,4,2                        ## @BSP
L_.str.1:                               ## @.str.1
	.asciz	"vm_set_msr"

	.no_dead_strip	_cb_setmsr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cb_setmsr
_cb_setmsr:                             ; @cb_setmsr
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
Lloh0:
	adrp	x8, _VM_REG_GUEST_EFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VM_REG_GUEST_EFER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _VM_REG_LAST@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VM_REG_LAST@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w1, #128
	csel	w20, w8, w9, eq
	cmp	w20, w9
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
Lloh8:
	adrp	x8, _USERBOOT_EXIT_QUIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _USERBOOT_EXIT_QUIT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, #0
	bl	_cb_exit
LBB0_2:
Lloh11:
	adrp	x8, _ctx@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ctx@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _BSP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BSP@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x2, x20
	mov	x3, x19
	bl	_vm_set_register
	cbnz	w0, LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	bl	_cb_setmsr.cold.1
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function cb_setmsr.cold.1
_cb_setmsr.cold.1:                      ; @cb_setmsr.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
Lloh19:
	adrp	x8, _USERBOOT_EXIT_QUIT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _USERBOOT_EXIT_QUIT@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_cb_exit
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_REG_LAST,4,2                ; @VM_REG_LAST
	.comm	_VM_REG_GUEST_EFER,4,2          ; @VM_REG_GUEST_EFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"test_setmsr(%d): not implemented\n"

	.comm	_USERBOOT_EXIT_QUIT,4,2         ; @USERBOOT_EXIT_QUIT
	.comm	_ctx,4,2                        ; @ctx
	.comm	_BSP,4,2                        ; @BSP
l_.str.1:                               ; @.str.1
	.asciz	"vm_set_msr"

	.no_dead_strip	_cb_setmsr
.subsections_via_symbols
