	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_guest_interrupt
_set_guest_interrupt:                   ## @set_guest_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	24(%rdi), %rax
	movl	(%rax), %r15d
	movl	%r15d, %ebx
	andl	$3, %ebx
	movq	_GUEST_PL@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %ebx
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	jne	LBB0_1
## %bb.2:
	movslq	4(%rax), %r12
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_guest_pa
	movq	%rax, %rbx
	movq	%rax, -48(%rbp)
	jmp	LBB0_3
LBB0_1:
	movq	(%r13), %r12
	movl	8(%r13), %r15d
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_guest_pa
	movq	%rax, %rbx
	movq	%rax, -48(%rbp)
	movq	24(%r13), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %r14
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_push_guest_stack
	movq	24(%r13), %rax
	movl	4(%rax), %edx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_push_guest_stack
LBB0_3:
	movq	16(%r13), %rax
	movq	24(%r13), %rcx
	movl	8(%rcx), %r14d
	movq	(%rax), %rsi
	callq	_get_user
	movq	_X86_EFLAGS_IF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	xorl	%edx, %edx
	negq	%rax
	sbbl	%edx, %edx
	orl	%ecx, %edx
	andl	%r14d, %edx
	leaq	-48(%rbp), %r14
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_push_guest_stack
	movq	24(%r13), %rax
	movl	12(%rax), %edx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_push_guest_stack
	movq	24(%r13), %rax
	movl	16(%rax), %edx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_push_guest_stack
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_5
## %bb.4:
	movq	24(%r13), %rax
	movl	20(%rax), %edx
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_push_guest_stack
LBB0_5:
	movq	24(%r13), %rax
	movl	%r15d, (%rax)
	subl	%ebx, %r12d
	addl	-48(%rbp), %r12d
	movl	%r12d, 4(%rax)
	movq	___KERNEL_CS@GOTPCREL(%rip), %rcx
	movq	_GUEST_PL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	%edx, 12(%rax)
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_idt_address
	movq	24(%r13), %rcx
	movl	%eax, 16(%rcx)
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_idt_type
	cmpl	$14, %eax
	jne	LBB0_8
## %bb.6:
	movq	16(%r13), %rax
	movq	(%rax), %rsi
	xorl	%edi, %edi
	callq	_put_user
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_kill_guest
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GUEST_PL,4,2                   ## @GUEST_PL
	.comm	_X86_EFLAGS_IF,4,2              ## @X86_EFLAGS_IF
	.comm	___KERNEL_CS,4,2                ## @__KERNEL_CS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Disabling interrupts"

	.no_dead_strip	_set_guest_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_guest_interrupt
_set_guest_interrupt:                   ; @set_guest_interrupt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldr	w26, [x8]
	and	w9, w26, #0x3
Lloh0:
	adrp	x25, _GUEST_PL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _GUEST_PL@GOTPAGEOFF]
	ldr	w10, [x25]
	cmp	w9, w10
	b.ne	LBB0_2
; %bb.1:
	ldrsw	x22, [x8, #4]
	mov	x0, x19
	mov	x1, x22
	bl	_guest_pa
	mov	x24, x0
	str	x0, [sp, #8]
	b	LBB0_3
LBB0_2:
	ldr	x22, [x19]
	ldr	w26, [x19, #8]
	mov	x0, x19
	mov	x1, x22
	bl	_guest_pa
	mov	x24, x0
	str	x0, [sp, #8]
	ldr	x8, [x19, #24]
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_push_guest_stack
	ldr	x8, [x19, #24]
	ldr	w2, [x8, #4]
	add	x1, sp, #8
	mov	x0, x19
	bl	_push_guest_stack
LBB0_3:
	ldp	x9, x8, [x19, #16]
	ldr	w27, [x8, #8]
	ldr	x1, [x9]
	bl	_get_user
Lloh2:
	adrp	x8, _X86_EFLAGS_IF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _X86_EFLAGS_IF@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	x0, #0
	mov	w9, #-1
	csinv	w8, w9, w8, ne
	and	w2, w8, w27
	add	x1, sp, #8
	mov	x0, x19
	bl	_push_guest_stack
	ldr	x8, [x19, #24]
	ldr	w2, [x8, #12]
	add	x1, sp, #8
	mov	x0, x19
	bl	_push_guest_stack
	ldr	x8, [x19, #24]
	ldr	w2, [x8, #16]
	add	x1, sp, #8
	mov	x0, x19
	bl	_push_guest_stack
	cbz	w23, LBB0_5
; %bb.4:
	ldr	x8, [x19, #24]
	ldr	w2, [x8, #20]
	add	x1, sp, #8
	mov	x0, x19
	bl	_push_guest_stack
LBB0_5:
	ldr	x8, [x19, #24]
	ldr	w9, [sp, #8]
	sub	w10, w22, w24
	add	w9, w10, w9
	stp	w26, w9, [x8]
Lloh5:
	adrp	x9, ___KERNEL_CS@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___KERNEL_CS@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	ldr	w10, [x25]
	orr	w9, w10, w9
	str	w9, [x8, #12]
	mov	x0, x21
	mov	x1, x20
	bl	_idt_address
	ldr	x8, [x19, #24]
	str	w0, [x8, #16]
	mov	x0, x21
	mov	x1, x20
	bl	_idt_type
	cmp	w0, #14
	b.ne	LBB0_8
; %bb.6:
	ldr	x8, [x19, #16]
	ldr	x1, [x8]
	mov	w0, #0
	bl	_put_user
	cbz	x0, LBB0_8
; %bb.7:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_kill_guest
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GUEST_PL,4,2                   ; @GUEST_PL
	.comm	_X86_EFLAGS_IF,4,2              ; @X86_EFLAGS_IF
	.comm	___KERNEL_CS,4,2                ; @__KERNEL_CS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Disabling interrupts"

	.no_dead_strip	_set_guest_interrupt
.subsections_via_symbols
