	.file	"extr_svm.c_svm_guest_debug.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	svm_guest_debug, @function
svm_guest_debug:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13d, DWORD PTR [rdi]
	call	to_svm@PLT
	mov	rdi, rbx
	mov	rbp, rax
	mov	eax, DWORD PTR [r12]
	mov	DWORD PTR [rbx], eax
	call	update_db_intercept@PLT
	mov	eax, DWORD PTR [rbx]
	mov	rdi, QWORD PTR 0[rbp]
	test	DWORD PTR KVM_GUESTDBG_USE_HW_BP[rip], eax
	je	.L2
	mov	rax, QWORD PTR 8[r12]
	mov	eax, DWORD PTR 28[rax]
	mov	DWORD PTR 4[rdi], eax
.L3:
	mov	esi, DWORD PTR VMCB_DR[rip]
	call	mark_dirty@PLT
	mov	eax, DWORD PTR KVM_GUESTDBG_SINGLESTEP[rip]
	test	DWORD PTR [rbx], eax
	je	.L4
	mov	rdx, QWORD PTR 0[rbp]
	mov	eax, DWORD PTR X86_EFLAGS_TF[rip]
	or	eax, DWORD PTR X86_EFLAGS_RF[rip]
	or	DWORD PTR [rdx], eax
.L5:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR 4[rbx]
	mov	DWORD PTR 4[rdi], eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	test	eax, r13d
	je	.L5
	mov	rdx, QWORD PTR 0[rbp]
	mov	eax, DWORD PTR X86_EFLAGS_TF[rip]
	or	eax, DWORD PTR X86_EFLAGS_RF[rip]
	not	eax
	and	DWORD PTR [rdx], eax
	add	rsp, 8
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	svm_guest_debug, .-svm_guest_debug
	.comm	X86_EFLAGS_TF,4,4
	.comm	X86_EFLAGS_RF,4,4
	.comm	VMCB_DR,4,4
	.comm	KVM_GUESTDBG_USE_HW_BP,4,4
	.comm	KVM_GUESTDBG_SINGLESTEP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_svm.c_svm_guest_debug.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	svm_guest_debug, %function
svm_guest_debug:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	mov	r4, r0
	ldr	r7, [r0]
	bl	to_svm
	ldr	r3, [r6]
	mov	r5, r0
	str	r3, [r4]
	mov	r0, r4
	bl	update_db_intercept
	ldr	r3, .L11
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	ldrne	r3, [r6, #4]
	ldreq	r3, [r4, #4]
	ldrne	r3, [r3, #28]
	ldrne	r0, [r5]
	ldreq	r0, [r5]
	str	r3, [r0, #4]
	ldr	r3, .L11+4
	ldr	r1, [r3]
	bl	mark_dirty
	ldr	r3, .L11+8
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r3, r2
	beq	.L4
	ldr	r3, .L11+12
	ldr	r2, .L11+16
	ldr	r1, [r5]
	ldr	r0, [r3]
	ldr	r2, [r2]
	ldr	r3, [r1]
	orr	r2, r2, r0
	orr	r3, r3, r2
	str	r3, [r1]
.L5:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	tst	r3, r7
	beq	.L5
	ldr	r3, .L11+12
	ldr	r2, .L11+16
	ldr	r1, [r5]
	ldr	r0, [r3]
	ldr	r2, [r2]
	ldr	r3, [r1]
	orr	r2, r2, r0
	bic	r3, r3, r2
	mov	r0, #0
	str	r3, [r1]
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	.align	2
.L11:
	.word	KVM_GUESTDBG_USE_HW_BP
	.word	VMCB_DR
	.word	KVM_GUESTDBG_SINGLESTEP
	.word	X86_EFLAGS_RF
	.word	X86_EFLAGS_TF
	.size	svm_guest_debug, .-svm_guest_debug
	.comm	X86_EFLAGS_TF,4,4
	.comm	X86_EFLAGS_RF,4,4
	.comm	VMCB_DR,4,4
	.comm	KVM_GUESTDBG_USE_HW_BP,4,4
	.comm	KVM_GUESTDBG_SINGLESTEP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
