	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmx_modify_intr_shadow
_vmx_modify_intr_shadow:                ## @vmx_modify_intr_shadow
	.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	%rcx, %r13
	movl	%esi, %r14d
	movq	%rdi, %r15
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_4
LBB0_2:
	movl	%edx, %r12d
	movslq	%r14d, %rbx
	shlq	$2, %rbx
	addq	8(%r15), %rbx
	movq	_VMCS_GUEST_INTERRUPTIBILITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_VMCS_IDENT
	leaq	-56(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movl	%r12d, %esi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %edx
	callq	_vmcs_getreg
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_HWINTR_BLOCKING@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	notq	%rcx
	andq	-56(%rbp), %rcx
	movq	%rcx, -56(%rbp)
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_vmcs_setreg
	movl	%eax, %r12d
LBB0_4:
	movl	(%r15), %edi
	testl	%r12d, %r12d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str(%rip), %rdx
	movl	%r14d, %esi
	movq	%r13, %rcx
	callq	_VCPU_CTR2
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VMCS_GUEST_INTERRUPTIBILITY,4,2 ## @VMCS_GUEST_INTERRUPTIBILITY
	.comm	_HWINTR_BLOCKING,8,3            ## @HWINTR_BLOCKING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting intr_shadow to %#lx %s"

L_.str.1:                               ## @.str.1
	.asciz	"failed"

L_.str.2:                               ## @.str.2
	.asciz	"succeeded"

	.no_dead_strip	_vmx_modify_intr_shadow
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmx_modify_intr_shadow
_vmx_modify_intr_shadow:                ; @vmx_modify_intr_shadow
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
	cbz	x3, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	b	LBB0_4
LBB0_2:
	mov	x22, x2
	ldr	x8, [x21, #8]
	add	x23, x8, w20, sxtw #2
Lloh3:
	adrp	x8, _VMCS_GUEST_INTERRUPTIBILITY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VMCS_GUEST_INTERRUPTIBILITY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_VMCS_IDENT
	mov	x25, x0
	add	x3, sp, #8
	mov	x0, x23
	mov	x1, x22
	mov	x2, x25
	bl	_vmcs_getreg
	mov	x24, x0
	cbnz	w0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _HWINTR_BLOCKING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HWINTR_BLOCKING@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x9, [sp, #8]
	bic	x3, x9, x8
	str	x3, [sp, #8]
	mov	x0, x23
	mov	x1, x22
	mov	x2, x25
	bl	_vmcs_setreg
	mov	x24, x0
LBB0_4:
	ldr	w0, [x21]
Lloh9:
	adrp	x8, l_.str.1@PAGE
Lloh10:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh11:
	adrp	x9, l_.str.2@PAGE
Lloh12:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w24, #0
	csel	x4, x9, x8, eq
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x20
	mov	x3, x19
	bl	_VCPU_CTR2
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VMCS_GUEST_INTERRUPTIBILITY,4,2 ; @VMCS_GUEST_INTERRUPTIBILITY
	.comm	_HWINTR_BLOCKING,8,3            ; @HWINTR_BLOCKING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting intr_shadow to %#lx %s"

l_.str.1:                               ; @.str.1
	.asciz	"failed"

l_.str.2:                               ; @.str.2
	.asciz	"succeeded"

	.no_dead_strip	_vmx_modify_intr_shadow
.subsections_via_symbols
