	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __vcpu_run
___vcpu_run:                            ## @__vcpu_run
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	56(%rdi), %r14
	xorl	%edi, %edi
	cmpq	$128, 32(%rbx)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	40(%rbx), %edx
	movl	48(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movq	%rbx, %rdi
	callq	_kvm_lapic_reset
	movq	%rbx, %rdi
	callq	_kvm_arch_vcpu_reset
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_22
## %bb.2:
	movq	$129, 32(%rbx)
LBB0_3:
	movq	%r14, %rdi
	callq	_srcu_read_lock
	movq	%rax, (%rbx)
	leaq	24(%rbx), %r12
	movl	$1, %r15d
	movq	_EINTR@GOTPCREL(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=1
	testl	%r15d, %r15d
	jle	LBB0_21
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$129, 32(%rbx)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_vcpu_enter_guest
	movl	%eax, %r15d
	testl	%r15d, %r15d
	jg	LBB0_12
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_srcu_read_unlock
	movq	%rbx, %rdi
	callq	_kvm_vcpu_block
	movq	%r14, %rdi
	callq	_srcu_read_lock
	movq	%rax, (%rbx)
	movq	_KVM_REQ_UNHALT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	32(%rbx), %rax
	cmpq	$129, %rax
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$130, %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	$129, 32(%rbx)
	jmp	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r15d, %r15d
	subl	(%r13), %r15d
	testl	%r15d, %r15d
	jle	LBB0_21
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_KVM_REQ_PENDING_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_clear_bit
	movq	%rbx, %rdi
	callq	_kvm_cpu_has_pending_timer
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_kvm_inject_pending_timer_irqs
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_dm_request_for_irq_injection
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r15d, %r15d
	subl	(%r13), %r15d
	movq	_KVM_EXIT_INTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%rbx), %rcx
	movq	%rax, (%rcx)
	incl	12(%rbx)
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_signal_pending
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r15d, %r15d
	subl	(%r13), %r15d
	movq	_KVM_EXIT_INTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%rbx), %rcx
	movq	%rax, (%rcx)
	incl	8(%rbx)
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_need_resched
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_srcu_read_unlock
	movq	%rbx, %rdi
	callq	_kvm_resched
	movq	%r14, %rdi
	callq	_srcu_read_lock
	movq	%rax, (%rbx)
	jmp	LBB0_20
LBB0_21:
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_srcu_read_unlock
LBB0_22:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vcpu %d received sipi with vector # %x\n"

	.comm	_KVM_REQ_UNHALT,4,2             ## @KVM_REQ_UNHALT
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_KVM_REQ_PENDING_TIMER,4,2      ## @KVM_REQ_PENDING_TIMER
	.comm	_KVM_EXIT_INTR,8,3              ## @KVM_EXIT_INTR
	.comm	_current,4,2                    ## @current
	.no_dead_strip	___vcpu_run
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __vcpu_run
___vcpu_run:                            ; @__vcpu_run
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	ldr	x19, [x0, #56]
	ldr	x8, [x0, #32]
	cmp	x8, #128
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w1, [x20, #48]
	ldr	w2, [x20, #40]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	mov	x0, x20
	bl	_kvm_lapic_reset
	mov	x0, x20
	bl	_kvm_arch_vcpu_reset
	mov	x22, x0
	cbnz	w0, LBB0_21
; %bb.2:
	mov	w8, #129
	str	x8, [x20, #32]
LBB0_3:
	mov	x0, x19
	bl	_srcu_read_lock
	mov	x21, x20
	str	x0, [x21], #24
Lloh2:
	adrp	x23, _KVM_REQ_PENDING_TIMER@GOTPAGE
Lloh3:
	ldr	x23, [x23, _KVM_REQ_PENDING_TIMER@GOTPAGEOFF]
Lloh4:
	adrp	x24, _current@GOTPAGE
Lloh5:
	ldr	x24, [x24, _current@GOTPAGEOFF]
Lloh6:
	adrp	x25, _EINTR@GOTPAGE
Lloh7:
	ldr	x25, [x25, _EINTR@GOTPAGEOFF]
	mov	w22, #1
Lloh8:
	adrp	x26, _KVM_EXIT_INTR@GOTPAGE
Lloh9:
	ldr	x26, [x26, _KVM_EXIT_INTR@GOTPAGEOFF]
	mov	w27, #129
Lloh10:
	adrp	x28, _KVM_REQ_UNHALT@GOTPAGE
Lloh11:
	ldr	x28, [x28, _KVM_REQ_UNHALT@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w22, #0
	b.le	LBB0_20
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #32]
	cmp	x8, #129
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_vcpu_enter_guest
	mov	x22, x0
	cmp	w22, #1
	b.ge	LBB0_12
	b	LBB0_20
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x20]
	mov	x0, x19
	bl	_srcu_read_unlock
	mov	x0, x20
	bl	_kvm_vcpu_block
	mov	x0, x19
	bl	_srcu_read_lock
	str	x0, [x20]
	ldr	w0, [x28]
	mov	x1, x21
	bl	_test_and_clear_bit
	cbz	x0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #32]
	cmp	x8, #129
	b.eq	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x8, #130
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	str	x27, [x20, #32]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x25]
	neg	w22, w8
	cmp	w22, #1
	b.lt	LBB0_20
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x23]
	mov	x1, x21
	bl	_clear_bit
	mov	x0, x20
	bl	_kvm_cpu_has_pending_timer
	cbz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_kvm_inject_pending_timer_irqs
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_dm_request_for_irq_injection
	cbz	x0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x25]
	neg	w22, w8
	ldr	x8, [x26]
	ldr	x9, [x20, #16]
	str	x8, [x9]
	ldr	w8, [x20, #12]
	add	w8, w8, #1
	str	w8, [x20, #12]
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x24]
	bl	_signal_pending
	cbz	x0, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x25]
	neg	w22, w8
	ldr	x8, [x26]
	ldr	x9, [x20, #16]
	str	x8, [x9]
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_need_resched
	cbz	x0, LBB0_4
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x20]
	mov	x0, x19
	bl	_srcu_read_unlock
	mov	x0, x20
	bl	_kvm_resched
	mov	x0, x19
	bl	_srcu_read_lock
	str	x0, [x20]
	b	LBB0_4
LBB0_20:
	ldr	x1, [x20]
	mov	x0, x19
	bl	_srcu_read_unlock
LBB0_21:
	mov	x0, x22
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vcpu %d received sipi with vector # %x\n"

	.comm	_KVM_REQ_UNHALT,4,2             ; @KVM_REQ_UNHALT
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_KVM_REQ_PENDING_TIMER,4,2      ; @KVM_REQ_PENDING_TIMER
	.comm	_KVM_EXIT_INTR,8,3              ; @KVM_EXIT_INTR
	.comm	_current,4,2                    ; @current
	.no_dead_strip	___vcpu_run
.subsections_via_symbols
