	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svm_inject_nmi
_svm_inject_nmi:                        ## @svm_inject_nmi
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_to_svm
	movq	_SVM_EVTINJ_VALID@GOTPCREL(%rip), %rcx
	movq	_SVM_EVTINJ_TYPE_NMI@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	(%rax), %rdi
	movl	%edx, (%rdi)
	movq	_HF_NMI_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
	movq	_INTERCEPT_IRET@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shlq	%cl, %rax
	orq	%rax, 8(%rdi)
	movq	_VMCB_INTERCEPTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mark_dirty
	incl	(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SVM_EVTINJ_VALID,4,2           ## @SVM_EVTINJ_VALID
	.comm	_SVM_EVTINJ_TYPE_NMI,4,2        ## @SVM_EVTINJ_TYPE_NMI
	.comm	_HF_NMI_MASK,4,2                ## @HF_NMI_MASK
	.comm	_INTERCEPT_IRET,8,3             ## @INTERCEPT_IRET
	.comm	_VMCB_INTERCEPTS,4,2            ## @VMCB_INTERCEPTS
	.no_dead_strip	_svm_inject_nmi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svm_inject_nmi
_svm_inject_nmi:                        ; @svm_inject_nmi
	.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, x0
	bl	_to_svm
Lloh0:
	adrp	x8, _SVM_EVTINJ_VALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SVM_EVTINJ_VALID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SVM_EVTINJ_TYPE_NMI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SVM_EVTINJ_TYPE_NMI@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	x0, [x0]
	str	w8, [x0]
Lloh6:
	adrp	x8, _HF_NMI_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HF_NMI_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
Lloh9:
	adrp	x8, _INTERCEPT_IRET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INTERCEPT_IRET@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	mov	w9, #1
	lsl	x8, x9, x8
	ldr	x9, [x0, #8]
	orr	x8, x9, x8
	str	x8, [x0, #8]
Lloh12:
	adrp	x8, _VMCB_INTERCEPTS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VMCB_INTERCEPTS@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_mark_dirty
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SVM_EVTINJ_VALID,4,2           ; @SVM_EVTINJ_VALID
	.comm	_SVM_EVTINJ_TYPE_NMI,4,2        ; @SVM_EVTINJ_TYPE_NMI
	.comm	_HF_NMI_MASK,4,2                ; @HF_NMI_MASK
	.comm	_INTERCEPT_IRET,8,3             ; @INTERCEPT_IRET
	.comm	_VMCB_INTERCEPTS,4,2            ; @VMCB_INTERCEPTS
	.no_dead_strip	_svm_inject_nmi
.subsections_via_symbols
