	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svm_guest_debug
_svm_guest_debug:                       ## @svm_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	(%rdi), %r12d
	callq	_to_svm
	movq	%rax, %r14
	movl	(%r15), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_update_db_intercept
	movq	_KVM_GUESTDBG_USE_HW_BP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	8(%r15), %rax
	addq	$28, %rax
	jmp	LBB0_3
LBB0_2:
	leaq	4(%rbx), %rax
LBB0_3:
	movl	(%rax), %eax
	movq	(%r14), %rdi
	movl	%eax, 4(%rdi)
	movq	_VMCB_DR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mark_dirty
	movq	_KVM_GUESTDBG_SINGLESTEP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_5
## %bb.4:
	movq	_X86_EFLAGS_TF@GOTPCREL(%rip), %rax
	movq	_X86_EFLAGS_RF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	(%r14), %rax
	orl	%ecx, (%rax)
	jmp	LBB0_7
LBB0_5:
	testl	%r12d, %eax
	je	LBB0_7
## %bb.6:
	movq	_X86_EFLAGS_TF@GOTPCREL(%rip), %rax
	movq	_X86_EFLAGS_RF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	movq	(%r14), %rax
	andl	%ecx, (%rax)
LBB0_7:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KVM_GUESTDBG_USE_HW_BP,4,2     ## @KVM_GUESTDBG_USE_HW_BP
	.comm	_VMCB_DR,4,2                    ## @VMCB_DR
	.comm	_KVM_GUESTDBG_SINGLESTEP,4,2    ## @KVM_GUESTDBG_SINGLESTEP
	.comm	_X86_EFLAGS_TF,4,2              ## @X86_EFLAGS_TF
	.comm	_X86_EFLAGS_RF,4,2              ## @X86_EFLAGS_RF
	.no_dead_strip	_svm_guest_debug
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svm_guest_debug
_svm_guest_debug:                       ; @svm_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	x21, x1
	mov	x20, x0
	ldr	w22, [x0]
	bl	_to_svm
	mov	x19, x0
	ldr	w8, [x21]
	str	w8, [x20]
	mov	x0, x20
	bl	_update_db_intercept
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _KVM_GUESTDBG_USE_HW_BP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _KVM_GUESTDBG_USE_HW_BP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x21, #8]
	add	x8, x8, #28
	b	LBB0_3
LBB0_2:
	add	x8, x20, #4
LBB0_3:
	ldr	w8, [x8]
	ldr	x0, [x19]
	str	w8, [x0, #4]
Lloh3:
	adrp	x8, _VMCB_DR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VMCB_DR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_mark_dirty
	ldr	w9, [x20]
Lloh6:
	adrp	x8, _KVM_GUESTDBG_SINGLESTEP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KVM_GUESTDBG_SINGLESTEP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _X86_EFLAGS_TF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _X86_EFLAGS_TF@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _X86_EFLAGS_RF@GOTPAGE
Lloh13:
	ldr	x9, [x9, _X86_EFLAGS_RF@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	x9, [x19]
	ldr	w10, [x9]
	orr	w8, w8, w10
	b	LBB0_7
LBB0_5:
	tst	w8, w22
	b.eq	LBB0_8
; %bb.6:
Lloh15:
	adrp	x8, _X86_EFLAGS_TF@GOTPAGE
Lloh16:
	ldr	x8, [x8, _X86_EFLAGS_TF@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _X86_EFLAGS_RF@GOTPAGE
Lloh19:
	ldr	x9, [x9, _X86_EFLAGS_RF@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	x9, [x19]
	ldr	w10, [x9]
	bic	w8, w10, w8
LBB0_7:
	str	w8, [x9]
LBB0_8:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_KVM_GUESTDBG_USE_HW_BP,4,2     ; @KVM_GUESTDBG_USE_HW_BP
	.comm	_VMCB_DR,4,2                    ; @VMCB_DR
	.comm	_KVM_GUESTDBG_SINGLESTEP,4,2    ; @KVM_GUESTDBG_SINGLESTEP
	.comm	_X86_EFLAGS_TF,4,2              ; @X86_EFLAGS_TF
	.comm	_X86_EFLAGS_RF,4,2              ; @X86_EFLAGS_RF
	.no_dead_strip	_svm_guest_debug
.subsections_via_symbols
