	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmx_set_intr_ready
_vmx_set_intr_ready:                    ## @vmx_set_intr_ready
	.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
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r12
	leal	63(%rbx), %eax
	testl	%esi, %esi
	cmovnsl	%esi, %eax
	movq	8(%rdi), %r15
	movl	%eax, %edx
	sarl	$6, %edx
	andl	$-64, %eax
	movl	%esi, %ecx
	subl	%eax, %ecx
	movl	$1, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shlq	%cl, %rsi
	movslq	%edx, %rdi
	shlq	$2, %rdi
	addq	8(%r15), %rdi
	callq	_atomic_set_long
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_atomic_cmpset_long
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$0, (%r12)
	jmp	LBB0_6
LBB0_2:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	(%r12), %r14d
	movq	_APIC_TPR_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%ebx, %edi
	callq	_VPR_PRIO_BIT
	cmpl	%r14d, %eax
	jle	LBB0_3
## %bb.4:
	andl	%eax, %r14d
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jne	LBB0_7
## %bb.5:
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_atomic_set_int
LBB0_6:
	movl	$1, %r13d
LBB0_7:
	movl	(%r12), %esi
	movl	4(%r12), %edi
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rsp)
	movq	%r15, %rdx
	movl	%r13d, %ecx
	movl	%ebx, %r8d
	movl	%r14d, %r9d
	callq	_VMX_CTR_PIR
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_APIC_TPR_INT,4,2               ## @APIC_TPR_INT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vmx_set_intr_ready"

	.no_dead_strip	_vmx_set_intr_ready
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmx_set_intr_ready
_vmx_set_intr_ready:                    ; @vmx_set_intr_ready
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x21, [x0, #8]
	add	w8, w1, #63
	cmp	w1, #0
	csel	w8, w8, w1, lt
	asr	w9, w8, #6
	and	w8, w8, #0xffffffc0
	sub	w8, w1, w8
	mov	w10, #1
	lsl	x1, x10, x8
	ldr	x8, [x21, #8]
	add	x0, x8, w9, sxtw #2
	bl	_atomic_set_long
	mov	x0, x21
	mov	w1, #0
	mov	w2, #1
	bl	_atomic_cmpset_long
	cbz	x0, LBB0_2
; %bb.1:
	str	wzr, [x22]
	b	LBB0_5
LBB0_2:
	ldr	w23, [x22]
Lloh0:
	adrp	x8, _APIC_TPR_INT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _APIC_TPR_INT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w0, w8, w20
	bl	_VPR_PRIO_BIT
	and	w8, w0, w23
	cmp	w0, w23
	ccmp	w8, #0, #0, gt
	b.eq	LBB0_4
; %bb.3:
	mov	w23, #0
	b	LBB0_6
LBB0_4:
	mov	x1, x0
	mov	x0, x22
	bl	_atomic_set_int
LBB0_5:
	mov	w23, #1
LBB0_6:
	ldp	w1, w0, [x22]
Lloh3:
	adrp	x6, l_.str@PAGE
Lloh4:
	add	x6, x6, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x23
	mov	x4, x20
	mov	x5, x19
	bl	_VMX_CTR_PIR
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_APIC_TPR_INT,4,2               ; @APIC_TPR_INT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vmx_set_intr_ready"

	.no_dead_strip	_vmx_set_intr_ready
.subsections_via_symbols
