	.file	"extr_vtlb.c_mark_pages_dirty.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mark_pages_dirty
	.type	mark_pages_dirty, @function
mark_pages_dirty:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	and	esi, DWORD PTR _PAGE_PPN_MASK[rip]
	mov	edi, DWORD PTR [rdi]
	sar	esi, cl
	mov	r12d, esi
	call	__kvm_va@PLT
	mov	r13, QWORD PTR KVM_MEM_DIRTY_LOG_BASE[rip]
	mov	r15, rax
	mov	eax, DWORD PTR PAGE_SHIFT[rip]
	cmp	eax, ebx
	jge	.L2
	mov	ecx, ebx
	mov	r14d, 1
	mov	rdi, r15
	sub	ecx, eax
	sal	r14d, cl
	call	vmm_spin_lock@PLT
	test	r14d, r14d
	jle	.L3
.L6:
	xor	ebx, ebx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	add	ebx, 1
	cmp	ebx, r14d
	jge	.L3
.L5:
	lea	ebp, [rbx+r12]
	mov	rsi, r13
	mov	edi, ebp
	call	test_bit@PLT
	test	eax, eax
	jne	.L4
	mov	rsi, r13
	mov	edi, ebp
	add	ebx, 1
	call	set_bit@PLT
	cmp	ebx, r14d
	jl	.L5
.L3:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, r15
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	vmm_spin_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, r15
	mov	r14d, 1
	call	vmm_spin_lock@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	mark_pages_dirty, .-mark_pages_dirty
	.comm	_PAGE_PPN_MASK,4,4
	.comm	PAGE_SHIFT,4,4
	.comm	KVM_MEM_DIRTY_LOG_BASE,8,8
	.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_vtlb.c_mark_pages_dirty.c"
	.text
	.align	2
	.global	mark_pages_dirty
	.syntax unified
	.arm
	.fpu softvfp
	.type	mark_pages_dirty, %function
mark_pages_dirty:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L10
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r5, .L10+4
	ldr	r3, [r3]
	ldr	r6, [r5]
	mov	r4, r2
	and	r1, r1, r3
	ldr	r0, [r0]
	asr	r6, r1, r6
	bl	__kvm_va
	ldr	r3, [r5]
	ldr	r2, .L10+8
	cmp	r3, r4
	mov	r9, r0
	ldr	r7, [r2]
	bge	.L2
	mov	r8, #1
	sub	r4, r4, r3
	lsl	r8, r8, r4
	bl	vmm_spin_lock
	cmp	r8, #0
	ble	.L3
.L6:
	mov	r4, #0
	b	.L5
.L4:
	cmp	r4, r8
	bge	.L3
.L5:
	add	r5, r4, r6
	mov	r0, r5
	mov	r1, r7
	bl	test_bit
	cmp	r0, #0
	add	r4, r4, #1
	bne	.L4
	mov	r0, r5
	mov	r1, r7
	bl	set_bit
	cmp	r4, r8
	blt	.L5
.L3:
	mov	r0, r9
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	vmm_spin_unlock
.L2:
	bl	vmm_spin_lock
	mov	r8, #1
	b	.L6
.L11:
	.align	2
.L10:
	.word	_PAGE_PPN_MASK
	.word	PAGE_SHIFT
	.word	KVM_MEM_DIRTY_LOG_BASE
	.size	mark_pages_dirty, .-mark_pages_dirty
	.comm	_PAGE_PPN_MASK,4,4
	.comm	PAGE_SHIFT,4,4
	.comm	KVM_MEM_DIRTY_LOG_BASE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
