	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_try_deliver_interrupt          ## -- Begin function try_deliver_interrupt
	.p2align	4, 0x90
_try_deliver_interrupt:                 ## @try_deliver_interrupt
	.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
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r13
	movq	_LGUEST_IRQS@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%esi, (%rax)
	setbe	%dil
	callq	_BUG_ON
	movq	(%r13), %rax
	movq	32(%r13), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rax), %rcx
	jl	LBB0_2
## %bb.1:
	cmpq	8(%rax), %rcx
	jl	LBB0_10
LBB0_2:
	cmpq	$0, 24(%r13)
	je	LBB0_11
## %bb.3:
	movq	_X86_EFLAGS_IF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	16(%rax), %rsi
	addq	$4, %rsi
	callq	_put_user
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_kill_guest
LBB0_5:
	movq	$0, 24(%r13)
	movq	16(%r13), %r12
	movq	_FIRST_EXTERNAL_VECTOR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	%r15d, %ebx
	movl	(%r12,%rbx,8), %esi
	movl	4(%r12,%rbx,8), %edi
	callq	_idt_present
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	8(%r13), %esi
	movl	%r15d, %edi
	callq	_clear_bit
	movl	(%r12,%rbx,8), %edx
	movl	4(%r12,%rbx,8), %esi
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	callq	_set_guest_interrupt
LBB0_7:
	movq	%r13, %rdi
	callq	_write_timestamp
	testl	%r14d, %r14d
	je	LBB0_8
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	16(%rax), %rsi
	addq	$4, %rsi
	xorl	%edi, %edi
	callq	_get_user
	movq	_X86_EFLAGS_IF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	jmp	LBB0_9
LBB0_8:
	xorl	%edi, %edi
LBB0_9:
	movq	(%r13), %rax
	movq	16(%rax), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_put_user                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LGUEST_IRQS,4,2                ## @LGUEST_IRQS
	.comm	_X86_EFLAGS_IF,4,2              ## @X86_EFLAGS_IF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Re-enabling interrupts"

	.comm	_FIRST_EXTERNAL_VECTOR,4,2      ## @FIRST_EXTERNAL_VECTOR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_try_deliver_interrupt          ; -- Begin function try_deliver_interrupt
	.p2align	2
_try_deliver_interrupt:                 ; @try_deliver_interrupt
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _LGUEST_IRQS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LGUEST_IRQS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	cset	w0, ls
	bl	_BUG_ON
	ldr	x8, [x19, #32]
	ldr	x9, [x8]
	ldr	x8, [x19]
	ldr	x10, [x8]
	cmp	x9, x10
	b.lt	LBB0_2
; %bb.1:
	ldr	x10, [x8, #8]
	cmp	x9, x10
	b.lt	LBB0_8
LBB0_2:
	ldr	x9, [x19, #24]
	cbz	x9, LBB0_9
; %bb.3:
Lloh3:
	adrp	x9, _X86_EFLAGS_IF@GOTPAGE
Lloh4:
	ldr	x9, [x9, _X86_EFLAGS_IF@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x9]
	ldr	x8, [x8, #16]
	add	x1, x8, #4
	bl	_put_user
	cbz	x0, LBB0_5
; %bb.4:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_kill_guest
LBB0_5:
	str	xzr, [x19, #24]
	ldr	x8, [x19, #16]
Lloh8:
	adrp	x9, _FIRST_EXTERNAL_VECTOR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _FIRST_EXTERNAL_VECTOR@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	add	w9, w9, w21
	add	x22, x8, w9, uxtw #3
	mov	x23, x22
	ldr	w0, [x23, #4]!
	ldr	w1, [x22]
	bl	_idt_present
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w1, [x19, #8]
	mov	x0, x21
	bl	_clear_bit
	ldr	w1, [x23]
	ldr	w2, [x22]
	mov	x0, x19
	mov	w3, #0
	bl	_set_guest_interrupt
LBB0_7:
	mov	x0, x19
	bl	_write_timestamp
	cbz	w20, LBB0_10
LBB0_8:
	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
LBB0_9:
	ldr	x8, [x8, #16]
	add	x1, x8, #4
	mov	x0, #0
	bl	_get_user
Lloh11:
	adrp	x8, _X86_EFLAGS_IF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _X86_EFLAGS_IF@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldr	x8, [x19]
	ldr	x1, [x8, #16]
	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
	b	_put_user
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_LGUEST_IRQS,4,2                ; @LGUEST_IRQS
	.comm	_X86_EFLAGS_IF,4,2              ; @X86_EFLAGS_IF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Re-enabling interrupts"

	.comm	_FIRST_EXTERNAL_VECTOR,4,2      ; @FIRST_EXTERNAL_VECTOR
.subsections_via_symbols
