	.file	"extr_book3s_64_mmu_hv.c_kvmppc_hv_get_dirty_log_hpt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	kvmppc_hv_get_dirty_log_hpt
	.type	kvmppc_hv_get_dirty_log_hpt, @function
kvmppc_hv_get_dirty_log_hpt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	eax, eax
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	preempt_disable@PLT
	cmp	QWORD PTR 0[rbp], 0
	mov	r14, QWORD PTR 8[rbp]
	je	.L2
	xor	ebx, ebx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	add	r14, 8
	add	rbx, 1
	cmp	QWORD PTR 0[rbp], rbx
	jbe	.L2
.L4:
	mov	rsi, r14
	mov	rdi, r12
	call	kvm_test_clear_dirty_npages@PLT
	test	eax, eax
	je	.L3
	mov	rsi, rbx
	mov	edx, eax
	mov	rdi, r13
	add	r14, 8
	call	set_dirty_bits@PLT
	add	rbx, 1
	cmp	QWORD PTR 0[rbp], rbx
	ja	.L4
.L2:
	xor	eax, eax
	call	preempt_enable@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	kvmppc_hv_get_dirty_log_hpt, .-kvmppc_hv_get_dirty_log_hpt
	.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_book3s_64_mmu_hv.c_kvmppc_hv_get_dirty_log_hpt.c"
	.text
	.align	2
	.global	kvmppc_hv_get_dirty_log_hpt
	.syntax unified
	.arm
	.fpu softvfp
	.type	kvmppc_hv_get_dirty_log_hpt, %function
kvmppc_hv_get_dirty_log_hpt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	mov	r7, r0
	mov	r8, r2
	bl	preempt_disable
	ldm	r6, {r3, r5}
	cmp	r3, #0
	beq	.L2
	mov	r4, #0
	b	.L4
.L3:
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	add	r5, r5, #4
	bls	.L2
.L4:
	mov	r1, r5
	mov	r0, r7
	bl	kvm_test_clear_dirty_npages
	subs	r2, r0, #0
	beq	.L3
	mov	r1, r4
	mov	r0, r8
	bl	set_dirty_bits
	b	.L3
.L2:
	bl	preempt_enable
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
	.size	kvmppc_hv_get_dirty_log_hpt, .-kvmppc_hv_get_dirty_log_hpt
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
