	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmx_inject_irq
_vmx_inject_irq:                        ## @vmx_inject_irq
	.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	%rdi, %r14
	callq	_to_vmx
	movq	%rax, %r15
	movl	(%r14), %ebx
	movl	%ebx, %edi
	callq	_trace_kvm_inj_virq
	incl	16(%r14)
	cmpq	$0, 24(%r15)
	je	LBB0_4
## %bb.1:
	movl	$1, 8(%r15)
	movl	%ebx, 12(%r15)
	movq	%r14, %rdi
	callq	_kvm_rip_read
	movq	%rax, 16(%r15)
	cmpq	$0, 8(%r14)
	je	LBB0_3
## %bb.2:
	movslq	(%r15), %rcx
	addq	%rcx, %rax
	movq	%rax, 16(%r15)
LBB0_3:
	movq	_VM_ENTRY_INTR_INFO_FIELD@GOTPCREL(%rip), %rax
	movq	_INTR_TYPE_SOFT_INTR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movl	(%rax), %edi
	movq	_INTR_INFO_VALID_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, %esi
	callq	_vmcs_write32
	movq	_VM_ENTRY_INSTRUCTION_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_vmcs_write32
	movq	16(%r15), %rsi
	decq	%rsi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kvm_rip_write                  ## TAILCALL
LBB0_4:
	movq	_INTR_INFO_VALID_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	cmpq	$0, 8(%r14)
	je	LBB0_6
## %bb.5:
	movq	_INTR_TYPE_SOFT_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_VM_ENTRY_INSTRUCTION_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_vmcs_write32
	jmp	LBB0_7
LBB0_6:
	movq	_INTR_TYPE_EXT_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_7:
	orl	%r12d, %ebx
	movq	_VM_ENTRY_INTR_INFO_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_vmcs_write32
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vmx_clear_hlt                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_ENTRY_INTR_INFO_FIELD,4,2   ## @VM_ENTRY_INTR_INFO_FIELD
	.comm	_INTR_TYPE_SOFT_INTR,4,2        ## @INTR_TYPE_SOFT_INTR
	.comm	_INTR_INFO_VALID_MASK,4,2       ## @INTR_INFO_VALID_MASK
	.comm	_VM_ENTRY_INSTRUCTION_LEN,4,2   ## @VM_ENTRY_INSTRUCTION_LEN
	.comm	_INTR_TYPE_EXT_INTR,4,2         ## @INTR_TYPE_EXT_INTR
	.no_dead_strip	_vmx_inject_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmx_inject_irq
_vmx_inject_irq:                        ; @vmx_inject_irq
	.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
	mov	x19, x0
	bl	_to_vmx
	mov	x20, x0
	ldr	w21, [x19]
	mov	x0, x21
	bl	_trace_kvm_inj_virq
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_4
; %bb.1:
	mov	w8, #1
	stp	w8, w21, [x20, #8]
	mov	x0, x19
	bl	_kvm_rip_read
	str	x0, [x20, #16]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.2:
	ldrsw	x8, [x20]
	add	x8, x0, x8
	str	x8, [x20, #16]
LBB0_3:
Lloh0:
	adrp	x8, _VM_ENTRY_INTR_INFO_FIELD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VM_ENTRY_INTR_INFO_FIELD@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _INTR_TYPE_SOFT_INTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INTR_TYPE_SOFT_INTR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w8, w8, w21
Lloh6:
	adrp	x9, _INTR_INFO_VALID_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _INTR_INFO_VALID_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_vmcs_write32
Lloh9:
	adrp	x8, _VM_ENTRY_INSTRUCTION_LEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VM_ENTRY_INSTRUCTION_LEN@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_vmcs_write32
	ldr	x8, [x20, #16]
	sub	x1, x8, #1
	mov	x0, x19
	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
	b	_kvm_rip_write
LBB0_4:
Lloh12:
	adrp	x8, _INTR_INFO_VALID_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INTR_INFO_VALID_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w21, w8, w21
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.5:
Lloh15:
	adrp	x8, _INTR_TYPE_SOFT_INTR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _INTR_TYPE_SOFT_INTR@GOTPAGEOFF]
Lloh17:
	ldr	w22, [x8]
Lloh18:
	adrp	x8, _VM_ENTRY_INSTRUCTION_LEN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VM_ENTRY_INSTRUCTION_LEN@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_vmcs_write32
	b	LBB0_7
LBB0_6:
Lloh21:
	adrp	x8, _INTR_TYPE_EXT_INTR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _INTR_TYPE_EXT_INTR@GOTPAGEOFF]
Lloh23:
	ldr	w22, [x8]
LBB0_7:
	orr	w1, w21, w22
Lloh24:
	adrp	x8, _VM_ENTRY_INTR_INFO_FIELD@GOTPAGE
Lloh25:
	ldr	x8, [x8, _VM_ENTRY_INTR_INFO_FIELD@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_vmcs_write32
	mov	x0, x19
	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
	b	_vmx_clear_hlt
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_ENTRY_INTR_INFO_FIELD,4,2   ; @VM_ENTRY_INTR_INFO_FIELD
	.comm	_INTR_TYPE_SOFT_INTR,4,2        ; @INTR_TYPE_SOFT_INTR
	.comm	_INTR_INFO_VALID_MASK,4,2       ; @INTR_INFO_VALID_MASK
	.comm	_VM_ENTRY_INSTRUCTION_LEN,4,2   ; @VM_ENTRY_INSTRUCTION_LEN
	.comm	_INTR_TYPE_EXT_INTR,4,2         ; @INTR_TYPE_EXT_INTR
	.no_dead_strip	_vmx_inject_irq
.subsections_via_symbols
