	.file	"extr_kvm_minidump_amd64.c__amd64_minidump_walk_pages.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	_amd64_minidump_walk_pages, @function
_amd64_minidump_walk_pages:
.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
	sub	rsp, 120
	.cfi_def_cfa_offset 176
	mov	rbp, QWORD PTR [rdi]
	mov	QWORD PTR [rsp], rsi
	mov	QWORD PTR 8[rsp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	cmp	DWORD PTR 4[rbp], 1
	jle	.L4
	lea	rax, 96[rsp]
	lea	r14, 92[rsp]
	mov	esi, DWORD PTR 32[rbp]
	mov	rbx, rdi
	mov	rdx, rax
	mov	rdi, r14
	mov	QWORD PTR 64[rsp], rax
	mov	r12d, DWORD PTR 0[rbp]
	mov	r15, QWORD PTR AMD64_PAGE_SIZE[rip]
	mov	QWORD PTR 56[rsp], r15
	call	_kvm_bitmap_init@PLT
	test	eax, eax
	je	.L4
	movsx	rax, r12d
	xor	r12d, r12d
	mov	DWORD PTR 20[rsp], r15d
	shr	rax, 3
	mov	QWORD PTR 48[rsp], rax
	je	.L8
	mov	QWORD PTR 32[rsp], r14
.L5:
	mov	rsi, r12
	mov	rdi, rbx
	call	_amd64_pde_get@PLT
	test	QWORD PTR AMD64_PG_V[rip], rax
	je	.L10
	mov	rcx, QWORD PTR AMD64_PDRSHIFT[rip]
	mov	r8, r12
	mov	r13, rax
	sal	r8, cl
	add	r8, QWORD PTR 8[rbp]
	mov	r14, r8
	and	r13, QWORD PTR AMD64_PG_PS[rip]
	je	.L9
	mov	r13, QWORD PTR AMD64_PDRMASK[rip]
	mov	rsi, r8
	mov	rdi, rbp
	mov	r15, rax
	mov	QWORD PTR 40[rsp], rax
	and	r15, QWORD PTR AMD64_PG_PS_FRAME[rip]
	and	r13, r8
	call	VA_OFF@PLT
	mov	rdi, QWORD PTR 32[rsp]
	mov	rdx, QWORD PTR AMD64_PAGE_SIZE[rip]
	xor	r13, rax
	add	r15, r13
	mov	r13, QWORD PTR 16[rbp]
	mov	rsi, r15
	call	_kvm_bitmap_set@PLT
	mov	r10, QWORD PTR 40[rsp]
	mov	edx, DWORD PTR AMD64_NBPDR[rip]
	add	r13, r15
	mov	rdi, r10
	mov	DWORD PTR 24[rsp], edx
	call	_amd64_entry_to_prot@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 184
	mov	r9, r13
	mov	r8, r14
	mov	ecx, DWORD PTR 28[rsp]
	mov	rdi, rbx
	push	rcx
	.cfi_def_cfa_offset 192
	mov	edx, DWORD PTR 40[rsp]
	mov	rcx, r15
	push	rdx
	.cfi_def_cfa_offset 200
	push	rax
	.cfi_def_cfa_offset 208
	mov	rdx, QWORD PTR 40[rsp]
	mov	rsi, QWORD PTR 32[rsp]
	call	_kvm_visit_cb@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 176
	test	eax, eax
	jne	.L10
.L38:
	mov	r14, QWORD PTR 32[rsp]
.L13:
	xor	r12d, r12d
.L11:
	mov	rdi, r14
	call	_kvm_bitmap_deinit@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	xor	r12d, r12d
.L1:
	mov	rax, QWORD PTR 104[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L42
	add	rsp, 120
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
	ret
	.p2align 4,,10
	.p2align 3
.L43:
	.cfi_restore_state
	mov	rbp, QWORD PTR 40[rsp]
	mov	r12, QWORD PTR 72[rsp]
	.p2align 4,,10
	.p2align 3
.L10:
	add	r12, 1
	cmp	QWORD PTR 48[rsp], r12
	jne	.L5
	mov	r14, QWORD PTR 32[rsp]
.L8:
	mov	r12d, DWORD PTR 56[rsp]
	mov	r13, QWORD PTR [rsp]
	mov	r15, QWORD PTR 8[rsp]
	mov	QWORD PTR [rsp], r12
	mov	r12, QWORD PTR 64[rsp]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rcx, QWORD PTR 96[rsp]
	imul	rcx, QWORD PTR AMD64_PAGE_SIZE[rip]
	mov	r9, QWORD PTR 16[rbp]
	mov	rax, QWORD PTR [rsp]
	add	r9, rcx
	add	rax, r9
	cmp	QWORD PTR 24[rbp], rax
	jb	.L18
	sub	rsp, 8
	.cfi_def_cfa_offset 184
	xor	r8d, r8d
	mov	rdx, r15
	mov	rsi, r13
	push	0
	.cfi_def_cfa_offset 192
	mov	eax, DWORD PTR 36[rsp]
	mov	rdi, rbx
	push	rax
	.cfi_def_cfa_offset 200
	mov	eax, DWORD PTR VM_PROT_READ[rip]
	or	eax, DWORD PTR VM_PROT_WRITE[rip]
	push	rax
	.cfi_def_cfa_offset 208
	call	_kvm_visit_cb@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 176
	test	eax, eax
	je	.L13
.L6:
	mov	rsi, r12
	mov	rdi, r14
	call	_kvm_bitmap_next@PLT
	test	rax, rax
	jne	.L15
.L18:
	mov	r12d, 1
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rsi, r12
	mov	rdi, rbx
	call	_amd64_pde_first_pte@PLT
	test	rax, rax
	je	.L10
	cmp	QWORD PTR AMD64_NPTEPG[rip], 0
	je	.L10
	mov	QWORD PTR 72[rsp], r12
	mov	rdx, QWORD PTR AMD64_PAGE_SIZE[rip]
	mov	r12, rax
	mov	r15, r14
	mov	QWORD PTR 40[rsp], rbp
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L12:
	add	r15, rdx
	add	r13, 1
	cmp	QWORD PTR AMD64_NPTEPG[rip], r13
	jbe	.L43
.L14:
	mov	r9, QWORD PTR [r12+r13*8]
	test	QWORD PTR AMD64_PG_V[rip], r9
	je	.L12
	mov	rax, QWORD PTR 40[rsp]
	mov	rdi, QWORD PTR 32[rsp]
	mov	r14, r9
	mov	QWORD PTR 24[rsp], r9
	and	r14, QWORD PTR AMD64_PG_FRAME[rip]
	mov	rsi, r14
	mov	rbp, QWORD PTR 16[rax]
	call	_kvm_bitmap_set@PLT
	mov	r9, QWORD PTR 24[rsp]
	mov	rdi, r9
	call	_amd64_entry_to_prot@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 184
	mov	r8, r15
	mov	rdi, rbx
	push	0
	.cfi_def_cfa_offset 192
	mov	ecx, DWORD PTR 36[rsp]
	lea	r9, 0[rbp+r14]
	push	rcx
	.cfi_def_cfa_offset 200
	mov	rcx, r14
	push	rax
	.cfi_def_cfa_offset 208
	mov	rdx, QWORD PTR 40[rsp]
	mov	rsi, QWORD PTR 32[rsp]
	call	_kvm_visit_cb@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 176
	test	eax, eax
	je	.L38
	mov	rdx, QWORD PTR AMD64_PAGE_SIZE[rip]
	jmp	.L12
.L42:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	_amd64_minidump_walk_pages, .-_amd64_minidump_walk_pages
	.comm	VM_PROT_WRITE,4,4
	.comm	VM_PROT_READ,4,4
	.comm	AMD64_PG_V,8,8
	.comm	AMD64_PG_PS_FRAME,8,8
	.comm	AMD64_PG_PS,8,8
	.comm	AMD64_PG_FRAME,8,8
	.comm	AMD64_PDRSHIFT,8,8
	.comm	AMD64_PDRMASK,8,8
	.comm	AMD64_PAGE_SIZE,8,8
	.comm	AMD64_NPTEPG,8,8
	.comm	AMD64_NBPDR,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_kvm_minidump_amd64.c__amd64_minidump_walk_pages.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_amd64_minidump_walk_pages, %function
_amd64_minidump_walk_pages:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r9, [r0]
	sub	sp, sp, #76
	ldr	r3, [r9, #4]
	str	r1, [sp, #32]
	cmp	r3, #1
	ldr	r3, .L43
	str	r2, [sp, #36]
	ldr	r3, [r3]
	str	r3, [sp, #68]
	mov	r3,#0
	ble	.L4
	ldr	r3, .L43+4
	mov	r8, r0
	ldr	r3, [r3]
	ldr	r1, [r9, #20]
	add	r2, sp, #60
	add	r0, sp, #64
	ldr	r4, [r9]
	str	r3, [sp, #44]
	bl	_kvm_bitmap_init
	cmp	r0, #0
	beq	.L4
	lsrs	r3, r4, #2
	str	r3, [sp, #48]
	beq	.L8
	mov	r3, #0
	str	r9, [sp, #28]
	mov	r9, r3
	ldr	r10, .L43+8
	ldr	fp, .L43+12
.L5:
	mov	r1, r9
	mov	r0, r8
	bl	_amd64_pde_get
	ldr	r3, [r10]
	mov	r6, r0
	tst	r0, r3
	beq	.L10
	ldr	r3, .L43+16
	ldr	r2, [sp, #28]
	ldr	r4, [r3]
	ldr	r3, .L43+20
	ldr	r5, [r2, #8]
	ldr	r3, [r3]
	ands	r4, r0, r4
	add	r5, r5, r9, lsl r3
	beq	.L9
	ldr	r1, .L43+24
	ldr	r3, .L43+28
	ldr	r7, [r1]
	mov	r0, r2
	mov	r1, r5
	ldr	r4, [r3]
	bl	VA_OFF
	and	r4, r4, r5
	ldr	r3, .L43+4
	ldr	r2, [sp, #28]
	and	r7, r7, r6
	eor	r4, r4, r0
	add	r4, r4, r7
	mov	r1, r4
	ldr	r7, [r2, #12]
	add	r0, sp, #64
	ldr	r2, [r3]
	bl	_kvm_bitmap_set
	mov	r0, r6
	bl	_amd64_entry_to_prot
	add	r7, r4, r7
	ldr	r3, .L43+32
	str	r7, [sp, #4]
	ldr	r2, [r3]
	ldr	r1, [sp, #44]
	str	r0, [sp, #8]
	str	r1, [sp, #16]
	str	r2, [sp, #12]
	mov	r3, r4
	mov	r0, r8
	ldr	r2, [sp, #36]
	ldr	r1, [sp, #32]
	str	r5, [sp]
	bl	_kvm_visit_cb
	cmp	r0, #0
	bne	.L10
.L13:
	mov	r4, #0
.L11:
	add	r0, sp, #64
	bl	_kvm_bitmap_deinit
	b	.L1
.L4:
	mov	r4, #0
.L1:
	ldr	r3, .L43
	ldr	r2, [r3]
	ldr	r3, [sp, #68]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L41
	mov	r0, r4
	add	sp, sp, #76
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L42:
	ldr	r9, [sp, #52]
.L10:
	ldr	r3, [sp, #48]
	add	r9, r9, #1
	cmp	r3, r9
	bne	.L5
	ldr	r9, [sp, #28]
.L8:
	mov	r4, #0
	ldr	r6, .L43+36
	ldr	r5, .L43+40
	ldr	r7, [sp, #44]
	ldr	r10, [sp, #32]
	ldr	fp, [sp, #36]
	b	.L6
.L15:
	ldr	r2, .L43+4
	ldr	r3, [sp, #60]
	ldr	r1, [r2]
	ldr	r2, [r9, #12]
	mul	r3, r1, r3
	ldr	r0, [r9, #16]
	add	r2, r3, r2
	add	r1, r7, r2
	cmp	r0, r1
	bcc	.L18
	ldr	r0, [r5]
	ldr	r1, [r6]
	str	r2, [sp, #4]
	orr	r1, r1, r0
	str	r1, [sp, #8]
	mov	r2, fp
	mov	r1, r10
	mov	r0, r8
	str	r4, [sp, #16]
	str	r7, [sp, #12]
	str	r4, [sp]
	bl	_kvm_visit_cb
	cmp	r0, #0
	beq	.L13
.L6:
	add	r1, sp, #60
	add	r0, sp, #64
	bl	_kvm_bitmap_next
	cmp	r0, #0
	bne	.L15
.L18:
	mov	r4, #1
	b	.L11
.L9:
	mov	r1, r9
	mov	r0, r8
	bl	_amd64_pde_first_pte
	cmp	r0, #0
	beq	.L10
	ldr	r3, [fp]
	cmp	r3, #0
	beq	.L10
	ldr	r3, .L43+4
	sub	r7, r0, #4
	ldr	r2, [r3]
	str	r9, [sp, #52]
	b	.L14
.L12:
	ldr	r3, [fp]
	add	r4, r4, #1
	cmp	r3, r4
	add	r5, r5, r2
	bls	.L42
.L14:
	ldr	r6, [r7, #4]!
	ldr	r3, [r10]
	tst	r6, r3
	beq	.L12
	ldr	r3, .L43+44
	add	r0, sp, #64
	ldr	r3, [r3]
	and	r9, r6, r3
	ldr	r3, [sp, #28]
	mov	r1, r9
	ldr	r3, [r3, #12]
	str	r3, [sp, #40]
	bl	_kvm_bitmap_set
	mov	r0, r6
	bl	_amd64_entry_to_prot
	ldr	r3, [sp, #40]
	str	r0, [sp, #8]
	add	r2, r3, r9
	str	r2, [sp, #4]
	mov	r2, #0
	str	r2, [sp, #16]
	ldr	r2, [sp, #44]
	mov	r3, r9
	str	r2, [sp, #12]
	mov	r0, r8
	ldr	r2, [sp, #36]
	ldr	r1, [sp, #32]
	str	r5, [sp]
	bl	_kvm_visit_cb
	cmp	r0, #0
	beq	.L13
	ldr	r3, .L43+4
	ldr	r2, [r3]
	b	.L12
.L41:
	bl	__stack_chk_fail
.L44:
	.align	2
.L43:
	.word	.LC0
	.word	AMD64_PAGE_SIZE
	.word	AMD64_PG_V
	.word	AMD64_NPTEPG
	.word	AMD64_PG_PS
	.word	AMD64_PDRSHIFT
	.word	AMD64_PG_PS_FRAME
	.word	AMD64_PDRMASK
	.word	AMD64_NBPDR
	.word	VM_PROT_READ
	.word	VM_PROT_WRITE
	.word	AMD64_PG_FRAME
	.size	_amd64_minidump_walk_pages, .-_amd64_minidump_walk_pages
	.comm	VM_PROT_WRITE,4,4
	.comm	VM_PROT_READ,4,4
	.comm	AMD64_PG_V,4,4
	.comm	AMD64_PG_PS_FRAME,4,4
	.comm	AMD64_PG_PS,4,4
	.comm	AMD64_PG_FRAME,4,4
	.comm	AMD64_PDRSHIFT,4,4
	.comm	AMD64_PDRMASK,4,4
	.comm	AMD64_PAGE_SIZE,4,4
	.comm	AMD64_NPTEPG,4,4
	.comm	AMD64_NBPDR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
