	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_guest_debug
_set_guest_debug:                       ## @set_guest_debug
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %r14d
	movl	(%rsi), %eax
	movl	%eax, (%rdi)
	movq	_KVM_GUESTDBG_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	cmovnel	%eax, %ecx
	movl	%ecx, (%rdi)
	movq	_KVM_GUESTDBG_USE_HW_BP@GOTPCREL(%rip), %rax
	movq	_GUEST_DR7@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	8(%rsi), %rax
	addq	$56, %rax
	jmp	LBB0_3
LBB0_2:
	leaq	8(%rbx), %rax
LBB0_3:
	movq	(%rax), %rsi
	callq	_vmcs_writel
	movq	_GUEST_RFLAGS@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_vmcs_readl
	movq	_KVM_GUESTDBG_SINGLESTEP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_5
## %bb.4:
	movq	_X86_EFLAGS_TF@GOTPCREL(%rip), %rcx
	movq	_X86_EFLAGS_RF@GOTPCREL(%rip), %rdx
	movq	(%rcx), %rcx
	orq	%rax, %rcx
	orq	(%rdx), %rcx
	movq	%rcx, %rax
	jmp	LBB0_7
LBB0_5:
	testl	%r14d, %ecx
	je	LBB0_7
## %bb.6:
	movq	_X86_EFLAGS_TF@GOTPCREL(%rip), %rcx
	movq	_X86_EFLAGS_RF@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	orq	(%rcx), %rdx
	notq	%rdx
	andq	%rdx, %rax
LBB0_7:
	movl	(%r15), %edi
	movq	%rax, %rsi
	callq	_vmcs_writel
	movq	%rbx, %rdi
	callq	_update_exception_bitmap
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KVM_GUESTDBG_ENABLE,4,2        ## @KVM_GUESTDBG_ENABLE
	.comm	_KVM_GUESTDBG_USE_HW_BP,4,2     ## @KVM_GUESTDBG_USE_HW_BP
	.comm	_GUEST_DR7,4,2                  ## @GUEST_DR7
	.comm	_GUEST_RFLAGS,4,2               ## @GUEST_RFLAGS
	.comm	_KVM_GUESTDBG_SINGLESTEP,4,2    ## @KVM_GUESTDBG_SINGLESTEP
	.comm	_X86_EFLAGS_TF,8,3              ## @X86_EFLAGS_TF
	.comm	_X86_EFLAGS_RF,8,3              ## @X86_EFLAGS_RF
	.no_dead_strip	_set_guest_debug
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_guest_debug
_set_guest_debug:                       ; @set_guest_debug
	.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
	ldr	w20, [x0]
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _KVM_GUESTDBG_ENABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _KVM_GUESTDBG_ENABLE@GOTPAGEOFF]
	str	w8, [x0]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	csel	w8, wzr, w8, eq
Lloh3:
	adrp	x9, _KVM_GUESTDBG_USE_HW_BP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _KVM_GUESTDBG_USE_HW_BP@GOTPAGEOFF]
	str	w8, [x0]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _GUEST_DR7@GOTPAGE
Lloh7:
	ldr	x10, [x10, _GUEST_DR7@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x10]
	tst	w8, w9
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x1, #8]
	add	x8, x8, #56
	b	LBB0_3
LBB0_2:
	add	x8, x19, #8
LBB0_3:
	ldr	x1, [x8]
	bl	_vmcs_writel
Lloh9:
	adrp	x21, _GUEST_RFLAGS@GOTPAGE
Lloh10:
	ldr	x21, [x21, _GUEST_RFLAGS@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_vmcs_readl
	mov	x1, x0
	ldr	w9, [x19]
Lloh11:
	adrp	x8, _KVM_GUESTDBG_SINGLESTEP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _KVM_GUESTDBG_SINGLESTEP@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_5
; %bb.4:
Lloh14:
	adrp	x8, _X86_EFLAGS_TF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _X86_EFLAGS_TF@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
Lloh17:
	adrp	x9, _X86_EFLAGS_RF@GOTPAGE
Lloh18:
	ldr	x9, [x9, _X86_EFLAGS_RF@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	orr	x8, x8, x1
	orr	x1, x8, x9
	b	LBB0_7
LBB0_5:
	tst	w8, w20
	b.eq	LBB0_7
; %bb.6:
Lloh20:
	adrp	x8, _X86_EFLAGS_TF@GOTPAGE
Lloh21:
	ldr	x8, [x8, _X86_EFLAGS_TF@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
Lloh23:
	adrp	x9, _X86_EFLAGS_RF@GOTPAGE
Lloh24:
	ldr	x9, [x9, _X86_EFLAGS_RF@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	orr	x8, x9, x8
	bic	x1, x1, x8
LBB0_7:
	ldr	w0, [x21]
	bl	_vmcs_writel
	mov	x0, x19
	bl	_update_exception_bitmap
	mov	w0, #0
	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
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_KVM_GUESTDBG_ENABLE,4,2        ; @KVM_GUESTDBG_ENABLE
	.comm	_KVM_GUESTDBG_USE_HW_BP,4,2     ; @KVM_GUESTDBG_USE_HW_BP
	.comm	_GUEST_DR7,4,2                  ; @GUEST_DR7
	.comm	_GUEST_RFLAGS,4,2               ; @GUEST_RFLAGS
	.comm	_KVM_GUESTDBG_SINGLESTEP,4,2    ; @KVM_GUESTDBG_SINGLESTEP
	.comm	_X86_EFLAGS_TF,8,3              ; @X86_EFLAGS_TF
	.comm	_X86_EFLAGS_RF,8,3              ; @X86_EFLAGS_RF
	.no_dead_strip	_set_guest_debug
.subsections_via_symbols
